/* =============================================================
   WTPS CHECKOUT — Stylesheet
   BEM block prefix: wtps-checkout
   ============================================================= */

/* ─── Reset ─── */
.wtps-checkout {

  --checkout-gap-xs:  4px;
  --checkout-gap-sm:  8px;
  --checkout-gap-md:  16px;
  --checkout-gap-lg:  24px;
  --checkout-gap-xl:  50px;
  --checkout-muted:        0.6;
  --checkout-placeholder:  0.3;
  --checkout-error:        #e53e3e;
  --checkout-warning:      #e48d1b;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
}

.wtps-checkout a { color: inherit; text-decoration: underline; }
.wtps-checkout ul { list-style: none; }
.wtps-checkout button { cursor: pointer; font-family: inherit }
.wtps-checkout input, .wtps-checkout select { font-family: inherit }

.wtps-checkout {
  .wtps-checkout-notices:not(.show),
  .wtps-checkout-help:not(.show),
  .wtps-checkout-keep-buying:not(.show),
  .wtps-checkout-upsell:not(.show) {
    display: none;
  }
}

/* =============================================================
   ░░  SUB-COMPONENTS
   ============================================================= */

/* ── INPUT ── */
.wtps-checkout-input {
  width: 100%;
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-sm);
}

.wtps-checkout-input__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--checkout-color-texto);
}

.wtps-checkout-input__field {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--checkout-input-borde);
  border-radius: var(--checkout-input-redondear);
  background: var(--checkout-input-fondo);
  font-size: smaller;
  font-weight: 400;
  color: var(--checkout-input-texto);
  outline: none;
  transition: all 200ms ease;
}

.wtps-checkout-input__group {
  width: 100%;
  display: flex;
  gap: 8px;
}

.wtps-checkout-input__field::placeholder {
  color: currentColor;
  opacity: var(--checkout-placeholder);
}

.wtps-checkout-input__field:focus {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--checkout-input-borde) 10%, transparent);
}

.wtps-checkout-input__field.is-error {
  border-color: var(--checkout-error);
  background-color: #fff5f5;
}

.wtps-checkout-input__error-msg {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--checkout-error);
}

.wtps-checkout-pricing__coupon {
  display: flex;
  align-items: end;
  gap: 10px;
}

.wtps-checkout-pricing__coupon-btn {
  padding: 12px 16px;
  border: 1px solid var(--checkout-input-borde);
  border-radius: var(--checkout-input-redondear);
  color: var(--checkout-input-texto);
  background: var(--checkout-input-fondo);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 200ms ease;
}

.wtps-checkout-pricing__coupon-btn:hover {
  opacity: 0.8;
}

.wtps-checkout-input--no-label .wtps-checkout-input__label {
  display: none;
}

.wtps-checkout__info-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--checkout-gap-lg);
}

/* ── NOTICES ── */
.wtps-checkout-notices {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-sm);
  width: 100%;
}

.wtps-checkout-notices:empty { display: none; }

.wtps-checkout-notice {
  padding: 14px 16px;
  border-radius: clamp(0px, var(--checkout-input-redondear), 32px);
  border: 1px solid color-mix(in srgb, var(--checkout-warning) 60%, transparent);
}

.wtps-checkout-notice__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.wtps-checkout-notice__body {
  font-size: 14px;
  line-height: 1.5;
}

.wtps-checkout-notice--warning {
  color: var(--checkout-warning);
  background: color-mix(in srgb, var(--checkout-warning) 10%, transparent);
}

/* ── COMPANY TOGGLE ── */
.wtps-checkout-company:not(.show) {
  display: none;
}

.wtps-checkout-company {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-md);
}

.wtps-checkout-company-toggle {
  width: 100%;
  grid-column: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--checkout-color-texto);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 150ms ease;
}

.wtps-checkout-company-toggle:hover { opacity: 1; }

.wtps-checkout-company-toggle__icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  transition: transform 200ms ease;
}

.wtps-checkout-company-toggle.is-open .wtps-checkout-company-toggle__icon {
  transform: rotate(90deg);
}

.wtps-checkout-company-field {
  display: none;
  grid-column: 1 / -1;
}

.wtps-checkout-company-field.is-visible {
  display: flex;
}

/* ── CUSTOM SELECT ── */
.wtps-checkout-select {
  position: relative;
  width: 100%;
}

.wtps-checkout-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--checkout-input-borde);
  border-radius: var(--checkout-input-redondear);
  background: var(--checkout-input-fondo);
  font-size: smaller;
  font-weight: 400;
  color: var(--checkout-input-texto);
  cursor: pointer;
  transition: all 200ms ease;
  user-select: none;
  box-sizing: border-box;
}

.wtps-checkout-select.is-open .wtps-checkout-select__trigger {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--checkout-input-borde) 10%, transparent);
}

.wtps-checkout-select.is-error .wtps-checkout-select__trigger {
  border-color: var(--checkout-error);
  background-color: #fff5f5;
}

.wtps-checkout-select__value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wtps-checkout-select__value--placeholder {
  opacity: var(--checkout-placeholder);
}

.wtps-checkout-select__arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.6;
  transition: transform 200ms ease;
}

.wtps-checkout-select.is-open .wtps-checkout-select__arrow {
  transform: rotate(180deg);
}

.wtps-checkout-select__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--checkout-color-fondo);
  border: 1px solid var(--checkout-input-borde);
  border-radius: var(--checkout-input-redondear);
  overflow-y: auto;
  max-height: 200px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wtps-checkout-select.is-open .wtps-checkout-select__dropdown {
  display: block;
}

.wtps-checkout-select__option {
  padding: 10px 16px;
  font-size: smaller;
  color: var(--checkout-input-texto);
  background: var(--checkout-input-fondo);
  cursor: pointer;
  transition: background 150ms ease;
}

.wtps-checkout-select__option:hover {
  background: color-mix(in srgb, var(--checkout-input-borde) 40%, var(--checkout-input-fondo));
}

.wtps-checkout-select__option--selected {
  font-weight: 600;
  background: color-mix(in srgb, var(--checkout-input-borde) 20%, var(--checkout-input-fondo));
}

.wtps-checkout-select__option--placeholder {
  opacity: var(--checkout-placeholder);
}

.wtps-checkout--4 .wtps-checkout-select__trigger {
  border: 0;
  border-bottom: 1px solid var(--checkout-input-borde);
  border-radius: 0;
  padding: 12px;
}

/* ── PAYMENT OPTION ── */
.wtps-checkout-payment-option {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: var(--checkout-gap-sm);
  padding: 16px 24px;
  border: 1px solid var(--checkout-input-borde);
  color: var(--checkout-input-texto);
  background: var(--checkout-input-fondo);
  border-radius: clamp(0px, var(--checkout-input-redondear), 32px);
  cursor: pointer;
  transition: opacity 0.15s;
  user-select: none;
}

.wtps-checkout-payment-option__radio {
  grid-row: 1 / span 1;
  grid-column: 1 / span 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--checkout-input-borde);
  border-radius: 50%;
  margin-top: 2px;
}

.wtps-checkout-payment-option__radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--checkout-color-texto);
  opacity: 0;
  transition: opacity 0.15s;
}

.wtps-checkout-payment-option--selected .wtps-checkout-payment-option__radio-dot {
  opacity: 1;
}

.wtps-checkout-payment-option__icon {
  grid-column: 2 / span 1;
  grid-row: 1 / span 1;
  margin-top: 2px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.8;
}

.wtps-checkout-payment-option__label {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.wtps-checkout-payment-option:not(.wtps-checkout-payment-option--selected) {
  opacity: 0.7;
}

.wtps-checkout-payment-option--chip {
  display: inline-flex;
  padding: 12px 24px;
  gap: var(--checkout-gap-md);
}

.wtps-checkout-payment-option--chip.wtps-checkout-payment-option--selected {
  background: var(--checkout-boton-color-fondo);
  opacity: 1;
}

.wtps-checkout-payment-option--chip.wtps-checkout-payment-option--selected .wtps-checkout-payment-option__label {
  color: var(--checkout-boton-color-texto);
}

.wtps-checkout-payment-option--chip.wtps-checkout-payment-option--selected .wtps-checkout-payment-option__icon {
  color: var(--checkout-boton-color-texto);
}

.wtps-checkout-payment-option--chip-minimal {
  padding: 25px 24px;
  font-size: 14px;
}

.wtps-checkout-payment-option--chip-minimal .wtps-checkout-payment-option__label {
  font-size: 14px;
}

.wtps-checkout-payment-option--chip-minimal .wtps-checkout-payment-option__icon {
  width: 28px;
  height: 28px;
}

.wtps-checkout-payment-option--chip-minimal:not(.wtps-checkout-payment-option--selected) {
  opacity: 0.6;
}

/* ── SHIPPING OPTION ── */
.wtps-checkout-shipping-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: var(--checkout-gap-sm);
  padding: 16px 24px;
  border: 1px solid var(--checkout-input-borde);
  color: var(--checkout-input-texto);
  background: var(--checkout-input-fondo);
  border-radius: clamp(0px, var(--checkout-input-redondear), 32px);
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s;
}

.wtps-checkout-shipping-option__radio {
  grid-row: 1 / span 1;
  grid-column: 1 / span 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--checkout-input-borde);
  border-radius: 50%;
  margin-top: 2px;
}

.wtps-checkout-shipping-option__radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--checkout-color-texto);
  opacity: 0;
  transition: opacity 0.15s;
}

.wtps-checkout-shipping-option--selected .wtps-checkout-shipping-option__radio-dot {
  opacity: 1;
}

/* .wtps-checkout-shipping-option__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.8;
} */

.wtps-checkout-shipping-option__info,
.wtps-checkout-payment-option__info {
  grid-row: 2 / span 1;
  grid-column: 1 / -1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-xs);
}

.wtps-checkout-shipping-option__name,
.wtps-checkout-payment-option__name {
  grid-row: 1 / span 1;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.wtps-checkout-shipping-option__sub,
.wtps-checkout-payment-option__sub {
  grid-row: 2 / span 1;
  grid-column: 1 / -1;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  opacity: var(--checkout-muted);
}

.wtps-checkout-shipping-option__price {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  flex-shrink: 0;
}

.wtps-checkout-shipping-option:not(.wtps-checkout-shipping-option--selected) {
  opacity: 0.7;
}

.wtps-checkout-shipping-option:hover,
.wtps-checkout-payment-option:hover {
  opacity: 1;
}

.wtps-checkout-shipping-option--card {
  flex-direction: column;
  align-items: flex-start;
  padding: 25px 24px;
  gap: var(--checkout-gap-md);
}

.wtps-checkout-shipping-option--card .wtps-checkout-shipping-option__name {
  font-size: 14px;
}

.wtps-checkout-shipping-option--card .wtps-checkout-shipping-option__price {
  font-size: 14px;
}

/* ── STEPPER ── */
.wtps-checkout-stepper {
  display: flex;
  align-items: center;
  width: 100%;
  padding-bottom: 28px;
}

.wtps-checkout-stepper__connector {
  flex: 1;
  height: 2px;
  background: var(--checkout-sidebar-color-texto);
  opacity: 0.2;
}

.wtps-checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--checkout-gap-sm);
  flex-shrink: 0;
  position: relative;
}

.wtps-checkout-step--active { opacity: 1; }

.wtps-checkout-step.is-disabled {
  opacity: 0.8;
  cursor: default;
  pointer-events: none;
}

.wtps-checkout-step__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--checkout-sidebar-color-texto);
  flex-shrink: 0;
}

.wtps-checkout-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--checkout-sidebar-color-fondo);
}

.wtps-checkout-step__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  color: var(--checkout-sidebar-color-texto);
  position: absolute;
  bottom: -28px;
}

/* ── PRODUCT ITEM ── */
.wtps-checkout-product {
  display: flex;
  gap: var(--checkout-gap-md);
  align-items: center;
}

.wtps-checkout-product__image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--checkout-sidebar-redondear);
  overflow: hidden;
}

.wtps-checkout-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wtps-checkout-product__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: var(--checkout-sidebar-color-texto);
  color: var(--checkout-sidebar-color-fondo);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wtps-checkout-product__image-wrap {
  position: relative;
  flex-shrink: 0;
}

.wtps-checkout-product__info {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wtps-checkout-product__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.wtps-checkout-product__variant {
  font-size: 13px;
  opacity: var(--checkout-muted);
}

.wtps-checkout-product__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  flex-shrink: 0;
}

.wtps-checkout-product__price-old {
  font-size: 12px;
  line-height: 1;
  opacity: 0.55;
  text-decoration: line-through;
}

.wtps-checkout-product__price-current {
  font-size: 14px;
  font-weight: 600;
}

.wtps-checkout-product__info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.wtps-checkout-product__remove {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: currentColor;
  opacity: 0.4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 4px;
  line-height: 1;
  transition: opacity 0.15s;
}

.wtps-checkout-product__remove:hover {
  opacity: 0.8;
}

.wtps-checkout-product__info-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.wtps-checkout-product__qty {
  display: flex;
  align-items: center;
  /* border: 1px solid currentColor; */
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.7;
}

.wtps-checkout-product__qty-btn {
  background: none;
  border: none;
  padding: 0 8px;
  height: 26px;
  cursor: pointer;
  font-size: 15px;
  color: currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wtps-checkout-product__qty-value {
  font-size: 13px;
  font-weight: 500;
  min-width: 22px;
  text-align: center;
  padding: 0 2px;
  /* border-left: 1px solid currentColor;
  border-right: 1px solid currentColor; */
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

/* ── PRICING BREAKDOWN ── */
.wtps-checkout-pricing,
.wtps-checkout-keep-buying,
.wtps-checkout-upsell {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-sm);
}

.wtps-checkout-pricing__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.wtps-checkout-pricing__value { font-weight: 500; }

.wtps-checkout-pricing__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--checkout-gap-md) 0px;
}

.wtps-checkout-pricing__total-label {
  font-size: 16px;
  font-weight: 600;
}

.wtps-checkout-pricing__total-value {
  font-size: 14px;
  font-weight: 600;
}

.wtps-checkout-pricing__coupon-tag {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  border-radius: 4px;
  padding: 12px 16px;
  background-color: color-mix(in srgb, var(--checkout-sidebar-color-texto) 10%, transparent);
  margin-bottom: 16px;
}

.wtps-checkout-pricing__coupon-tag-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--checkout-sidebar-color-texto);
  flex-shrink: 0;
  transition: opacity 0.15s;
  svg {
    fill: currentColor;
  }
}

.wtps-checkout-pricing__coupon-tag-remove:hover {
  opacity: 0.85;
}

.wtps-checkout-pricing__coupon-tag-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wtps-checkout-pricing__coupon-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.wtps-checkout-pricing__coupon-tag-code {
  font-weight: 500;
  margin-right: auto;
}

.wtps-checkout-pricing__coupon-tag-value {
  font-weight: 600;
}

.wtps-checkout-pricing__coupon-tag-desc,
.wtps-checkout-pricing__coupon-tag-pct {
  font-size: 12px;
  opacity: var(--checkout-muted);
}

hr.wtps-checkout-separator {
  border: 1px solid var(--checkout-sidebar-color-texto);
  opacity: 0.2;
}

/* ── BUTTON ── */
.wtps-checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--checkout-gap-sm);
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  background: var(--checkout-boton-color-fondo);
  color: var(--checkout-boton-color-texto);
  border-radius: var(--checkout-boton-redondear);
  padding: 20px 24px;
  width: 100%;
  transition: opacity 0.15s;
}

.wtps-checkout-btn:hover { opacity: 0.85; }

.wtps-checkout-btn--ghost {
  background: transparent;
  color: var(--checkout-boton-color-fondo);
  border: 1px solid var(--checkout-boton-color-fondo);
  border-radius: var(--checkout-boton-redondear);
  padding: 14px 20px;
  font-size: 16px;
  height: 52px;
}

.wtps-checkout-btn--ghost:hover {
  background: color-mix(in srgb, var(--checkout-color-texto) 5%, transparent);
}

.wtps-checkout-btn__icon {
  display: flex;
  align-items: center;
}

.wtps-checkout__payment-helpers {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin: 10px 0;
  opacity: 0.8;
}

/* ── LEGAL CHECKBOX ── */
.wtps-checkout-legal {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--checkout-color-texto);
  cursor: pointer;
}

.wtps-checkout-legal__checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--checkout-color-texto);
}

.wtps-checkout-legal__label {
  line-height: 1.5;
}

.wtps-checkout-legal__label a {
  color: inherit;
  text-decoration: underline;
}

.wtps-checkout a:hover {
  opacity: 0.8;
}

.wtps-checkout-legal.is-error .wtps-checkout-legal__label {
  color: var(--checkout-error);
}

/* ── STEP SUMMARY ── */
.wtps-checkout-step-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.wtps-checkout-step-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: var(--checkout-muted);
}

.wtps-checkout-step-summary__row--total {
  font-weight: 600;
  opacity: 1;
  padding-top: 12px;
  border-top: 1px solid var(--checkout-input-borde);
  margin-top: 8px;
}

.wtps-checkout-step-summary__shipping {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--checkout-input-borde);
  margin-top: 8px;
  opacity: var(--checkout-muted);
  font-size: smaller;
}

/* ── TRUST BADGE ── */
.wtps-checkout-trust {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  font-size: smaller;
}

.wtps-checkout-trust__icon {
  display: flex;
  flex-shrink: 0;
}

/* ── HELP CTA ── */
.wtps-checkout-help {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
}

.wtps-checkout-help__title {
  font-size: smaller;
  font-weight: 500;
  display: inline;
}

.wtps-checkout-help__text {
  font-size: smaller;
  opacity: 0.9;
  display: inline;
}

/* ── KEEP BUYING ── */
.wtps-checkout-keep-buying {
  gap: var(--checkout-gap-md);
}

.wtps-checkout-keep-buying__info {
  font-size: smaller;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.wtps-checkout-keep-buying__title {
  font-size: inherit;
  font-weight: 600;
}

.wtps-checkout-keep-buying__message {
  font-size: inherit;
  opacity: 0.75;
}

.wtps-checkout-keep-buying__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 16px 24px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--checkout-boton-redondear);
  cursor: pointer;
  transition: opacity 0.15s;
}

.wtps-checkout-keep-buying__btn:hover { opacity: 0.7; }

/* ── UPSELL ── */
.wtps-checkout-upsell {
  min-height: 64px;
  width: 100%;
}

.wtps-checkout-upsell__label {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--checkout-sidebar-color-texto) 30%, transparent);
  background: color-mix(in srgb, var(--checkout-sidebar-color-texto) 5%, transparent);
  border-radius: clamp(0px, var(--checkout-sidebar-redondear), 16px);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.wtps-checkout-upsell__label:hover {
  transform: scale(1.015);
  border-color: color-mix(in srgb, var(--checkout-sidebar-color-texto) 55%, transparent);
  animation: none;
}

.wtps-checkout-upsell__label::after {
  content: '+';
  flex-shrink: 0;
  width: 48px;
  background: var(--checkout-sidebar-color-texto);
  color: var(--checkout-sidebar-color-fondo);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  transition: background 0.2s ease;
}

.wtps-checkout-upsell__checkbox {
  display: none;
}

.wtps-checkout-upsell__image {
  width: 88px;
  aspect-ratio: 1 / 1;
  margin: 6px;
  flex-shrink: 0;
  border-radius: clamp(0px, var(--checkout-sidebar-redondear), 10px);
  overflow: hidden;
}

.wtps-checkout-upsell__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wtps-checkout-upsell__content {
  padding: 10px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  justify-content: center;
}

.wtps-checkout-upsell__l1 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wtps-checkout-upsell__l2 {
  font-size: 13px;
  font-weight: 500;
  opacity: var(--checkout-muted);
}

.wtps-checkout-upsell__l3 {
  font-size: 11px;
  opacity: 0.45;
}

/* ── SECTION HEADING ── */
.wtps-checkout-section-heading {
  display: flex;
  align-items: center;
  gap: var(--checkout-gap-sm);
}

.wtps-checkout-section-heading__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wtps-checkout-section-heading__text {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--checkout-color-texto);
}

.wtps-checkout-section-heading__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--checkout-color-texto);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── FORM GRID ── */
.wtps-checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--checkout-gap-md);
}

.wtps-checkout-form-row {
  grid-column: 1 / span 2;
  width: 100%;
  display: flex;
  gap: var(--checkout-gap-md);
}

/* ── HR DIVIDER ── */
.wtps-checkout-divider {
  height: 1px;
  background: var(--checkout-input-borde);
  border: none;
}

.wtps-checkout .wtps-checkout__body {
  color: var(--checkout-color-texto);
}

/* ── SPINNER ── */
.wtps-checkout-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  width: 100%;
  grid-column: 1 / -1;
}

.wtps-checkout-spinner__ring {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  opacity: 0.35;
  animation: wtps-checkout-spin 0.7s linear infinite;
}

@keyframes wtps-checkout-spin {
  to { transform: rotate(360deg); }
}

.wtps-checkout--2,
.wtps-checkout--3,
.wtps-checkout--4 {
  .wtps-checkout-product__badge,
  .wtps-checkout-upsell__label::after {
    color: var(--checkout-color-fondo);
  }
}

.wtps-checkout-products-empty {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  gap: var(--checkout-gap-sm);
  font-size: small;
  color: currentColor;
  opacity: 0.6;
  background-color: color-mix(in srgb, currentColor 10%, transparent 100%);
  padding: 20px;
  border-radius: var(--checkout-sidebar-redondear);
  svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
}

.wtps-checkout--1,
.wtps-checkout--5 {
  .wtps-checkout-upsell__label {
    border: 2px solid color-mix(in srgb, var(--checkout-color-texto) 30%, transparent);
    background: color-mix(in srgb, var(--checkout-color-texto) 5%, transparent);
  }
  .wtps-checkout-upsell__label::after {
    background: var(--checkout-color-texto);
    color: var(--checkout-color-fondo);
  }
}

/* =============================================================
   ░░  CHECKOUT 1 — Dos columnas
   ============================================================= */
.wtps-checkout--1 {
  background: var(--checkout-color-fondo);
  min-height: 100vh;
}

.wtps-checkout--1 .wtps-checkout__body {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.wtps-checkout--1 .wtps-checkout__main {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  background: var(--checkout-color-fondo);
}

.wtps-checkout--1 .wtps-checkout__summary {
  max-width: 100%;
  width: 600px;
  flex-shrink: 0;
  background: var(--checkout-sidebar-color-fondo);
  color: var(--checkout-sidebar-color-texto);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.wtps-checkout--1 .wtps-checkout__section {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-lg);
}

.wtps-checkout--1 .wtps-checkout__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wtps-checkout--1 .wtps-checkout__products {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.wtps-checkout--1 .wtps-checkout__products-scroll {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-lg);
  padding: 24px;
}

.wtps-checkout--1 .wtps-checkout__info-details {
  padding: 16px;
}

/* =============================================================
   ░░  CHECKOUT 2 — Una columna
   ============================================================= */
.wtps-checkout--2 {
  background: var(--checkout-sidebar-color-fondo);
  min-height: 100vh;
  padding: 40px 16px;
}

.wtps-checkout--2 .wtps-checkout__body {
  max-width: 100%;
  width: 640px;
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-lg);
}

.wtps-checkout--2 .wtps-checkout__section {
  background: var(--checkout-color-fondo);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-lg);
  border-radius: var(--checkout-sidebar-redondear);
}

.wtps-checkout--2 .wtps-checkout__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.wtps-checkout--2 .wtps-checkout__products {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-md);
}

.wtps-checkout--2 .wtps-checkout__section-footer {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-md);
}

.wtps-checkout--2 .wtps-checkout-shipping-option,
.wtps-checkout--2 .wtps-checkout-payment-option {
  display: flex;
  flex-direction: column;
  .wtps-checkout-shipping-option__price {
    text-align: start;
  }
}

.wtps-checkout--2 .wtps-checkout-shipping-option--selected,
.wtps-checkout--2 .wtps-checkout-payment-option--selected {
  background-color: var(--checkout-color-texto);
  color: var(--checkout-color-fondo);
}

.wtps-checkout--2 .wtps-checkout-shipping-option__radio,
.wtps-checkout--5 .wtps-checkout-shipping-option__radio,
.wtps-checkout--2 .wtps-checkout-payment-option__radio,
.wtps-checkout--5 .wtps-checkout-payment-option__radio {
  display: none;
}

/* =============================================================
   ░░  CHECKOUT 3 — Multi-paso
   ============================================================= */
.wtps-checkout--3 {
  background: var(--checkout-sidebar-color-fondo);
  min-height: 100vh;
  padding: 40px 16px;
}

.wtps-checkout--3 .wtps-checkout__products {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
}

.wtps-checkout--3 .wtps-checkout-product__badge {
  color: var(--checkout-color-fondo);
  background-color: var(--checkout-color-texto);
}

.wtps-checkout--3 .wtps-checkout-btn { width: fit-content; }

.wtps-checkout--3 .wtps-checkout__body {
  max-width: 100%;
  width: 900px;
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-lg);
}

.wtps-checkout--3 .wtps-checkout__stepper-wrapper { padding: 0 12px; }

.wtps-checkout--3 .wtps-checkout__content {
  background: var(--checkout-color-fondo);
  padding: 40px 48px;
  border-radius: var(--checkout-sidebar-redondear);
}

.wtps-checkout--3 .wtps-checkout__section {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-lg);
}

.wtps-checkout--3 .wtps-checkout__options {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-sm);
}

.wtps-checkout--3 .wtps-checkout__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.wtps-checkout--3 .wtps-checkout__step-panel { display: none; }

.wtps-checkout--3 .wtps-checkout__step-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* =============================================================
   ░░  CHECKOUT 4 — Express
   ============================================================= */
.wtps-checkout--4 {
  background: var(--checkout-sidebar-color-fondo);
  min-height: 100vh;
  padding: 40px 16px;
}

.wtps-checkout--4 .wtps-checkout__body {
  max-width: 100%;
  width: 640px;
  background: var(--checkout-color-fondo);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-radius: var(--checkout-sidebar-redondear);
}

.wtps-checkout--4 .wtps-checkout__header {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-sm);
}

.wtps-checkout--4 .wtps-checkout__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  color: var(--checkout-color-texto);
}

.wtps-checkout--4 .wtps-checkout__subtitle {
  font-size: 16px;
  color: var(--checkout-color-texto);
}

.wtps-checkout--4 .wtps-checkout__express {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-sm);
}

.wtps-checkout-express-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--checkout-gap-sm);
  padding: 12px 24px;
  border: 1px solid var(--checkout-input-borde);
  background: var(--checkout-color-fondo);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  height: 48px;
  font-family: inherit;
  transition: background 0.15s;
}

.wtps-checkout-express-btn:hover { background: rgba(22, 22, 22, 0.05); }
.wtps-checkout-express-btn--paypal { background: #ffc439; border-color: #ffc439; }
.wtps-checkout-express-btn--paypal:hover { background: #f0b429; border-color: #f0b429; }

.wtps-checkout-or {
  display: flex;
  align-items: center;
  gap: var(--checkout-gap-md);
  font-size: 13px;
  opacity: var(--checkout-muted);
}
.wtps-checkout-or::before,
.wtps-checkout-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(22, 22, 22, 0.2);
}

.wtps-checkout--4 .wtps-checkout__section {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-lg);
}

.wtps-checkout--4 .wtps-checkout__options {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wtps-checkout--4 .wtps-checkout-input__field {
  border: 0;
  border-bottom: 1px solid var(--checkout-input-borde);
  padding: 12px;
}

.wtps-checkout--4 .wtps-checkout-payment-option { border-bottom: none; }
.wtps-checkout--4 .wtps-checkout-payment-option:last-child { border-bottom: 1px solid var(--checkout-input-borde); }
.wtps-checkout--4 .wtps-checkout-shipping-option { border-bottom: none; }
.wtps-checkout--4 .wtps-checkout-shipping-option:last-child { border-bottom: 1px solid var(--checkout-input-borde); }

.wtps-checkout--4 .wtps-checkout__section-footer {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-md);
}

.wtps-checkout--4 .wtps-checkout__section-footer p {
  font-size: 12px;
  opacity: var(--checkout-muted);
  text-align: center;
}

.wtps-checkout--4 .wtps-checkout__products {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-md);
}

/* =============================================================
   ░░  CHECKOUT 5 — Cards lado a lado
   ============================================================= */
.wtps-checkout--5 {
  background: var(--checkout-color-fondo);
  min-height: 100vh;
}

.wtps-checkout--5 .wtps-checkout__body {
  display: flex;
  min-height: 100vh;
}

.wtps-checkout--5 .wtps-checkout__summary {
  max-width: 100%;
  width: 680px;
  flex-shrink: 0;
  color: var(--checkout-sidebar-color-texto);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.wtps-checkout--5 .wtps-checkout__summary-products {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--checkout-sidebar-color-fondo);
  border-radius: var(--checkout-sidebar-redondear);
}

.wtps-checkout--5 .wtps-checkout__summary-products-scroll {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-lg);
  padding: 20px;
}

.wtps-checkout--5 .wtps-checkout__summary-pricing {
  flex-shrink: 0;
  background: var(--checkout-sidebar-color-fondo);
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-lg);
  padding: 20px;
  border-radius: var(--checkout-sidebar-redondear);
}

.wtps-checkout--5 .wtps-checkout__main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--checkout-color-fondo);
}

.wtps-checkout--5 .wtps-checkout__section {
  display: flex;
  flex-direction: column;
  gap: var(--checkout-gap-lg);
}

.wtps-checkout--5 .wtps-checkout__shipping-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--checkout-gap-md);
}

.wtps-checkout--5 .wtps-checkout__options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wtps-checkout--5 .wtps-checkout-shipping-option--selected,
.wtps-checkout--5 .wtps-checkout-payment-option--selected {
  border: 1px solid var(--checkout-input-texto);
}

/* =============================================================
   ░░  RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
  .wtps-checkout-form-grid,
  .wtps-checkout--2 .wtps-checkout__options {
    display: flex;
    flex-direction: column;
  }
  .wtps-checkout--4 .wtps-checkout__title {
    font-size: 24px;
  }
}

@media (max-width: 1024px) {
  .wtps-checkout--1 .wtps-checkout__summary,
  .wtps-checkout--5 .wtps-checkout__summary {
    width: 380px;
  }
}

@media (max-width: 768px) {
  .wtps-checkout--1 .wtps-checkout__body,
  .wtps-checkout--5 .wtps-checkout__body {
    flex-direction: column;
  }

  .wtps-checkout--1 .wtps-checkout__summary,
  .wtps-checkout--5 .wtps-checkout__summary {
    width: 100%;
    position: static;
    max-height: none;
  }

  .wtps-checkout--1 .wtps-checkout__main,
  .wtps-checkout--5 .wtps-checkout__main {
    padding: 24px 20px;
  }

  .wtps-checkout--3 .wtps-checkout__content { padding: 24px 20px; }
  .wtps-checkout--4 .wtps-checkout__body { padding: 32px 24px; }

  .wtps-checkout--5 .wtps-checkout__shipping-cards {
    grid-template-columns: 1fr;
  }

  .wtps-checkout-form-row--2 { flex-direction: column; }
}

@media (max-width: 480px) {
  .wtps-checkout--2 .wtps-checkout__section { padding: 20px 16px; }
  .wtps-checkout--3 .wtps-checkout__nav { gap: var(--checkout-gap-sm); }
}
