/* Page & Component Loader Styles */
.home-loader-container,
.content-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 3rem;
  gap: 1.25rem;
  background-color: #ffffff;
}

.home-spinner,
.content-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--sdi-purple-light, #F6EDF8);
  border-left-color: var(--sdi-purple-primary, #7E4491);
  border-radius: 50%;
  animation: sdi-home-spin 0.8s linear infinite;
}

.home-loader-text,
.content-loader-text {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sdi-purple-dark, #371847);
  letter-spacing: 0.2px;
  margin: 0;
}

@keyframes sdi-home-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.reviews-block-editor {
  padding: 4px 0 16px;
}

.rbe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Card */
.rbe-card {
  position: relative;
  background: #fff;
  border: 1px solid #dde;
  border-radius: 8px;
  padding: 12px 12px 8px;
}

/* Remove × button */
.rbe-card__remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #cc2200;
  color: #fff;
  border: none;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.rbe-card__remove:hover {
  background: #aa1100;
}

/* Image picker */
.rbe-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 2px dashed #bbc;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  margin-bottom: 10px;
  transition: border-color .15s;
}

.rbe-image:hover {
  border-color: #7b68ee;
}

.rbe-image.rbe-image--filled {
  border: none;
}

.rbe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rbe-image__placeholder {
  color: #999;
  font-size: 12px;
  text-align: center;
  padding: 12px;
}

/* Text inputs */
.rbe-field .components-base-control__field {
  margin-bottom: 4px;
}

.rbe-field input[type="text"] {
  padding: 4px 8px;
  font-size: 12px;
}

.rbe-field--title input[type="text"] {
  font-weight: 600;
  font-size: 13px;
}

/* Add button row */
.rbe-add-row {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 768px) {
  .rbe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .rbe-grid {
    grid-template-columns: 1fr;
  }
}

/* Fix for Pattern Img Classes (to avoid block validation issues) */
/* .thirty-two-banner-figure img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
} */

/* @media (min-width: 993px) {
  .thirty-two-banner-figure img {
    max-height: 300px;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
  }
} */

.listen-voices-wc-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* .bath-bubbles-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
  display: block;
} */

.bath-bubbles-wc-figure img {
  width: 100%;
  height: auto;
  max-width: 420px;
  object-fit: contain;
  display: block;
}

.imagination-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Make the Vimeo iframe fill the complete left video card */
.sd-video-card {
  width: 100%;
  min-width: 0;
  min-height: 340px;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
}

.sd-video-thumbnail-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 600px;
  overflow: hidden;
  border-radius: 20px;
  background-color: #1A0D2E;
}

/* Target the embedded Vimeo player */
.sd-video-thumbnail-wrapper .sd-video-embed-iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Keep the title above the iframe */
.sd-video-thumbnail-wrapper .sd-video-bottom-title {
  z-index: 3;
  pointer-events: none;
}

/* Responsive height */
@media (max-width: 992px) {
  .sd-video-card,
  .sd-video-thumbnail-wrapper {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .sd-video-card,
  .sd-video-thumbnail-wrapper {
    min-height: 240px;
  }
}

#tinymce p {
	margin-bottom: 0em !important;
}
