/* Checkout flow paso1..3 */
.sa-funnel-body {
  margin: 0; padding: 0;
  font-family: 'Poppins', 'Nunito', sans-serif;
  background: #f5f5f7;
  color: #1a1a1a;
}
.sa-checkout {
  padding: 32px 16px 64px;
}
.sa-checkout__container {
  max-width: 720px; margin: 0 auto;
}
.sa-steps {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 24px;
}
.sa-step {
  width: 32px; height: 32px; border-radius: 50%;
  background: #e0e0e0; color: #666;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.sa-step.is-active { background: #0018a8; color: #fff; }
.sa-step.is-done   { background: #00a884; color: #fff; }

.sa-checkout__title {
  text-align: center; margin: 0 0 24px;
  font-size: 26px; color: #0018a8;
}
.sa-checkout__center { text-align: center; }

.sa-card {
  background: #fff; border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.sa-field { display: block; margin-bottom: 18px; }
.sa-field__label {
  display: block; font-size: 14px; font-weight: 600;
  color: #333; margin-bottom: 6px;
}
.sa-field__input {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd;
  border-radius: 10px; font-size: 16px; font-family: inherit;
  background: #fafafa;
}
.sa-field__input:focus { outline: none; border-color: #0018a8; background: #fff; }
.sa-field__hint { display: block; font-size: 12px; color: #777; margin-top: 4px; }

.sa-qty { margin: 24px 0; }
.sa-qty__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid #eee;
}
.sa-qty__row:last-child { border-bottom: 1px solid #eee; }
.sa-qty__label { font-size: 15px; font-weight: 600; }
.sa-qty__label small { font-weight: 400; color: #777; font-size: 12px; }
.sa-qty__ctrl { display: flex; align-items: center; gap: 12px; }
.sa-qty__btn {
  width: 32px; height: 32px; border: 1px solid #0018a8; color: #0018a8;
  background: #fff; border-radius: 50%; font-size: 18px; font-weight: 700;
  cursor: pointer;
}
.sa-qty__btn:hover { background: #0018a8; color: #fff; }
.sa-qty__num { width: 28px; text-align: center; font-weight: 700; font-size: 18px; }

.sa-summary { margin: 18px 0; padding-top: 12px; border-top: 2px solid #f0f0f0; }
.sa-summary__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px;
}
.sa-summary__row strong { color: #0018a8; font-size: 22px; }

.sa-actions {
  display: flex; gap: 12px; margin-top: 24px;
  flex-wrap: wrap;
}
.sa-btn {
  flex: 1 1 200px; display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 10px; font-weight: 700;
  font-size: 16px; text-decoration: none; cursor: pointer; border: 0;
  font-family: inherit;
}
.sa-btn--primary { background: #ff6a00; color: #fff; }
.sa-btn--primary:hover { background: #e65d00; }
.sa-btn--ghost   { background: transparent; color: #333; border: 1px solid #ccc; }
.sa-btn--ghost:hover   { background: #f0f0f0; }

.sa-pay { border: 0; padding: 0; margin: 12px 0 18px; }
.sa-pay__opt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid #ddd; border-radius: 10px;
  margin-bottom: 8px; cursor: pointer; background: #fafafa;
}
.sa-pay__opt:has(input:checked) { border-color: #0018a8; background: #f0f4ff; }
.sa-pay__opt input { accent-color: #0018a8; }

.sa-order { margin-top: 18px; }
.sa-order h3 { margin: 0 0 10px; font-size: 16px; color: #333; }
.sa-order__line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.sa-order__line strong { color: #0018a8; }
.sa-order__total {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-top: 2px solid #eee; margin-top: 6px;
  font-size: 18px; font-weight: 700;
}

.sa-spinner {
  width: 48px; height: 48px; margin: 24px auto;
  border: 4px solid #e0e0e0; border-top-color: #0018a8;
  border-radius: 50%; animation: sa-spin .8s linear infinite;
}
@keyframes sa-spin { to { transform: rotate(360deg); } }

.sa-err { color: #c00; font-weight: 600; }

@media (max-width: 600px) {
  .sa-checkout { padding: 16px 12px 32px; }
  .sa-card { padding: 18px; }
  .sa-checkout__title { font-size: 22px; }
}


/* Force border-box on form fields so padding doesnt push past their container */
.sa-field__input, .sa-field textarea, .sa-field select,
.sa-checkout input, .sa-checkout textarea, .sa-checkout select {
  box-sizing: border-box !important;
  max-width: 100% !important;
}


/* Mobile sticky checkout bar — collapse summary by default, expand on tap */
@media (max-width: 768px) {
  body.sa-funnel-body { padding-bottom: 260px; }
  .sa-order,
  .sa-actions {
    position: fixed;
    left: 0; right: 0;
    background: #fff;
    z-index: 50;
    margin: 0;
    padding: 12px 16px;
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  }
  .sa-order {
    bottom: 88px;
    border-top: 1px solid #eee;
    border-radius: 0;
  }
  .sa-actions {
    bottom: 0;
    display: flex; gap: 8px;
    padding-bottom: 16px;
  }
  .sa-order h3 {
    margin: 0;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
  }
  .sa-order h3::after {
    content: "▾";
    font-size: 14px; color: #888;
    transition: transform .2s ease;
  }
  .sa-order.is-open h3::after { transform: rotate(180deg); }
  #bookingSummary { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .sa-order.is-open #bookingSummary { max-height: 400px; margin-top: 8px; }
  /* In collapsed state, surface the Total in the header */
  .sa-order h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 24px;
    position: relative;
  }
  .sa-order__head-label { flex: 0 0 auto; }
  .sa-order__head-total {
    margin-left: auto;
    color: #0018a8;
    font-weight: 800;
    text-align: right;
  }
  .sa-actions .sa-btn { flex: 1; }
}


/* Hide promo timer on funnel pages — it overlaps our sticky checkout bar */
.sa-funnel-body #sa-timer { display: none !important; }


/* Trust block — payment badges + security copy */
.sa-trust { margin: 16px 0 8px; padding: 14px 16px; background: #fafbff; border: 1px solid #e6eaf3; border-radius: 12px; font-family: 'Poppins', system-ui, sans-serif; }
.sa-trust__methods { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; width: 100%; }
.sa-pay-logo {
  display: inline-flex; align-items: center; justify-content: center;
  height: 26px; min-width: 42px; padding: 0 8px;
  border: 1px solid #e3e3e9; border-radius: 6px;
  background: #fff;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800; font-size: 12px; letter-spacing: .04em;
}
.sa-pay-logo--visa { color: #1a1f71; }
.sa-pay-logo--mc { position: relative; padding: 0 12px; gap: -8px; }
.sa-pay-logo--mc .sa-pay-logo__mc-r,
.sa-pay-logo--mc .sa-pay-logo__mc-y {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
}
.sa-pay-logo--mc .sa-pay-logo__mc-r { background: #eb001b; margin-right: -7px; }
.sa-pay-logo--mc .sa-pay-logo__mc-y { background: #f79e1b; opacity: .85; }
.sa-pay-logo--apay { color: #000; }
.sa-pay-logo--gpay { color: #5f6368; font-family: 'Arial', sans-serif; }



.sa-trust__bullets {
  list-style: none; margin: 0; padding: 8px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
  font-size: 13px; color: #2a3147;
  border-top: 1px solid #e6eaf3;
  margin-top: 4px; padding-top: 10px;
}
.sa-trust__bullets li { display: flex; gap: 6px; align-items: flex-start; line-height: 1.4; }
.sa-trust__check { color: #00a86b; font-weight: 900; flex: 0 0 auto; }
@media (max-width: 768px) {
  .sa-trust__bullets { grid-template-columns: 1fr; }
}


/* Desktop summary header flex layout (mobile already has it) */
.sa-order h3 {
  display: flex; align-items: center; gap: 12px;
}
.sa-order__head-label { flex: 0 0 auto; }
.sa-order__head-total { margin-left: auto; color: #0018a8; font-weight: 800; }
@media (min-width: 769px) {
  .sa-order h3::after { display: none; } /* no chevron on desktop */
  .sa-order #bookingSummary { max-height: none !important; }
}







/* === Desktop 2-column checkout (centered) === */
.sa-checkout__container {
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 0 20px;
  box-sizing: border-box;
}
@media (min-width: 980px) {
  .sa-checkout__container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
  }
  /* Step header and title span the full grid */
  .sa-checkout__container > .sa-steps,
  .sa-checkout__container > h1 { grid-column: 1 / -1; }
  /* sidebar styling */
  .sa-sidebar {
    position: sticky; top: 16px;
    display: flex; flex-direction: column; gap: 14px;
    background: #fff; border-radius: 16px; padding: 18px;
    box-shadow: 0 8px 28px rgba(0,0,0,.06);
  }
  .sa-sidebar .sa-order,
  .sa-sidebar .sa-trust,
  .sa-sidebar .sa-actions {
    position: static !important; margin: 0 !important;
    box-shadow: none; padding: 12px 0;
  }
  .sa-sidebar .sa-trust__bullets { grid-template-columns: 1fr; }
  .sa-sidebar .sa-actions { display: flex; gap: 8px; }
  .sa-sidebar .sa-actions .sa-btn { flex: 1; }
  .sa-sidebar .sa-order h3::after { display: none; }
  .sa-sidebar #bookingSummary,
  .sa-sidebar #orderSummary { max-height: none !important; }
}


/* Real payment SVG logos — uniform pill containers */
.sa-trust__methods { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; width: 100%; }
.sa-pay-logo--svg {
  height: 22px;
  width: 64px;
  max-width: 64px;
  padding: 0;
  background: transparent;
  border: 0;
  object-fit: contain;
  object-position: center;
  opacity: .85;
  flex: 0 1 64px;
}


/* Trust secure block v2 — single-line title, lucide-style SVG lock */
.sa-trust__secure {
  display: flex; align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #e6eaf3;
  font-size: 13px; color: #2a3147;
}
.sa-trust__lock-icon {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
}
.sa-trust__secure-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sa-trust__secure-title {
  color: #0018a8;
  font-weight: 700;
  white-space: nowrap;
  font-size: 13.5px;
}
.sa-trust__secure-sub { color: #4a5468; line-height: 1.45; }


/* Mobile sidebar reset — sidebar shouldn't fight the mobile sticky behavior */
@media (max-width: 768px) {
  /* On mobile sidebar is just a wrapper; let .sa-order / .sa-actions keep their fixed positions */
  .sa-sidebar {
    display: contents !important;
  }
  /* Make sure collapse rule wins over any later override inside the sidebar */
  .sa-sidebar #bookingSummary,
  .sa-sidebar #orderSummary {
    max-height: 0 !important;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .sa-order.is-open #bookingSummary,
  .sa-order.is-open #orderSummary {
    max-height: 400px !important;
    margin-top: 8px;
  }
  /* Trust block on mobile sits between widgets — keep it in flow, not sticky */
  .sa-sidebar .sa-trust { position: static !important; margin: 12px 0 !important; }
}


/* Mobile sticky polish v2 — bigger tap, arrow up when collapsed, visible Back, compact buttons */
@media (max-width: 768px) {
  /* Bigger tappable header with a top handle */
  .sa-order h3 {
    padding: 16px 18px 12px;
    font-size: 16px;
    min-height: 48px;
    cursor: pointer;
    user-select: none;
    position: relative;
  }
  .sa-order h3::before {
    content: "";
    position: absolute;
    top: 6px; left: 50%;
    width: 36px; height: 4px;
    background: #d6dae6; border-radius: 2px;
    transform: translateX(-50%);
  }
  /* Arrow: UP when collapsed ("will expand upward"), DOWN when open */
  .sa-order h3::after {
    content: "▲";
    font-size: 14px;
    color: #0018a8;
    transform: none !important;
    transition: transform .2s ease;
    flex: 0 0 auto;
    margin-left: 8px;
  }
  .sa-order.is-open h3::after { transform: rotate(180deg) !important; }
  /* Compact buttons, visible Back */
  .sa-actions {
    bottom: 0 !important;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 10px;
    box-shadow: 0 -8px 24px rgba(0,0,0,.06);
  }
  .sa-actions .sa-btn {
    flex: 1;
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-weight: 700;
    border-radius: 12px;
    min-height: 44px;
  }
  .sa-btn--ghost {
    background: #fff !important;
    color: #0018a8 !important;
    border: 1.5px solid #0018a8 !important;
  }
  .sa-btn--primary {
    background: #ff6a00 !important;
    color: #fff !important;
  }
}


/* Desktop sidebar buttons polish — stack vertical, primary on top, same outline/fill style */
@media (min-width: 980px) {
  .sa-sidebar .sa-actions {
    display: flex !important;
    flex-direction: column-reverse;
    gap: 10px;
  }
  .sa-sidebar .sa-actions .sa-btn {
    flex: none;
    width: 100%;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    font-weight: 700;
    border-radius: 10px;
    min-height: 0;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
  }
  .sa-sidebar .sa-actions .sa-btn--ghost {
    background: #fff !important;
    color: #0018a8 !important;
    border: 1.5px solid #0018a8 !important;
  }
  .sa-sidebar .sa-actions .sa-btn--primary {
    background: #ff6a00 !important;
    color: #fff !important;
    border: 0;
  }
  .sa-sidebar .sa-actions .sa-btn--primary:hover { background: #e65d00 !important; }
}


/* Sidebar summary on paso1 — match Order summary look from paso2 */
@media (min-width: 980px) {
  .sa-sidebar .sa-summary {
    margin: 0 !important; padding: 0;
    border: 0;
  }
  .sa-sidebar .sa-summary__row {
    display: flex; justify-content: space-between;
    font-weight: 700; font-size: 16px;
    padding: 10px 0;
    border-top: 1px solid #eee;
  }
  .sa-sidebar .sa-summary__row:first-child { border-top: 0; }
  .sa-sidebar .sa-promo-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
}


/* Hotel detail (paso2) — full width, not 2-col */
@media (min-width: 980px) {
  .sa-checkout__container.sa-checkout__container--wide {
    display: block !important;
    max-width: 920px;
  }
  .sa-checkout__container--wide .sa-hotel-detail,
  .sa-checkout__container--wide .sa-room-list,
  .sa-checkout__container--wide .sa-actions {
    grid-column: auto;
  }
}
