/* ==========================================================
   PAYMENT-01 — Payment Experience & Trust Refinement RC3
   Presentation-only layer. Business/payment contracts unchanged.
   ========================================================== */

.booking-payment__card {
  overflow: visible;
  padding: clamp(22px, 2.8vw, 32px);
  border: 1px solid #e7ebef;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(20, 35, 50, .07);
}

.booking-payment__header {
  margin-bottom: 22px;
}

.booking-payment__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 7px;
  color: var(--color-primary, #334cdf);
  font-size: .70rem;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.booking-payment__title {
  margin: 0 0 8px;
  color: #172033;
  font-size: clamp(1.3rem, 1.7vw, 1.65rem);
  line-height: 1.18;
  letter-spacing: -.022em;
}

.booking-payment__description {
  max-width: 650px;
  margin: 0;
  color: #596579;
  font-size: .90rem;
  line-height: 1.5;
}

.booking-payment__trust-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 700px;
  margin: 13px 0 0;
  color: #536174;
  font-size: .77rem;
  line-height: 1.45;
}

.booking-payment__trust-note > span:first-child {
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary, #334cdf) 10%, white);
  color: var(--color-primary, #334cdf);
  font-size: .70rem;
  font-weight: 900;
}

.booking-payment__legend {
  margin: 0 0 10px !important;
  color: #344054 !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
}

.booking-payment__methods {
  display: grid;
  gap: 12px;
}

.booking-payment__method {
  position: relative;
  display: grid;
  grid-template-columns: 22px 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  box-sizing: border-box;
  padding: 15px 16px;
  border: 1px solid #dbe2e8;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.booking-payment__method:hover:not([aria-disabled="true"]) {
  border-color: color-mix(in srgb, var(--color-primary, #334cdf) 34%, #dbe2e8);
  box-shadow: 0 7px 18px rgba(20, 35, 50, .07);
  transform: translateY(-1px);
}

.booking-payment__method:focus-within {
  border-color: var(--color-primary, #334cdf);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary, #334cdf) 14%, transparent);
}

.booking-payment__method:has(input:checked),
.booking-payment__method[data-selected] {
  border-color: var(--color-primary, #334cdf);
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary, #334cdf) 7%, white), #fff 74%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary, #334cdf) 10%, transparent), 0 8px 20px rgba(20, 35, 50, .06);
}

.booking-payment__method[aria-disabled="true"] {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.booking-payment__method-input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--color-primary, #334cdf);
}

.booking-payment__method-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e2e7ec;
  border-radius: 12px;
  background: #f8fafb;
  color: #5f6b7a;
}

.booking-payment__method:has(input:checked) .booking-payment__method-icon,
.booking-payment__method[data-selected] .booking-payment__method-icon {
  border-color: color-mix(in srgb, var(--color-primary, #334cdf) 18%, #e2e7ec);
  background: color-mix(in srgb, var(--color-primary, #334cdf) 8%, white);
  color: var(--color-primary, #334cdf);
}

.booking-payment__method-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-payment__method-content {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.booking-payment__method-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.booking-payment__method-title {
  color: #172033;
  font-size: .94rem;
  line-height: 1.25;
  font-weight: 820;
}

.booking-payment__method-description {
  color: #667085;
  font-size: .79rem;
  line-height: 1.45;
}

.booking-payment__wompi-brand {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid #dce4e7;
  border-radius: 8px;
  background: #fff;
}

.booking-payment__wompi-brand img {
  display: block;
  width: auto;
  height: 20px;
  max-width: 88px;
  object-fit: contain;
}

.booking-payment__provider-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #566576;
  font-size: .71rem;
  line-height: 1.4;
}

.booking-payment__provider-note > span:first-child {
  flex: 0 0 auto;
  font-size: .72rem;
}

.booking-payment__method-selected {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  opacity: 0;
  transform: scale(.72);
  font-size: .72rem;
  font-weight: 900;
  transition: background .16s ease, color .16s ease, opacity .16s ease, transform .16s ease;
}

.booking-payment__method:has(input:checked) .booking-payment__method-selected,
.booking-payment__method[data-selected] .booking-payment__method-selected {
  background: var(--color-primary, #334cdf);
  color: var(--color-on-primary, #fff);
  opacity: 1;
  transform: scale(1);
}

/* PAYMENT-01 RC3: the progress indicator must unmistakably identify Pago
   as the current step when the payment workspace is active. */
.booking-shell:has(#booking-payment.booking-flow--active)
.booking-stepper__item.is-active {
  opacity: 1;
}

.booking-shell:has(#booking-payment.booking-flow--active)
.booking-stepper__item.is-active .booking-stepper__circle {
  background: var(--color-primary, #334cdf) !important;
  border-color: var(--color-primary, #334cdf) !important;
  color: var(--color-on-primary, #fff) !important;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--color-primary, #334cdf) 22%, transparent);
}

.booking-shell:has(#booking-payment.booking-flow--active)
.booking-stepper__item.is-active .booking-stepper__label {
  color: var(--color-primary, #334cdf) !important;
  font-weight: 800;
}

.booking-payment__status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #e1e7ec;
  border-radius: 11px;
  background: #f8fafb;
  color: #4f5d70;
  font-size: .78rem;
  line-height: 1.45;
}

.booking-payment__status-icon {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e9eef3;
  color: #59677a;
  font-size: .68rem;
  font-weight: 900;
  font-style: normal;
}

.booking-payment__status-copy {
  min-width: 0;
}

.booking-payment__conversion-notice,
.booking-payment__conversion-detail,
.booking-payment__success {
  border-radius: 11px;
}

.booking-payment__actions {
  display: grid;
  grid-template-columns: minmax(140px, .72fr) minmax(190px, 1.28fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 22px;
}

.booking-payment__button {
  min-width: 0;
  min-height: 50px;
  border-radius: 11px;
  padding: 0 20px;
  font-size: .88rem;
  font-weight: 800;
}

.booking-payment__button:not(.booking-payment__button--secondary):not(:disabled) {
  box-shadow: 0 6px 15px color-mix(in srgb, var(--color-primary, #334cdf) 16%, transparent);
}

.booking-payment__button:disabled {
  opacity: .58;
}

@media (max-width: 700px) {
  .booking-payment__card {
    padding: 18px 14px;
    border-radius: 15px;
  }

  .booking-payment__header {
    margin-bottom: 18px;
  }

  .booking-payment__title {
    font-size: 1.28rem;
  }

  .booking-payment__description {
    font-size: .83rem;
  }

  .booking-payment__trust-note {
    display: flex;
    margin-top: 11px;
    font-size: .73rem;
  }

  .booking-payment__method {
    grid-template-columns: 20px 38px minmax(0, 1fr) 22px;
    gap: 10px;
    min-height: 84px;
    padding: 13px 12px;
    border-radius: 13px;
  }

  .booking-payment__method-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .booking-payment__method-icon svg {
    width: 20px;
    height: 20px;
  }

  .booking-payment__method-title {
    font-size: .91rem;
  }

  .booking-payment__method-description {
    font-size: .75rem;
  }

  .booking-payment__wompi-brand img {
    height: 18px;
    max-width: 80px;
  }

  .booking-payment__provider-note {
    font-size: .69rem;
  }

  .booking-payment__status {
    margin-top: 14px;
    font-size: .74rem;
  }

  .booking-payment__actions {
    grid-template-columns: 1fr 1.22fr;
    gap: 9px;
  }
}

@media (max-width: 380px) {
  .booking-payment__method {
    grid-template-columns: 20px 36px minmax(0, 1fr);
  }

  .booking-payment__method-selected {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .booking-payment__method-heading {
    padding-right: 24px;
  }

  .booking-payment__actions {
    grid-template-columns: 1fr;
  }

  .booking-payment__button:not(.booking-payment__button--secondary) {
    order: 1;
  }

  .booking-payment__button--secondary {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-payment__method,
  .booking-payment__method-selected {
    transition: none;
  }

  .booking-payment__method:hover:not([aria-disabled="true"]) {
    transform: none;
  }
}
