.cms-status {
  text-align: center;
  margin: 1rem auto;
  padding: 0 1rem;
  font-weight: 700;
  color: #242c74;
}
.cms-loading::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.65em;
  border: 2px solid #dbe4de;
  border-top-color: #247448;
  border-radius: 50%;
  vertical-align: middle;
  animation: cms-spin 1s linear infinite;
}
.cms-retry {
  display: block;
  margin: 1rem auto;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  border-radius: 50px;
}
.cms-retry[hidden] {
  display: none;
}
.product-image-trigger {
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
}
.gallery-modal-image {
  position: relative;
  min-width: 180px;
  min-height: 160px;
}
.gallery-modal-figure {
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  padding: 1rem;
}
.gallery-modal-close {
  top: 0;
  right: 0;
}
#krin-modal-img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  margin: auto;
}
.cms-image-loading::after,
.cms-image-error::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
  padding: 1rem;
  color: #33493a;
  background: #edf1ee;
  font-size: 0.9rem;
}
.cms-image-loading::after {
  content: "Loading image…";
  animation: cms-pulse 1.5s ease-in-out infinite alternate;
}
.cms-image-error::after {
  content: "Image unavailable";
}
.product-image-trigger:focus-visible {
  outline: 3px solid #247448;
  outline-offset: 3px;
}
@keyframes cms-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes cms-pulse {
  to {
    background: #dce5df;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cms-loading::before,
  .cms-image-loading::after {
    animation: none;
  }
}
