@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined');

:root {
  --accent: #008290;
  --base-soft: #bfbfbf;
  --header-color: #231f20;
  --text-color: #4d4d4f;
  --success-color: #277c32;
  --selected-green: #8bc751;
  --table-color: #142b6f;
  --disabled-color: #d8d8d8;
  --disabled-text-color: #707070;
  --background-shade: #f2f2f2;
  --accent-light: #b8e0e5;
}

/* Small devices (sm): 640px and up - @media (min-width: 640px) {}

Medium devices (md): 768px and up - @media (min-width: 768px) {}

Large devices (lg): 1024px and up - @media (min-width: 1024px) {}

Extra large devices (xl): 1280px and up - @media (min-width: 1280px) {} */

.page {
  box-sizing: border-box;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--text-color);
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
  padding-bottom: 6rem;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link {
  color: var(--accent);
  text-decoration: underline;
}

/* --------------------------------- Image gallery ---------------------------------  */

/* Gallery container */
.gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Featured image */
.featured-container {
  aspect-ratio: 1.3/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

.featured {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumbnail row */
.thumbnails {
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  gap: 8px;
  margin-top: 10px;
  scroll-snap-type: x mandatory;
  scroll-padding: 0px 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-left: 0;
  margin-left: 0;
  white-space: nowrap;
  width: 100%;
  cursor: grab;
  user-select: none;
}

/* Hide scrollbar while keeping scroll functionality */
.thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnails {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Active drag state */
.thumbnails.dragging {
  cursor: grabbing;
}

/* Thumbnail buttons */
.thumbnail-btn {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.thumbnail-btn img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.7;
  border: 2px solid transparent;
  pointer-events: none;
}

/* Active thumbnail */
.thumbnail-btn.active img {
  opacity: 1;
  border: 2px solid var(--accent);
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
  .thumbnails {
    white-space: nowrap;
    padding-left: 0px;
    margin-left: 0px;
    touch-action: pan-x;
  }

  .thumbnail-btn:first-child {
    margin-left: 0 !important;
  }
}

/* --------------------------------- Title, subtitle, buttons, general USPs, and customer support ---------------------------------  */

.title {
  font-size: 36px;
  font-weight: 700;
  color: var(--header-color);
  margin-top: 0px;
  margin-bottom: 0px;
}

.subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--header-color);
  margin-top: 0px;
  margin-bottom: 0px;
}
/* 
.add-to-cart-button {
  display: block;
  width: 100%;
  margin-top: 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  box-sizing: border-box;
  border: none;
  background-color: var(--accent);
  color: white;
  padding-top: 12px;
  padding-bottom: 12px;
} */

.general-usps {
  display: flex;
  flex-direction: column;
}

.general-usp {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.circle-icon {
  color: var(--success-color);
  font-size: 30px;
}

.highlighted-word {
  font-weight: 700;
  color: var(--success-color);
}

/* .customer-service-container {
  display: flex;
  flex-direction: row;
  padding: 1rem;
  border-radius: 8px;
  gap: 10px;
} */

.customer-service-text {
  display: flex;
  flex-direction: column;
}

.customer-service-question {
  font-weight: 700;
}

/* --------------------------------- Select your intake form and interval ---------------------------------  */

/* Section titles */
.selection-title {
  margin-bottom: 10px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Options container */
.intake-options,
.interval-options {
  display: flex;
  gap: 16px;
  width: 100%;
}

.intake-options .option,
.interval-options .option {
  flex: 1;
}

.interval-options {
  flex-direction: column;
  gap: 10px;
}

/* Hide radio buttons */
.option input {
  display: none;
}

/* Box surrounding options */
.option-box {
  border: 1px solid theme('colors.brand.navy.900');
  border-radius: 12px;
  padding: 16px 24px;
  cursor: pointer;
} */

input[type="radio"]:checked + div {
  border-color: var(--accent);
  background-color: rgba(0, 122, 255, 0.05);
  outline: 2px solid var(--accent);
}

.text-center {
  text-align: center;
}

/* Recommended tag */

/* Additional information */
/* .intake-information-seperate {
  margin-top: 0px;
  display: flex;
  gap: 4px;
  font-size: 14px;
} */

.info-icon-static {
  font-size: 18px;
}

/* Hide additional information by default */
.hidden {
  display: none;
}

/* Tooltip styling (Tailwind) */
.info-icon {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  font-size: 18px;
}

/* Hide the info icon by default */
#starterkit-info-icon.hidden {
  display: none;
}

/* Tooltip box */
.tooltip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 120%;
  background-color: rgb(55 65 81);
  color: rgb(229 231 235);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  max-width: 320px;
  min-width: 200px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease-in-out,
    visibility 0.2s ease-in-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.4;
  z-index: 9999;
}

/* Tooltip positioning below when necessary */
.tooltip.below {
  bottom: auto;
  top: 120%;
}

/* Show tooltip on hover */
.info-icon:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Titles and prices */
.title-price-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-price {
  display: flex;
  flex-direction: column;
}

.interval-title {
  color: var(--header-color);
}

/* Price details */
.price-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.current-price {
  font-weight: 700;
  color: var(--header-color);
}

.original-price {
  font-weight: 700;
  text-decoration: line-through;
  color: #858585;
}

.green-subtitle {
  font-size: 14px;
  color: var(--success-color);
}

.save-16 {
  color: white;
  background-color: var(--success-color);
  padding: 2px 4px;
  border-radius: 2px;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background-color: #d8d8d8;
  margin: 10px 0;
}

/* USPs section */
.variant-usps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.variant-usp {
  display: flex;
  font-size: 14px;
  align-items: center;
  gap: 8px;
}

.center {
  align-items: center;
  text-align: center;
}

/* Expandable details */
.details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.1s ease-out,
    opacity 0.1s ease-out;
}

/* Disabled options */
.option.disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.option.disabled .option-box {
  background-color: var(--disabled-color);
  border-color: var(--disabled-color);
  color: var(--disabled-text-color);
  opacity: 0.6;
}

/* --------------------------------- Product description, product USPs, and social proof --------------------------------- */

.product-description-usps {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.win-icon {
  width: 50px;
}

.social-proof {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.social-proof-text {
  display: flex;
  flex-direction: column;
}

.used-daily-by-5000 {
  color: var(--disabled-text-color);
  font-size: 14px;
}

.product-description {
  margin: 0;
}

.product-usp {
  background-color: var(--background-shade);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 4px;
}

.product-usps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.product-usps-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* --------------------------------- Sections/Accordions --------------------------------- */

.product-info-divider {
  height: 1px;
  background-color: #d8d8d8;
  width: 100%;
}

.section-titles {
  /*margin: 0;
  color: var(--header-color);*/
  color: #000;

  /* Text/Desktop/Headers/Supporting */
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px; /* 155.556% */
  letter-spacing: -0.36px;
}

.bold {
  display: block;
  font-weight: 700;
}

.block {
  display: block;
}

.intake-tips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.intake-tip {
  color: #4d4d4f;
  display: flex;
  flex-direction: center;
  gap: 4px;
}

.inline {
  display: inline;
}

.accordion-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 120px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease-in-out;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%);
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.toggle-btn {
  display: block;
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
}

.show-more {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--accent);
  margin-top: 10px;
  justify-content: center;
}

.material-symbols-outlined {
  transition: transform 0.3s ease-in-out;
}

.vitamins-and-minerals-table {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  max-width: 500px;
  border: 1px solid var(--disabled-text-color);
  gap: 0;
  font-size: 14px;
}

.cell {
  border-bottom: 1px solid var(--background-shade);
  padding: 5px 0 5px 10px;
}

.filled {
  background-color: var(--background-shade);
  font-weight: 700;
  border-bottom: 1px solid var(--disabled-text-color);
}

/* --------------------------------- Health benefits ---------------------------------- */

.health-benefit-container {
  background-color: var(--background-shade);
  padding: 0.5rem;
  /* border-radius: 999px; */
  border-radius: 1rem;
}

.health-benefit-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-right: 6px;
}

.health-benefit-icon-and-title {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}

.circle-around-icon {
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  border-radius: 50%;
  min-height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-around-icon .material-symbols-outlined {
  font-size: 26px;
}

.health-benefit-accordion {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.vitamin-mineral-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  /* On desktop it should 18px  */
  margin-top: 12px;
  margin-bottom: 8px;
}

.vitamin-mineral-tag {
  /* 16px on desktop */
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px; /* 133.333% */
  letter-spacing: -0.24px;
  background-color: #d1ecf0;
  padding: 3px 5px;
  margin-right: 4px;
  margin-bottom: 6px;
  border-radius: 4px;
  display: inline-block;
  align-items: center;
  width: fit-content;
  gap: 4px;
}

.nutrient-text {
  color: #4d4d4f;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 142.857% */
  letter-spacing: -0.28px;
  margin-right: 4px;
}

.vitamin-mineral-summary {
  padding-left: 12px;
  padding-right: 12px;
  display: block;
}

.health-benefit-contents {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.1s ease-out,
    opacity 0.1s ease-out;
}

.health-benefits-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --------------------------------- Product cards --------------------------------- */

.product-details {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--base-soft);
  border-radius: 8px;
  padding: 8px;
}

.product-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* .product-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
} */

.product-name-and-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-name {
  font-size: 18px;
  font-weight: 700;
}

.bundle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.smaller-text {
  font-size: 16px;
}

.bundle-image {
  width: 240px;
  height: 240px;
}

.space {
  display: flex;
  flex-direction: column;
}

/* --------------------------------- Sticky CTA on mobile --------------------------------- */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  padding: 14px;
  text-align: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s;
  box-sizing: border-box;
  box-shadow: 0px -10px 25px rgba(0, 0, 0, 0.2);
}

.sticky-cta.show {
  opacity: 1;
  visibility: visible;
}

.selection-with-price {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.sticky-button {
  margin-bottom: 8px;
  margin-top: 8px;
}

/* --------------------------------- Desktop --------------------------------- */

@media (max-width: 640px) {
  .option-box {
    padding: 16px 12px;
  }
}
@media (min-width: 1024px) {
  .vitamin-mineral-tags {
    font-size: 18px;
  }
  .vitamin-mineral-tag {
    font-size: 16px;
  }
  .nutrient-text {
    font-size: 18px;
  }
  .space {
    display: flex;
    flex-direction: row;
  }

  .page {
    font-size: 18px;
    padding-bottom: 0;
  }

  /* Page layout */
  .container {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 1.5rem 4rem;
    max-width: 80rem;
    margin: auto;
    align-items: start;
    height: auto;
  }

  .product-aside {
    position: static;
    top: 20px;
    align-self: start;
    grid-row: span 15;
  }

  /* Gallery adjustments */
  .gallery-container {
    max-width: 100%;
    flex: 2;
    flex-direction: row;
    align-items: start;
  }

  .thumbnails {
    order: 1;
    width: 15%;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    gap: 8px;
    margin: 0 10px 0 0;
    scroll-snap-type: y mandatory;
    white-space: normal;
  }

  .thumbnail-btn img {
    width: 95%;
    height: 100%;
  }

  .featured-container {
    order: 2;
    flex: 1;
    width: auto;
    aspect-ratio: 1;
  }

  .toggle-btn {
    font-size: 18px;
  }

  .vitamins-and-minerals-table {
    font-size: 16px;
  }

  .general-usp,
  .variant-usp {
    font-size: 16px;
  }

  .product-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px;
  }

  .product-image {
    width: 180px;
    height: 180px;
  }

  .product-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-name-and-price {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }

  .product-name-and-price div {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .product-name {
    text-align: left;
  }

  .bundle-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 1.5rem;
  }

  .smaller-text {
    font-size: 16px;
  }

  .small-button {
    width: auto;
    padding-right: 2rem;
    padding-left: 2rem;
  }
}
