
.epb {
  --epb-green: #173F32;
  --epb-green-2: #244E41;
  --epb-text: #173F32;
  --epb-muted: #66736D;
  --epb-border: #D5DDD8;
  --epb-soft: #F3F5F2;
  --epb-tint: #EDF4EE;
  --epb-white: #FFFFFF;
  width: 100%;
  color: var(--epb-text);
  font-family: inherit;
}

.epb * {
  box-sizing: border-box;
}

.epb__heading {
  margin: 0 0 11px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .09em;
  color: var(--epb-green);
}

.epb__plans {
  display: grid;
  gap: 12px;
}

.epb__card {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--epb-border);
  border-radius: 14px;
  background: var(--epb-white);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}

.epb__card:hover {
  border-color: #9FB2A8;
}

.epb__card.is-selected {
  border: 2px solid var(--epb-green);
  background: #FCFEFC;
  box-shadow: 0 0 0 1px rgba(23, 63, 50, .02);
}

.epb__card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.epb__radio {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid #9AA9A1;
  border-radius: 50%;
  background: #fff;
}

.epb__card.is-selected .epb__radio {
  border-color: var(--epb-green);
}

.epb__card.is-selected .epb__radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--epb-green);
}

.epb__card-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.epb__topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.epb__plan-name {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--epb-green);
}

.epb__price {
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  color: var(--epb-green);
}

.epb__price .woocommerce-Price-amount,
.epb__subscription-price .woocommerce-Price-amount,
.epb__cta-price .woocommerce-Price-amount {
  color: inherit;
}

.epb__subline,
.epb__per-serving,
.epb__renewal {
  font-size: 12px;
  line-height: 1.4;
  color: var(--epb-muted);
}

.epb__subscription-price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 5px;
}

.epb__subscription-price {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: var(--epb-green);
}

.epb__subscription-price-row del {
  font-size: 13px;
  color: #8A948F;
}

.epb__benefits {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #31463C;
}

.epb__renewal {
  margin-top: 4px;
  font-size: 10.5px;
}

.epb__badge {
  position: absolute;
  top: -11px;
  right: 14px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--epb-green);
  color: #fff;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
}

.epb__quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
}

.epb__quantity-label {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .09em;
  color: var(--epb-green);
}

.epb__quantity-control {
  display: grid;
  grid-template-columns: 42px 54px 42px;
  overflow: hidden;
  border: 1px solid var(--epb-border);
  border-radius: 10px;
  background: #fff;
}

.epb__qty-btn,
.epb__qty {
  height: 44px;
  border: 0;
  outline: 0;
  background: #fff;
  color: var(--epb-green);
  text-align: center;
}

.epb__qty-btn {
  padding: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.epb__qty-btn:hover {
  background: #F6F8F6;
}

.epb__qty {
  width: 100%;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  -moz-appearance: textfield;
}

.epb__qty::-webkit-inner-spin-button,
.epb__qty::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.epb__add-to-cart {
  width: 100%;
  min-height: 58px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--epb-green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .055em;
  transition: transform .16s ease, background-color .16s ease, opacity .16s ease;
}

.epb__add-to-cart:hover {
  transform: translateY(-1px);
  background: var(--epb-green-2);
}

.epb__add-to-cart[disabled] {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.epb__message {
  min-height: 0;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.epb__message.is-error {
  color: #8B2525;
}

.epb__message.is-success {
  color: var(--epb-green);
}

.epb__guarantee {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 13px;
  padding: 15px 16px;
  border-radius: 12px;
  background: var(--epb-tint);
}

.epb__guarantee-title {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .07em;
  color: var(--epb-green);
}

.epb__guarantee-copy {
  font-size: 12px;
  line-height: 1.45;
  color: #4B5E55;
}

.epb__microcopy {
  margin-top: 9px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--epb-muted);
}

.epb-admin-warning {
  padding: 12px 14px;
  border: 1px solid #d3a72d;
  border-radius: 8px;
  background: #fff7da;
  color: #6a5415;
  font-size: 13px;
}

@media (max-width: 767px) {
  .epb__card {
    padding: 16px 14px;
    gap: 10px;
  }

  .epb__plan-name {
    font-size: 13px;
  }

  .epb__price {
    font-size: 18px;
  }

  .epb__subscription-price {
    font-size: 24px;
  }

  .epb__quantity-control {
    grid-template-columns: 40px 48px 40px;
  }
}


/* Elevate Product Gallery */
.epg {
  --epg-green: #173F32;
  --epg-border: #D5DDD8;
  --epg-bg: #F5F3ED;
  width: 100%;
}

.epg * {
  box-sizing: border-box;
}

.epg__main-wrap {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border-radius: 16px;
  background: var(--epg-bg);
}

.epg__main-button {
  display: flex;
  width: 100%;
  min-height: 540px;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border: 0;
  background: transparent;
  cursor: default;
}

.epg[data-lightbox="1"] .epg__main-button {
  cursor: zoom-in;
}

.epg__main-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 500px;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.epg__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(23,63,50,.15);
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--epg-green);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  opacity: 0;
  transition: opacity .18s ease, background-color .18s ease;
}

.epg__main-wrap:hover .epg__arrow,
.epg__arrow:focus-visible {
  opacity: 1;
}

.epg__arrow:hover {
  background: #fff;
}

.epg__arrow--prev {
  left: 14px;
}

.epg__arrow--next {
  right: 14px;
}

.epg__thumbs {
  display: flex;
  gap: 9px;
  margin-top: 10px;
  overflow-x: auto;
  padding: 1px 1px 5px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.epg__thumbs::-webkit-scrollbar {
  display: none;
}

.epg__thumb {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--epg-border);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.epg__thumb:hover {
  border-color: #9FB2A8;
}

.epg__thumb.is-selected {
  border: 2px solid var(--epg-green);
  box-shadow: 0 0 0 1px rgba(23,63,50,.03);
}

.epg__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.epg__lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(10,20,16,.88);
}

.epg__lightbox.is-open {
  display: flex;
}

.epg__lightbox-image {
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  object-fit: contain;
}

.epg__lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
}

@media (max-width: 1024px) {
  .epg__main-wrap,
  .epg__main-button {
    min-height: 470px;
  }

  .epg__main-image {
    height: 430px;
  }
}

@media (max-width: 767px) {
  .epg__main-wrap,
  .epg__main-button {
    min-height: 370px;
  }

  .epg__main-button {
    padding: 18px;
  }

  .epg__main-image {
    height: 335px;
  }

  .epg__thumb {
    flex-basis: 70px;
    width: 70px;
    height: 70px;
  }

  .epg__arrow {
    display: none;
  }
}
