/* Interstate: default sans-serif (loaded async via preload in HTML) */
@font-face {
  font-family: "Interstate";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("https://sunmedshop.com/wp-content/uploads/2025/04/interstate-regular.ttf")
    format("truetype");
}
@font-face {
  font-family: "Interstate";
  font-style: normal;
  font-weight: bold;
  font-display: swap;
  src: url("https://sunmedshop.com/wp-content/uploads/2025/04/interstate-bold.ttf")
    format("truetype");
}
@font-face {
  font-family: "Interstate";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("https://sunmedshop.com/wp-content/uploads/2025/04/interstate-black.ttf")
    format("truetype");
}
@font-face {
  font-family: "Interstate";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("https://sunmedshop.com/wp-content/uploads/2025/04/interstate-light.ttf")
    format("truetype");
}
@font-face {
  font-family: "Interstate";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("https://sunmedshop.com/wp-content/uploads/2025/04/interstate-thin.ttf")
    format("truetype");
}

/* Footer fonts (match its-natural) */
@font-face {
  font-family: "Le Monde Courrier Std";
  font-display: swap;
  src: url("https://sunmedshop.com/wp-content/uploads/2025/04/le-monde-courrier-std-regular.ttf")
    format("truetype");
}
@font-face {
  font-family: "Le Monde Courrier Std";
  font-weight: 500;
  font-display: swap;
  src: url("https://sunmedshop.com/wp-content/uploads/2025/04/le-monde-courrier-std-book.ttf")
    format("truetype");
}
@font-face {
  font-family: "Le Monde Courrier Std";
  font-weight: 600;
  font-display: swap;
  src: url("https://sunmedshop.com/wp-content/uploads/2025/04/le-monde-courrier-std-demi.ttf")
    format("truetype");
}
@font-face {
  font-family: "Le Monde Courrier Std";
  font-weight: bold;
  font-display: swap;
  src: url("https://sunmedshop.com/wp-content/uploads/2025/04/le-monde-courrier-std-bold.ttf")
    format("truetype");
}

:root {
  --primary: #305456;
  --primary-light: #578b91;
  --primary-dark: #253e42;
  --white: #fff;
  --text-main: #1a1a1a;
  --text-muted: #4b5563;
  --badge-mint: #c9e7e5;
  --bg-light: #f9fafb; /* Light gray background for deep dive */
  --red-accent: #dc2626;
  --serif: "Le Monde Courrier Std", serif;
  --sans:
    "Interstate", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  /* Footer uses its-natural typography */
  --footer-serif: "Le Monde Courrier Std", serif;
  --site-header-height: 64px;
  --wp-admin-bar-height: var(--wp-admin--admin-bar--height, 0px);
  --site-header-offset: calc(var(--site-header-height) + var(--wp-admin-bar-height));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-header-offset);
  overflow-x: clip; /* clip does not create a scroll container, so sticky gallery still works */
}

html,
body {
  margin: 0;
  background: #fff;
  font-family: var(--sans);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  padding-top: var(--site-header-height);
}

body.admin-bar {
  --wp-admin-bar-height: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    --wp-admin-bar-height: var(--wp-admin--admin-bar--height, 46px);
  }
}

/* ----- HEADER ----- */
.site-header {
  position: fixed;
  top: var(--wp-admin-bar-height);
  left: 0;
  z-index: 999;
  width: 100%;
  text-align: center;
  background: #fff;
  /* box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0); */
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
}

/* @supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-add-shadow linear forwards;
    animation-timeline: scroll(root block);
    animation-range: 0 50px;
  }
}

@keyframes header-add-shadow {
  to {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  }
} */

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  width: 100%;
  margin: 0 auto;
  padding: 5px 15px;
}

.site-header-menu-toggle,
.site-header-end {
  display: none;
}

.site-header-menu-toggle {
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: #222;
  cursor: pointer;
}

.site-header-menu-toggle:hover {
  opacity: 0.75;
}

.site-header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  min-width: 0;
}

.site-header-end {
  width: 44px;
  height: 44px;
  justify-self: end;
}

.site-header-logo {
  display: block;
  line-height: 0;
}

.site-header-logo img {
  height: 75px;
  padding: 15px;
  display: block;
  margin: 0;
}

.header-pill {
  background: linear-gradient(-15deg, #3a7d6e 10%, #253e42 100%);
  border: 1px solid #6affd7;
  color: #fff;
  font-size: 18px;
  border-radius: 20px;
  padding: 2px 16px;
  font-weight: 500;
  font-family: "Le Monde Courrier Std", sans-serif;
}

.header-pill svg {
  position: relative;
  top: -1px;
  vertical-align: middle;
}

.header-pill svg path {
  fill: #6affd7 !important;
  stroke: #6affd7;
}

.header-pill--repeat {
  color: #6affd7;
  font-weight: 600;
}

@media (max-width: 750px) {
  .site-header {
    align-content: center;
  }
  .site-header-inner {
    width: 100%;
    margin: 4px auto;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 0;
    padding: 5px 4px;
  }
  .site-header-menu-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
  }
  .site-header-end {
    display: block;
    width: 40px;
    height: 40px;
  }
  .site-header-logo img {
    max-width: 100px;
    height: auto;
    padding: 0;
  }
  .header-pill {
    font-size: 12px;
    position: relative;
    top: 0;
  }

  @keyframes header-add-shadow {
    to {
      box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
      padding-bottom: 1em;
    }
  }
}

@media (max-width: 350px) {
  .header-pill {
    top: -10px !important;
  }
}

@media (min-width: 751px) {
  .site-header-menu-toggle,
  .site-header-end,
  .slideout-overlay,
  .slideout-container {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .site-header-logo img {
    width: 280px;
    height: auto;
  }
}

/* ----- Hamburger slide-out ----- */
.slideout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.slideout-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slideout-container {
  position: fixed;
  top: var(--wp-admin-bar-height);
  left: -100%;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  height: 100dvh;
  height: calc(100dvh - var(--wp-admin-bar-height));
  background-color: #fff;
  z-index: 99999;
  transition: left 0.3s ease-in-out;
  overflow-y: auto;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  padding-bottom: 40px;
  --e-global-color-primary: #305456;
}

.slideout-container.is-open {
  left: 0;
}

html:has(.slideout-container.is-open),
html body:has(.slideout-container.is-open) {
  overflow: hidden;
}

body:has(.slideout-container.is-open) .sunmed-cart-toggle {
  visibility: hidden;
}

.slideout-header {
  padding: 28px 28px 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#custom-slideout .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: unset;
  border: none;
  cursor: pointer;
  color: #000;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  width: 40px;
  height: 40px;
}

#custom-slideout .btn-return-home {
  border: solid #578b91 1px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 14px;
  text-transform: uppercase;
  margin-top: 3em;
  margin-bottom: 25px;
  transition: background-color 0.2s ease;
  color: #578b91;
  font-weight: 700;
  width: 100%;
  text-align: center;
  display: block;
  box-sizing: border-box;
}

#custom-slideout .btn-return-home:hover,
#custom-slideout .btn-return-home:active {
  background: #578b91;
  color: #fff;
}

.slideout-title {
  font-family: Roboto, sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #000;
  margin: 0;
  text-align: center;
}

.card-menu-wrap {
  padding: 0 28px;
}

#custom-slideout .product-card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  position: relative;
  margin-bottom: 24px;
  z-index: 2;
}

#custom-slideout .product-card:hover {
  transform: translateY(-4px);
}

#custom-slideout .img-wrap {
  width: 100%;
  height: 275px;
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
  margin-top: auto;
}

#custom-slideout .product-card .img-wrap img {
  width: 100%;
  height: 100%;
  max-width: 230px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  transform: scale(1.6);
  position: relative;
  z-index: 1;
}

#custom-slideout .product-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  text-transform: capitalize;
  text-align: center;
  color: var(--e-global-color-primary, #305456);
  text-decoration: none;
}

#custom-slideout .pill {
  padding: 1px 8px;
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: -0.1px;
  text-transform: uppercase;
  color: #7e3ff2;
  background: #f0e6ff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

#custom-slideout .pill.sour-apple {
  color: #3f7f00;
  background: #e3ffc9;
}

#custom-slideout .product-title .pill {
  text-transform: unset;
  margin-right: -2px;
  margin-left: -2px;
  padding: 1px 2px;
  font-size: 1em;
}

.pack-sticky-banner {
  display: none;
}

@media (max-width: 750px) {
  .pack-sticky-banner:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    width: 100vw;
    top: var(--site-header-offset, 55px);
    z-index: 998;
    height: 60px;
    margin: 0;
    background: #fff;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    z-index: 999;
  }

  .pack-sticky-banner__image {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 60px;
    object-fit: contain;
    object-position: center;
  }

  .pack-sticky-banner__text {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 18px;
    line-height: 60px;
    font-weight: 500;
    color: #253e42;
  }
}

/* ----- PRODUCT LAYOUT ----- */
.product-display {
  max-width: 1030px;
  margin: 0 auto;
  padding: 70px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* --- ANIMATED GALLERY CSS --- */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0; /* Allow grid cell to shrink; prevents gallery from overflowing viewport */
}

@media (min-width: 769px) {
  .product-gallery {
    position: sticky;
    top: var(--site-header-offset);
    align-self: start;
  }
}

.product-gallery__main-wrap,
.product-gallery__solo {
  position: relative;
  width: 100%;
  min-width: 0;
  border-radius: 0;
  border: none;
  overflow: hidden; /* Hides sliding images / scaled overflow */
  aspect-ratio: 1;
}

.product-gallery__solo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-viewport {
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth Slide */
}

.gallery-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
}

.gallery-slide img,
.product-gallery__solo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(var(--image-scale, 1));
  transform-origin: center center;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 30px;
  border: 1px solid #000;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.6);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.2s;
}
.gallery-arrow:hover {
  background: rgba(255, 255, 255, 0.85);
}
.gallery-arrow--prev {
  left: 10px;
}
.gallery-arrow--next {
  right: 10px;
}

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-gallery__thumbs::-webkit-scrollbar {
  display: none;
}
.product-gallery__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  padding: 0;
  border: none;
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  background: none;
  transition: all 0.2s;
}
.product-gallery__thumb.active {
  border: none;
}
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right: Details */
.product-details {
  font-family: var(--sans);
  /* padding-top: 10px; */
}
.product-details__social {
  font-size: 16px;
  margin-bottom: 16px;
}
.product-details__units-badge {
  display: inline-block;
  background: #c9e7e5;
  color: #3d696b;
  font-weight: 700;
  padding: 0 8px;
  border-radius: 4px;
  line-height: 1.1em;
  font-size: 0.9em;
}
.product-details__social-right {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.product-details__more-link {
  white-space: nowrap;
}
a {
  color: #578b90;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-details__title {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 8px;
}
.product-details__subtitle {
  font-size: 15px;
  color: #6b7280;
  margin-top: -10px;
  margin-bottom: 16px;
}
.product-details__rating {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stars {
  color: #fbbf24;
  font-size: 18px;
}

.product-details__price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.price--original {
  font-size: 18px;
  color: #666666;
  text-decoration: line-through;
  text-decoration-style: double;
  text-decoration-thickness: 1px;
  font-weight: 400;
}
.price--current {
  font-size: 24px;
  font-weight: 700;
  color: #2c565f;
}
.price-badge {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #355c5e;
  padding: 2px 6px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.product-description-block {
  margin-bottom: 24px;
}
.product-details__desc {
  font-size: 18px;
  line-height: 23px;
  margin-bottom: 1.2em;
  color: #212121;
  font-weight: 400;
}

.product-details__desc a {
  font-weight: 400;
}

.product-details__stock {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}
.icon--inventory {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
}
.icon--inventory:after {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  position: absolute;
  content: "";
}
.icon--inventory:before {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  position: absolute;
  content: "";
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Custom variation picker + add to cart */
#custom-direct-cart-ui {
  width: 100%;
  max-width: 500px;
  margin: 0 0 24px;
  font-family: inherit;
  position: relative;
}

.pack-discount-arrow {
  display: block;
  border: none;
  padding: 0;
  appearance: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: contain;
  cursor: pointer;
}

@media (max-width: 1399px) {
  .pack-discount-arrow {
    width: 100%;
    height: 80px;
    margin-top: -10px;
    margin-bottom: 10px;
    background-image: url("https://sunmedshop.com/wp-content/uploads/2026/06/mobile-arrow.png");
    background-position: center;
  }
}

@media (min-width: 1400px) {
  .pack-discount-arrow {
    position: absolute;
    right: -4px;
    top: 40px;
    transform: translateX(100%);
    width: calc(50vw - 500px);
    height: 120px;
    background-image: url("https://sunmedshop.com/wp-content/uploads/2026/06/desktop-arrow.png");
    background-position: left center;
  }
}

.attr-section {
  margin-top: -6px;
}

.attr-title {
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-bottom: -8px
  text-transform: uppercase;
}

.woo-custom-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding-top: 14px;
}

button.woo-custom-option {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 10px;
  border: 1px solid #000 !important;
  background-color: #fff !important;
  color: #000 !important;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
}

button.woo-custom-option:hover {
  border-color: #305456 !important;
}

button.woo-custom-option.is-selected {
  background-color: #305456 !important;
  color: #fff !important;
  border-color: #305456 !important;
}

button.woo-custom-option .discount-badge {
  position: absolute;
  top: -14px;
  right: 0;
  background-color: #d1f0d8;
  color: #2b5c46;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.woo-custom-options-stacked {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  margin-top: 12px;
}

button.woo-custom-option-stacked {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 2px solid #1e2e2d !important;
  background-color: #586e6b !important;
  color: #fff !important;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.2s ease;
}

button.woo-custom-option-stacked:hover {
  background-color: #4a5c5a !important;
}

button.woo-custom-option-stacked.is-selected {
  background-color: #305456 !important;
  border-color: #000 !important;
}

.stacked-price-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.stacked-price-info s {
  opacity: 0.7;
  text-decoration-thickness: 1px;
}

.action-btn {
  width: 100%;
  background-color: #305456;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 16px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease;
}

.action-btn .btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.action-btn:hover:not(:disabled) {
  background-color: #254244;
}

.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.action-btn .main-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}

.action-btn .sub-text {
  font-size: 12px;
  color: #ceaa5f;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.action-btn.loading {
  pointer-events: none;
}

.action-btn.loading .btn-content {
  opacity: 0;
}

.action-btn.loading::after {
  content: "";
  position: absolute;
  left: calc(50% - 15px);
  top: calc(50% - 15px);
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: custom-woo-spin 1s linear infinite;
}

@keyframes custom-woo-spin {
  100% {
    transform: rotate(360deg);
  }
}

.checkout-cta-container {
  display: flex;
  gap: 12px;
}

.checkout-cta-container > * {
  min-height: 72px !important;
}

.checkout-cta-container .action-btn {
  flex: 1;
  min-width: 0;
  width: auto;
}

.open-modal-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #dfaf67 0%, #c48734 100%);
  border: 2px solid #222222;
  border-radius: 6px;
  color: #ffffff;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-family: inherit;
  transition: transform 0.1s ease-in-out;
  min-width: max(30%, 140px);
}

.open-modal-btn .btn-text-small {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.open-modal-btn .btn-text-large {
  font-size: 14px;
  font-weight: 800;
}

.open-modal-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

.open-modal-btn:hover::before {
  left: 100%;
}

.open-modal-btn:active {
  transform: scale(0.98);
}

@media (max-width: 750px) {
  .checkout-cta-container .open-modal-btn {
    flex: 0 0 auto;
    min-width: 0;
    width: calc(max(30%, 140px) * 0.85);
  }

  .open-modal-btn .btn-text-small {
    font-size: 15px;
  }

  .open-modal-btn .btn-text-large {
    font-size: 16px;
  }

  .checkout-cta-container .action-btn {
    flex: 1.15 1 0;
  }

  .action-btn .sub-text {
    font-size: 11px !important;
    white-space: break-spaces;
    line-height: 1.2em;
    margin-top: 0;
  }
  .action-btn .main-text {
    font-size: 20px !important;
  }
}

#custom-direct-cart-ui .main-text {
  font-weight: 900 !important;
  font-size: 24px !important;
  border-radius: 10px !important;
  font-family: "Roboto", sans-serif;
}

#custom-direct-cart-ui .sub-text {
  display: block;
  font-size: 15px !important;
  font-family: "Roboto", sans-serif;
}
.trust-badges {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.discount-lightbox h2 {
  font-size: 30px;
  font-family: "Le Monde Courrier Std", serif !important;
  font-weight: 300;
  line-height: 1.4em;
}

.discount-lightbox strong {
  color: #578b91;
}

.discount-lightbox u {
  text-decoration-color: #e9bc69;
}

@media (max-width: 1200px) {
  .discount-lightbox h2 {
    font-size: 26px;
  }
}

@media (min-width: 750px) {
  .discount-lightbox .hide-on-desktop {
    display: none;
  }
}

@media (max-width: 749px) {
  .discount-lightbox .hide-on-mobile {
    display: none;
  }
  .discount-lightbox {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .discount-lightbox h2 {
    font-size: 24px;
  }
}

.discount-lightbox .savings-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.discount-lightbox .tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "one two"
    "three three";
  gap: 16px;
  aspect-ratio: 1 / 0.96;
  container-type: inline-size;
}

.fc-lightbox .tiers p {
  margin: 0 !important;
}

.discount-lightbox .tier {
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4% 6%;
}

.discount-lightbox .tier-1 {
  grid-area: one;
  align-self: end;
  height: 62%;
  background: #f1efe8;
  border: 1px solid #d3d1c7;
}

.discount-lightbox .tier-2 {
  grid-area: two;
  background: #eef8f3;
  border: 1px solid #5dcaa5;
}

.discount-lightbox .tier-3 {
  grid-area: three;
  background: #e1f5ee;
  border: 1px solid #1d9e75;
}

.discount-lightbox .tier-pct {
  font-weight: 500;
  line-height: 1;
  margin: 0 !important;
}

.discount-lightbox .tier-1 .tier-pct {
  font-size: clamp(28px, 8cqw, 44px) !important;
  color: #2c2c2a;
}

.discount-lightbox .tier-2 .tier-pct {
  font-size: clamp(34px, 9cqw, 52px) !important;
  color: #04342c;
}

.discount-lightbox .tier-3 .tier-pct {
  font-size: clamp(44px, 12cqw, 72px) !important;
  color: #04342c;
}

.discount-lightbox .tier-line {
  font-size: clamp(13px, 3.2cqw, 17px);
  margin: 12px 0 0;
  line-height: 1.4;
  color: #5f6b6b;
}

.discount-lightbox .tier-2 .tier-line,
.discount-lightbox .tier-3 .tier-line {
  color: #04342c;
}

.discount-lightbox .tier-line .qty {
  font-weight: 500;
}

/* ----- DEEP DIVE SECTION (The New Request) ----- */
.details-deep-dive {
  width: 100%;
  background-color: #fff;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.details-layout {
  width: 100%;
  max-width: 800px;
}

.details-card {
  font-family: var(--sans);
  background: #fff;
  max-width: 800px;
  width: 100%;
  padding: 30px 45px;
  border-radius: 12px;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.details-float {
  display: none;
}

@media (min-width: 1100px) {
  .details-deep-dive--float .details-layout {
    display: grid;
    grid-template-columns: 1fr minmax(0, 800px) 1fr;
    column-gap: 24px;
    width: 100%;
    max-width: none;
    align-items: start;
  }

  .details-deep-dive--float .details-card {
    grid-column: 2;
    width: 100%;
    max-width: 800px;
  }

  .details-float {
    display: block;
    grid-column: 3;
    justify-self: start;
    position: sticky;
    top: calc(var(--site-header-offset) + 24px);
    width: min(280px, 100%);
    margin: 40px 0 !important;
    margin-left: -23px !important;
    max-height: calc(100vh - var(--site-header-offset) - 48px);
  }

  .details-float img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - var(--site-header-offset) - 48px);
    object-fit: contain;
    object-position: top;
  }
}

@media (max-width: 750px) {
  .details-deep-dive {
    padding: 0;
  }
  .details-card {
    box-shadow: none;
    padding: 0 45px 30px;
  }
}

/* Description section: all titles and paragraphs share one style */
.details-card h2,
.details-card h3 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1em;
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 500;
}
.details-card h2:first-child,
.details-card .sunmed-widget + h2 {
  margin-top: 0 !important;
}

.details-card p {
  font-size: 16px;
  line-height: 23px !important;
  margin-bottom: 1.2em !important;
}

.details-card hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 32px 0;
}

/* Key Details List – each item is a block with light gray bg + teal left bar */
.key-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.key-details-list li {
  position: relative;
  background-color: #f7f9f9;
  border-left: 4px solid #578b91;
  /* border-radius: 6px; */
  padding: 14px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 18px;
}

.key-details-list li:last-child {
  margin-bottom: 0;
}

ol.key-details-list {
  counter-reset: key-detail;
}

ol.key-details-list li {
  counter-increment: key-detail;
}

ol.key-details-list li::before {
  content: counter(key-detail) ".";
  font-weight: 700;
  color: #374151;
  margin-right: 6px;
}

ul.key-details-list li {
  display: grid;
  grid-template-columns: 0.7em 1fr;
  column-gap: 0.5em;
}

ul.key-details-list li::before {
  content: "";
  width: 0.4em;
  height: 0.4em;
  margin-top: 0.55em;
  background-color: currentColor;
  border-radius: 50%;
}

/* Specs Grid – two columns; Flavor stacks under Delivery Method */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "delivery spectrum"
    "flavor .";
  column-gap: 24px;
  row-gap: 20px;
  border-top: 1px solid var(--primary-light);
  border-bottom: 1px solid var(--primary-light);
  padding: 30px 0;
  font-size: 18px;
  line-height: 23px;
  margin-top: 2em;
}
.specs-grid .spec-item:nth-child(1) {
  grid-area: delivery;
}
.specs-grid .spec-item:nth-child(2) {
  grid-area: flavor;
}
.specs-grid .spec-item:nth-child(3) {
  grid-area: spectrum;
}
.spec-item {
  color: #333;
  font-weight: 400;
}
.spec-item strong {
  color: #2f5456;
  font-weight: 700;
}

/* Hard Truth Styles */
.text-red {
  color: var(--red-accent);
}
.font-bold {
  font-weight: 700;
}
.quote-bar {
  border-left: 3px solid var(--primary);
  padding-left: 16px;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--primary);
  margin: 20px 0 30px;
  font-size: 16px;
}

/* Experts / Ribbon Section – pixel-perfect to design */
.experts-section {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  align-items: flex-start;
}
.experts-content {
  flex: 1;
  min-width: 0;
}
.experts-content h3 {
  margin-top: 0;
}
.experts-content > p {
  font-size: 16px;
  color: var(--text-main);
  margin: 0 0 16px 0;
  line-height: 1.5;
}
.experts-content > p strong {
  font-weight: 700;
}

.experts-image {
  width: 355px;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.experts-badge-caption {
  font-family: var(--sans);
  font-size: 14px;
  font-style: italic;
  color: var(--primary-dark);
  margin: 0 0 12px 0;
  text-align: center;
}
.ribbon-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Repeat Buyers box: pill badge centered on top, white card, light border */
.repeat-box {
  position: relative;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 18px 16px;
  margin-top: 24px;
  margin-bottom: 18px;
}
.repeat-tag {
  position: absolute;
  top: -14px;
  left: 18px;
  background: #305456;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-block;
  white-space: nowrap;
}
.repeat-box p {
  font-size: 17px;
  margin: 0 !important;
  color: #333;
  line-height: 1.5;
}

/* Stat box: teal left bar, icon + 1.5 MILLION on one row, label below */
.stat-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 5px solid #305456;
  border-radius: 4px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-icon {
  flex-shrink: 0;
}
.stat-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}
.stat-number {
  font-size: 19px;
  font-weight: 700;
  color: #305456;
  letter-spacing: 0.02em;
}
p.stat-label {
  font-size: 15px;
  margin: 0 !important;
  color: #333;
  font-weight: 400;
  padding-left: 0;
}

/* Guarantee Section – extend to card edges (no white on left, right, bottom) */
.guarantee-section {
  background: #f0fdf4; /* Very light green bg in screenshot? Actually looks very light gray or cyan tint. Using faint gray-blue */
  background: #f4f8f8;
  padding: 30px 30px 30px 30px;
  border-radius: 8px 8px 12px 12px;
  margin-top: 40px;
  /* Pull section to card edges */
  margin-left: -60px;
  margin-right: -60px;
  margin-bottom: -50px;
  /* Match card padding so content aligns with rest of card */
  padding-left: 60px;
  padding-right: 60px;
  padding-bottom: 50px;
}
.guarantee-section h3:first-child {
  margin-top: 0;
}

.guarantee-box {
  max-width: 520px;
  margin-bottom: 24px;
  background: #fff;
  border: none;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 5px 1fr;
  overflow: hidden;
  align-items: stretch;
  border-left: solid #305456 5px;
}
.guarantee-header {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 14px 4px 12px;
  color: #305456;
}
.guarantee-header .guarantee-icon {
  flex-shrink: 0;
  line-height: 0;
}
.guarantee-header .guarantee-icon svg {
  display: block;
  width: 25px;
  height: 25px;
}
.guarantee-header strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.guarantee-box > p {
  grid-column: 2;
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  padding: 0 14px 12px 45px; /* align with title (12 + 25 + 8) */
}

.founder-signoff {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}
.founder-signoff p {
  font-size: 14px;
  line-height: 1.4;
  color: #1a1a1a;
  font-weight: 500;
}
.signature-img {
  height: 50px;
  width: auto;
}
.founder-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

/* REVIEWS */
.reviews-section {
  padding: 60px 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.reviews-section h2 {
  text-align: center;
  font-family: var(--serif);
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--primary);
}

/* ----- FOOTER (from switch-to-SUNMED-2) ----- */
.our-promise-section,
.footer-section {
  font-family: var(--sans);
}

.our-promise-section {
  width: 100%;
  padding: 80px 25px 50px;
  background: #2f5455;
  border-radius: 20px 20px 0 0;
}

.our-promise-content-wrapper {
  width: 100%;
  margin: 0 auto;
}

.footer-logo-desktop {
  display: none;
}

.footer-logo-mobile {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 28px;
}

.footer-content-desktop {
  display: none;
}

.footer-content-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 32px;
}

.our-promise-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.our-promise-section .footer-logo-mobile {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 28px;
}

.our-promise-section .footer-logo-desktop {
  display: none;
}

.our-promise-content-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
  align-items: center;
}

.our-promise-left {
  width: 100%;
}

.our-promise-label {
  font-family: var(--sans), sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin: 28px 0 28px;
}

.our-promise-heading {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 45px;
  line-height: 1.2em;
  color: #c1dbc5;
  margin: 0;
}

.our-promise-right {
  width: 100%;
  text-align: center;
}

.our-promise-text {
  color: var(--white);
  margin: 0;
  font-weight: 300;
  line-height: 1.3em;
  font-family: var(--sans);
}

.our-promise-badges {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  flex: 1;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.our-promise-badge {
  max-height: 75px;
  height: auto;
  width: auto;
  flex-shrink: 1;
}

@media (max-width: 767px) {
  .our-promise-section {
    padding-top: 40px;
  }

  .our-promise-badges {
    gap: 10px;
    max-width: 100%;
  }

  .our-promise-badge {
    max-height: 85px;
  }

  .our-promise-heading {
    font-size: 24px;
    text-align: center;
  }

  .our-promise-label {
    text-align: center;
  }

  .our-promise-left {
    text-align: center;
  }
}

.footer-section {
  display: none;
  width: 100%;
  margin-top: 60px;
  padding: 25px 25px 50px;
  background: var(--primary);
  border-radius: 20px 20px 0 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.89em;
  line-height: 1.5em;
  color: var(--white);
  text-decoration: underline;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--white);
  margin: 0 auto 20px;
}

.footer-disclaimer {
  font-size: 0.78em;
  line-height: 1.5em;
  color: var(--white);
  width: 100%;
}

@media (min-width: 1024px) {
  .our-promise-section {
    padding: 32px 0 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    background: transparent;
    border-radius: 0;
  }

  .our-promise-content-wrapper {
    width: 1500px;
    max-width: calc(100% - 240px);
    background: #2f5455;
    border-radius: 45px 45px 0 0;
    padding: 40px 90px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-sizing: border-box;
  }

  .our-promise-section .footer-logo-mobile {
    display: none;
  }

  .our-promise-header .footer-logo-desktop {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0;
    flex-shrink: 0;
  }

  .footer-content-mobile {
    display: none;
  }

  .footer-content-desktop {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0;
    padding-bottom: 40px;
    gap: 30px;
  }

  .footer-content-desktop .footer-links {
    flex-direction: row;
    gap: 120px;
    margin-bottom: 20px;
  }

  .footer-content-desktop .footer-divider {
    width: 100%;
    height: 1px;
    background: var(--white);
    margin: 0 auto 20px;
  }

  .footer-section {
    display: none;
  }

  .our-promise-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 16px;
  }

  .our-promise-left {
    flex: 1;
    width: auto;
  }

  .our-promise-label {
    margin: 16px 0 8px;
  }

  .our-promise-heading {
    width: auto;
  }

  .our-promise-content-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 32px;
    align-items: center;
  }

  .our-promise-right {
    flex: 1;
    width: auto;
    text-align: left;
  }

  .our-promise-badges {
    max-width: 400px;
  }

  .our-promise-badge {
    max-width: 100px;
    max-height: 90px;
  }
}

@media (min-width: 1000px) and (max-width: 1500px) {
  .our-promise-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    max-width: 400px;
  }
}

/* Responsive Adjustments */

@media (max-width: 768px) {
  .product-display {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 10px;
  }
  /* Gallery: full width, no borders, no border-radius on mobile */
  .product-gallery {
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
  }
  .product-gallery__main-wrap,
  .product-gallery__solo {
    border: none;
    border-radius: 0;
  }
  .product-gallery__thumb,
  .product-gallery__thumb.active {
    border: none;
    border-radius: 0;
  }
  .product-gallery__thumb img {
    border-radius: 0;
  }
  .gallery-slide img,
  .product-gallery__solo img {
    border-radius: 0;
  }
  .product-details__title {
    font-size: 28px;
  }
  .details-card {
    padding: 30px 20px;
  }
  .guarantee-section {
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -30px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 30px;
  }
  .experts-section {
    flex-direction: column;
  }
  .experts-image {
    width: 100%;
    margin-top: 20px;
  }
  .specs-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "delivery"
      "flavor"
      "spectrum";
  }
}

/* Lightbox continue button (fc-btn) */
.fc-btn {
  display: inline-block;
  background-color: #3a575a;
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.2s ease;
}
.fc-btn:hover {
  background-color: #2e4649;
}
.fc-btn:focus {
  outline: 2px solid #3a575a;
  outline-offset: 2px;
}

/* New to Sunmed widget — isolate from .details-card / Interstate */
.sunmed-widget,
.sunmed-widget * {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif !important;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.sunmed-widget {
  position: relative;
  z-index: 3;
  float: right;
  margin: 0 0 16px 16px;
  display: flex;
  flex-direction: column;
  border: 1.5px solid #395657;
  border-radius: 16px;
  width: 260px;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  color: #395657;
  font-size: 16px;
  font-weight: 400;
}

.sunmed-header {
  width: 100%;
  text-align: center;
  padding: 16px;
  border-bottom: 1px solid #395657;
  background: linear-gradient(180deg, #e9f0f0 0%, #f3f7f7 100%);
  font-size: 16px;
  font-weight: 700;
  color: #395657;
  letter-spacing: 1px !important;
  box-sizing: border-box;
  white-space: nowrap;
}

.sunmed-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  box-sizing: border-box;
  background: #fff;
}

.toggle-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.toggle-label {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  min-height: 0;
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: #395657;
  cursor: pointer;
  user-select: none;
}

.sunmed-switch {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  display: block;
  flex-shrink: 0;
  width: 56px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  background-color: #395657;
  border-radius: 32px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s;
  line-height: 0;
  overflow: hidden;
}

.switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.sunmed-switch.is-yes .switch-thumb {
  transform: translateX(24px);
}

.welcome-text {
  font-size: 15px;
  font-weight: 400;
  color: #6a8b8e;
  margin-top: 6px;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 750px) {
  .sunmed-widget {
    float: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 32px 0;
    padding: 16px 20px;
    border-radius: 12px;
    position: relative;
  }

  .sunmed-header {
    border-bottom: none;
    background: transparent;
    padding: 0;
    text-align: left;
    width: auto;
  }

  .sunmed-body {
    padding: 0;
    flex-direction: row;
    width: auto;
  }

  .welcome-text {
    display: none !important;
    position: absolute;
    bottom: -24px;
    right: 20px;
    margin-top: 0;
    font-size: 14px;
  }
}

#sunmed-widget-lightbox .sunmed-widget-header {
  background: #fff;
  display: flex;
  align-items: center;
}

#sunmed-widget-lightbox .sunmed-widget-header > span {
  color: #305456;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 0 12px;
}

#sunmed-widget-lightbox p {
  margin-bottom: 16px;
  font-size: 16px;
}

#sunmed-widget-lightbox .highlight-text {
  position: relative;
  display: inline-block;
}

#sunmed-widget-lightbox .highlight-text svg {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: auto;
}

#sunmed-widget-lightbox .guarantee-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: calc(var(--fc-side-padding) / 2);
  margin: 24px calc(var(--fc-side-padding) / 2);
}

#sunmed-widget-lightbox .guarantee-card > * {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#sunmed-widget-lightbox .guarantee-card a {
  color: #305456;
  font-weight: 600;
  text-decoration: underline;
}

#sunmed-widget-lightbox .guarantee-card > p:first-of-type {
  margin-top: 0 !important;
}

#sunmed-widget-lightbox .perk-box {
  position: relative;
  background-color: #f3f4f6;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  margin-top: 20px;
}

#sunmed-widget-lightbox .perk-box p {
  margin: 0;
  margin-top: 0 !important;
  margin-bottom: 0;
  color: #305456;
  font-weight: 600;
  font-size: 15px;
}

#sunmed-widget-lightbox .perk-bullet {
  left: 16px;
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #305456;
  border-radius: 100%;
  margin-top: -10px;
  margin-right: 12px;
  flex-shrink: 0;
}

#sunmed-widget-lightbox .signature-block {
  display: flex;
  gap: 1em;
  margin: 24px var(--fc-side-padding);
}

#sunmed-widget-lightbox .btn-container {
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 750px) {
  #sunmed-widget-lightbox .guarantee-card {
    border: none;
  }

  #sunmed-widget-lightbox.fc-lightbox p.sunmed-widget-header:first-of-type {
    margin-top: 4em !important;
  }

  #sunmed-widget-lightbox .perk-bullet {
    display: none;
  }

  #sunmed-widget-lightbox .fc-lightbox__close {
    position: fixed !important;
    top: 0;
    left: 8px !important;
    transform: unset;
    width: calc(100% - 16px);
  }

  #sunmed-widget-lightbox {
    padding-top: 20px;
  }
}

@media (min-width: 750px) {
  .hide-on-desktop {
    display: none !important;
  }
}
.full-width {
  width: 120%;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
}

/* ----------------- */
/* Lightbox animation edits */
/* 1. Define the AI-generated timing variables */
:root {
  --lb-duration: 1150ms;
  --lb-delay: 50ms;
  --lb-backdrop-duration: 650ms;
  --lb-easing: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Convert the AI's transition states into Keyframes */
@keyframes fcPerspectiveFlipIn {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateX(45deg) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) scale(1);
  }
}

@keyframes fcPerspectiveFlipOut {
  0% {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: perspective(1000px) rotateX(45deg) scale(0.85);
  }
}

/* 3. Apply the new animations to your existing classes */
.fc-lightbox {
  animation-name: fcPerspectiveFlipIn !important;
  animation-duration: var(--lb-duration) !important;
  animation-timing-function: var(--lb-easing) !important;
  animation-delay: var(--lb-delay) !important;
  animation-fill-mode: both !important; /* Keeps it hidden during the 50ms delay */
}

.fc-lightbox.fc-fade-out {
  animation-name: fcPerspectiveFlipOut !important;
  animation-duration: var(--lb-backdrop-duration) !important;
  animation-delay: 0ms !important; /* No delay on close */
}

/* --- CLOSE BUTTON FIX --- */
/* Prevents the 3D transform from throwing the fixed button off-screen */
@media (min-width: 750px) {
  .fc-lightbox .fc-lightbox__close {
    position: absolute !important;
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    margin: 0 !important;
  }
}

/* --- OVERLAY BACKGROUND & BLUR --- */
.fc-lightbox-overlay {
  /* The client's custom slate color */
  background: rgba(15, 23, 42, 0.85) !important;

  /* The frosted glass blur effect */
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important; /* Safari support */

  /* Smooth fade-in for the background */
  animation: fcOverlayFadeIn var(--lb-backdrop-duration) ease-in-out forwards;
}

/* Fade the overlay out when the inner lightbox is closing */
.fc-lightbox-overlay:has(.fc-lightbox.fc-fade-out) {
  animation: fcOverlayFadeOut var(--lb-backdrop-duration) ease-in-out forwards;
}
