/* First-purchase actions reuse the existing server-side coupon validation. */
.leyva-welcome-action { display: grid; gap: .7rem; margin-top: .8rem; }
.leyva-welcome-action__button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .7rem 1rem; border: 2px solid #12684f;
  border-radius: 10px; background: #12684f; color: #fff !important;
  font-weight: 750; line-height: 1.4; text-align: center;
  text-decoration: none !important; white-space: normal;
}
.leyva-welcome-action__button:hover { background: #084936; border-color: #084936; }
.leyva-welcome-action__button:focus-visible { outline: 3px solid #c67515; outline-offset: 3px; }
.leyva-app-promo__content .leyva-welcome-action__button { margin: .35rem 0 .5rem; }
@media (max-width: 600px) {
  .leyva-welcome-action__button { width: 100%; box-sizing: border-box; }
}
.leyva-commercial-hero {
  position: relative;
  isolation: isolate;
  min-height: 370px;
  margin: 1.5rem auto 2rem;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  background-color: #073b43;
  background-image: linear-gradient(90deg, rgba(4, 47, 54, .98) 0%, rgba(4, 47, 54, .9) 42%, rgba(4, 47, 54, .12) 72%), url('../img/promo-shipping.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 44px rgba(4, 47, 54, .2);
}

.leyva-commercial-hero__content {
  width: min(610px, 58%);
  padding: clamp(2rem, 4vw, 4rem);
}

.leyva-commercial-hero__eyebrow {
  margin: 0 0 .55rem;
  color: #bce5c6;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.leyva-commercial-hero h2 {
  max-width: 580px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.leyva-commercial-hero__lead {
  margin: 1.1rem 0 .5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.leyva-commercial-code {
  display: inline-block;
  margin: 0;
  padding: .52rem .9rem;
  border: 1px dashed rgba(255, 255, 255, .75);
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 900;
  letter-spacing: .08em;
}

.leyva-commercial-code--action {
  display: inline-grid;
  gap: .16rem;
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.leyva-commercial-code--action small {
  color: #d8f3e2;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: normal;
}

.leyva-commercial-code--action:hover,
.leyva-commercial-code--action:focus {
  color: #fff;
  background: rgba(255, 255, 255, .22);
  text-decoration: none;
  transform: translateY(-1px);
}

.leyva-commercial-coupon-feedback {
  margin: .55rem 0 0;
  padding: .55rem .75rem;
  border-radius: 7px;
  color: #063d2e;
  background: #d9f3e8;
  font-weight: 800;
}

.leyva-commercial-hero__terms,
.leyva-commercial-hero__exclusion {
  max-width: 590px;
  color: rgba(255, 255, 255, .88);
}

.leyva-commercial-hero__terms {
  margin: .8rem 0 1rem;
  font-weight: 700;
}

.leyva-commercial-hero__exclusion {
  margin: 1rem 0 0;
  font-size: .85rem;
  line-height: 1.45;
}

.leyva-commercial-hero__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .72rem 1.05rem;
  border-radius: 8px;
  color: #073b43;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.leyva-commercial-hero__link:hover,
.leyva-commercial-hero__link:focus {
  color: #073b43;
  background: #d9f0de;
  text-decoration: none;
}

.leyva-commercial-app-links,
.leyva-app-promo__stores {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.leyva-commercial-app-links {
  margin-top: 1rem;
}

.leyva-commercial-app-links a,
.leyva-app-promo__stores a {
  display: grid;
  min-width: 145px;
  padding: .55rem .8rem;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 10px;
  color: #fff;
  background: #071f24;
  text-decoration: none;
  line-height: 1.1;
  transition: transform 160ms ease, background-color 160ms ease;
}

.leyva-commercial-app-links a:hover,
.leyva-commercial-app-links a:focus,
.leyva-app-promo__stores a:hover,
.leyva-app-promo__stores a:focus {
  color: #fff;
  background: #0a513d;
  text-decoration: none;
  transform: translateY(-1px);
}

.leyva-commercial-app-links small,
.leyva-app-promo__stores small {
  margin-bottom: .15rem;
  color: rgba(255, 255, 255, .76);
  font-size: .68rem;
}

.leyva-commercial-app-links strong,
.leyva-app-promo__stores strong {
  color: #fff;
  font-size: .96rem;
}

.leyva-commercial-note {
  display: grid;
  gap: .25rem;
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid #b7dbca;
  border-left: 5px solid #087b60;
  border-radius: 10px;
  color: #153d38;
  background: #effaf5;
  line-height: 1.4;
}

.leyva-commercial-note strong {
  color: #073b43;
}

.leyva-commercial-note__coupon {
  margin-top: .35rem;
  padding-top: .65rem;
  border-top: 1px solid #c8e6d8;
}

.leyva-discount-breakdown {
  width: 100%;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid #9bd7ae;
  border-radius: 12px;
  background: #f0fbf4;
  color: #153b23;
}

.leyva-discount-breakdown__title {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #146c35;
}

.leyva-discount-breakdown dl {
  margin: 0;
}

.leyva-discount-breakdown dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(20, 108, 53, 0.12);
}

.leyva-discount-breakdown dt,
.leyva-discount-breakdown dd {
  margin: 0;
}

.leyva-discount-breakdown dd {
  flex: 0 0 auto;
  font-weight: 700;
  text-align: right;
}

.leyva-discount-breakdown__saving dd {
  color: #16813f;
}

.leyva-discount-breakdown__total {
  font-size: 1.05rem;
  font-weight: 700;
}

.leyva-discount-breakdown small {
  display: block;
  margin-top: 10px;
  color: #45604e;
  line-height: 1.4;
}

.leyva-coupon-helper {
  display: grid;
  gap: .45rem;
  margin: 1rem 0;
  padding: 1.1rem;
  border: 2px solid #087b60;
  border-radius: 12px;
  color: #153d38;
  background: linear-gradient(135deg, #effaf5, #fff);
  box-shadow: 0 8px 24px rgba(7, 59, 67, .1);
}

.leyva-coupon-helper strong {
  color: #073b43;
  font-size: 1.08rem;
}

.leyva-coupon-helper b {
  display: inline-block;
  padding: .12rem .4rem;
  border: 1px dashed #087b60;
  border-radius: 5px;
  background: #fff;
  letter-spacing: .04em;
}

.leyva-coupon-helper__form {
  display: grid;
  gap: .35rem;
  margin-top: .35rem;
}

.leyva-coupon-helper__form label {
  margin: 0;
  color: #073b43;
  font-weight: 800;
}

.leyva-coupon-helper__controls {
  display: flex;
  gap: .55rem;
}

.leyva-coupon-helper__controls input {
  min-width: 0;
  min-height: 44px;
  border: 2px solid #87bbae;
  background: #fff;
  font-weight: 800;
  letter-spacing: .04em;
}

.leyva-coupon-helper .btn {
  flex: 0 0 auto;
  min-height: 44px;
}

.leyva-coupon-helper small,
.leyva-recovery-consent small {
  color: #526b67;
  line-height: 1.4;
}

.leyva-coupon-helper__status {
  margin: 0 0 .25rem;
  padding: .6rem .75rem;
  border-radius: 7px;
  font-weight: 800;
}

.leyva-coupon-helper__status.is-ok {
  color: #07543f;
  background: #d9f3e8;
}

.leyva-coupon-helper__status.is-error {
  color: #742a2a;
  background: #fde7e7;
}

.leyva-payment-info__lead {
  max-width: 820px;
  margin: 0 0 1.4rem;
  color: #445f5a;
  font-size: 1.08rem;
}

.leyva-payment-info__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.leyva-payment-info__grid:not(:has(.leyva-payment-info__card)) {
  display: block;
  padding: 1.2rem;
  border: 1px solid #c8d8d4;
  border-radius: 14px;
  background: #fff;
}

.leyva-payment-info__grid:not(:has(.leyva-payment-info__card)) .leyva-payment-info__eyebrow:not(:first-child) {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #c8d8d4;
}

.leyva-payment-info__card {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid #c8d8d4;
  border-top: 5px solid #087b60;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(4, 47, 54, .08);
}

.leyva-payment-info__card h2 {
  margin: .25rem 0 .8rem;
  color: #073b43;
}

.leyva-payment-info__card li + li {
  margin-top: .35rem;
}

.leyva-payment-info__eyebrow {
  margin: 0;
  color: #087b60;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.leyva-payment-info__help {
  display: grid;
  gap: .25rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  color: #153d38;
  background: #effaf5;
}

.leyva-recovery-consent {
  display: grid;
  gap: .35rem;
  margin: .9rem 0;
  padding: .85rem 1rem;
  border: 1px solid #c8d8d4;
  border-radius: 9px;
  color: #153d38;
  background: #f8fbfa;
}

.leyva-recovery-consent__label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: 0;
  cursor: pointer;
}

.leyva-recovery-consent__label input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: .12rem;
}

[data-leyva-consent-status].is-ok {
  color: #087b60;
  font-weight: 700;
}

.leyva-recovery-page {
  width: min(720px, calc(100% - 2rem));
  margin: 3rem auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid #c8d8d4;
  border-radius: 18px;
  color: #153d38;
  background: #fff;
  box-shadow: 0 18px 44px rgba(4, 47, 54, .14);
  text-align: center;
}

.leyva-recovery-page__eyebrow {
  color: #087b60;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.leyva-app-promo[hidden] {
  display: none !important;
}

.leyva-app-promo {
  position: fixed;
  z-index: 1060;
  right: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  width: min(430px, calc(100vw - 2rem));
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(7, 59, 67, .15);
  border-radius: 16px;
  color: #153d38;
  background: #fff;
  box-shadow: 0 20px 52px rgba(4, 47, 54, .24);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.leyva-app-promo.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.leyva-app-promo__close {
  position: absolute;
  top: .35rem;
  right: .45rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  color: #315a54;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.leyva-app-promo__close:hover,
.leyva-app-promo__close:focus {
  color: #073b43;
  background: #effaf5;
}

.leyva-app-promo__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #087b60, #073b43);
  font-size: 1.75rem;
  font-weight: 900;
}

.leyva-app-promo__content {
  padding-right: 1rem;
}

.leyva-app-promo__eyebrow {
  margin: 0 0 .2rem;
  color: #087b60;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.leyva-app-promo h2 {
  margin: 0 0 .3rem;
  color: #073b43;
  font-size: 1.35rem;
  line-height: 1.15;
}

.leyva-app-promo p {
  margin: 0;
  line-height: 1.4;
}

.leyva-app-promo__download {
  margin-top: .65rem !important;
  font-size: .82rem;
  font-weight: 700;
}

.leyva-app-promo__stores {
  margin-top: .5rem;
}

.leyva-app-promo__stores a {
  flex: 1 1 130px;
  min-width: 0;
}

@media (max-width: 767px) {
  .leyva-discount-breakdown {
    padding: 14px;
  }

  .leyva-discount-breakdown dl > div {
    align-items: flex-start;
  }

  .leyva-discount-breakdown dt {
    max-width: 68%;
  }

  .leyva-payment-info__grid {
    grid-template-columns: 1fr;
  }

  .leyva-commercial-hero {
    min-height: 520px;
    border-radius: 14px;
    background-image: linear-gradient(180deg, rgba(4, 47, 54, .99) 0%, rgba(4, 47, 54, .94) 58%, rgba(4, 47, 54, .24) 100%), url('../img/promo-shipping.png');
    background-position: 62% center;
  }

  .leyva-commercial-hero__content {
    width: 100%;
    padding: 1.6rem 1.35rem;
  }

  .leyva-commercial-hero h2 {
    font-size: 2.15rem;
  }

  .leyva-commercial-hero__link {
    width: 100%;
    justify-content: center;
  }

  .leyva-commercial-app-links a {
    flex: 1 1 140px;
  }

  .leyva-app-promo {
    right: .65rem;
    bottom: .65rem;
    width: calc(100vw - 1.3rem);
    padding: 1rem;
  }

  .leyva-app-promo__mark {
    width: 44px;
    height: 44px;
  }

  .leyva-coupon-helper__controls {
    display: grid;
  }

  .leyva-coupon-helper .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leyva-app-promo,
  .leyva-commercial-app-links a,
  .leyva-app-promo__stores a {
    transition: none;
  }
}

/*
 * leyvagooglemerchant conserva el recargo técnico legado
 * (PORTES AFT - 5,95 €) y por tanto ya no puede explicar el porte final.
 * LeyvaCommercial muestra el importe AFT reconstruido una sola vez por
 * referencia; ocultamos las dos ayudas antiguas para evitar cifras duplicadas.
 */
.leyva-shipping-product,
.leyva-shipping-cart {
  display: none !important;
}
.leyva-cart-summary:has([data-leyva-discount-breakdown]) > .leyva-cart-totals,
.leyva-cart-summary:has([data-leyva-discount-breakdown]) > [data-leyva-coupon-helper] { display: none; }
.leyva-cart-summary .leyva-commercial-note--cart { margin: 1rem 0; padding: .75rem; font-size: .9rem; width: 100%; box-sizing: border-box; min-width: 0; }
.leyva-cart-summary .leyva-commercial-note--cart:has([data-leyva-discount-breakdown]) > .leyva-commercial-note__coupon { display: none; }
.leyva-cart-summary .leyva-discount-breakdown,
.leyva-cart-summary .leyva-coupon-helper,
.leyva-cart-summary .leyva-quote-entry { box-sizing: border-box; max-width: 100%; min-width: 0; }
.leyva-cart-summary .leyva-discount-breakdown { margin: 0 0 .75rem; padding: .75rem; }
.leyva-cart-summary [data-leyva-apply-coupon],
.leyva-cart-summary .leyva-quote-entry--cart > a { display: flex; justify-content: center; align-items: center; min-height: 44px; padding: .6rem; border: 2px solid #12684f; border-radius: 8px; color: #12684f; font-weight: 700; text-align: center; text-decoration: none; }
