/* Tour checkout / trip builder (/tour-checkout) and its confirmation page. Every rule is scoped to .tc so the site theme is not affected. */
html { scroll-behavior: smooth; }

.page-header.page-header-plain.context-dark,
.page-header.page-header-plain.context-dark .rd-navbar-top-panel,
.page-header.page-header-plain.context-dark .rd-navbar-top-panel a,
.page-header.page-header-plain.context-dark .rd-navbar-top-panel .icon,
.page-header.page-header-plain.context-dark .text-middle { color: #000; }
.page-header.page-header-plain { background: #fff; }

.tc { --tc-navy: #102439; --tc-gold: #e8aa29; --tc-cream: #faf8f3; --tc-ink: #14283b; --tc-line: #e1e6f1; --tc-danger: #b42318; font-family: 'DM Sans', sans-serif; color: var(--tc-ink); text-align: left; background: var(--tc-cream); padding-bottom: 56px; }
.tc *, .tc *::before, .tc *::after { box-sizing: border-box; }
.tc a { text-decoration: none; }
.tc a:focus-visible, .tc button:focus-visible, .tc input:focus-visible, .tc select:focus-visible, .tc textarea:focus-visible { outline: 3px solid var(--tc-gold); outline-offset: 2px; }
.tc [hidden] { display: none !important; }
.tc h1, .tc h2, .tc h3, .tc p, .tc ul, .tc ol { text-transform: none; }
.tc .tc-shell { width: min(100% - 40px, 1230px); margin-inline: auto; }

.tc .tc-hero { background: var(--tc-navy); color: #fff; padding: 44px 0 40px; margin-bottom: 28px; }
.tc .tc-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tc-gold); }
.tc .tc-hero h1 { margin: 0 0 10px; font-family: 'Fraunces', serif; font-size: clamp(32px, 4vw, 52px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; color: #fff; }
.tc .tc-hero p { margin: 0; max-width: 760px; font-size: 16px; line-height: 1.6; color: #dbe3ee; }
.tc .tc-hero a { color: var(--tc-gold); font-weight: 700; }

.tc .tc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.tc .tc-card { background: #fff; border: 1px solid var(--tc-line); border-radius: 14px; padding: 22px; margin-bottom: 18px; box-shadow: 0 6px 24px #10243910; }
.tc .tc-main, .tc .tc-card { min-width: 0; }
.tc .tc-card h2 { margin: 0 0 14px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--tc-navy); }

.tc .tc-leg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tc .tc-leg-head h2 { margin: 0; }
.tc .tc-leg-tag { display: inline-block; margin-right: 8px; padding: 3px 10px; border-radius: 999px; background: #fdf3da; color: #8a5a00; font-size: 12px; font-weight: 800; letter-spacing: .03em; vertical-align: middle; }
.tc .tc-remove { border: 0; background: transparent; color: var(--tc-danger); font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.tc .tc-remove:hover { background: #fdecea; }

.tc .tc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; }
.tc .tc-wide { grid-column: 1 / -1; }
.tc .tc-field { display: block; font-size: 13px; font-weight: 700; color: var(--tc-navy); margin: 0; }
.tc .tc-field input[type="text"], .tc .tc-field input[type="tel"], .tc .tc-field input[type="email"], .tc .tc-field input[type="number"], .tc .tc-field select, .tc .tc-field textarea {
    display: block; width: 100%; margin-top: 5px; padding: 0 12px; height: 44px; border: 1px solid #cfd6e6; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; font-weight: 400; color: var(--tc-ink);
}
.tc .tc-field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.tc .tc-field input:focus, .tc .tc-field select:focus, .tc .tc-field textarea:focus { border-color: var(--tc-navy); }
.tc .tc-field .ld-datetime { margin-top: 5px; }
.tc .tc-field .ld-datetime .ld-dt-field { margin-top: 0; height: 44px; border-radius: 10px; border: 1px solid #cfd6e6; font-size: 15px; }
.tc .tc-optional { font-weight: 400; color: #667085; }
.tc .tc-stripe-el { margin-top: 5px; padding: 13px 12px; border: 1px solid #cfd6e6; border-radius: 10px; background: #fff; }

.tc .tc-vehicles { grid-column: 1 / -1; }
.tc .tc-vehicles-title { margin: 4px 0 8px; font-size: 13px; font-weight: 700; color: var(--tc-navy); }
.tc .tc-vehicle-list { display: grid; gap: 10px; }
.tc .tc-vehicle { display: flex; align-items: center; gap: 14px; margin: 0; padding: 10px 14px; border: 2px solid var(--tc-line); border-radius: 12px; cursor: pointer; font-weight: 400; background: #fff; transition: border-color .15s, background-color .15s; }
.tc .tc-vehicle:hover { border-color: #b8c2dc; }
.tc .tc-vehicle.is-selected { border-color: var(--tc-navy); background: #f5f7fb; }
.tc .tc-vehicle.is-disabled { opacity: .5; cursor: not-allowed; }
.tc .tc-vehicle input { flex: 0 0 auto; margin: 0; }
.tc .tc-vehicle img { flex: 0 0 auto; width: 84px; height: 54px; object-fit: contain; }
.tc .tc-vehicle-details { flex: 1 1 auto; display: flex; flex-direction: column; font-size: 13px; color: #475467; min-width: 0; }
.tc .tc-vehicle-details strong { font-size: 15px; color: var(--tc-navy); }
.tc .tc-vehicle-price { flex: 0 0 auto; font-size: 20px; font-weight: 800; color: var(--tc-navy); }
.tc .tc-vehicles-msg { margin: 0; padding: 12px 14px; border-radius: 10px; background: #f2f4f7; font-size: 13px; color: #475467; }
.tc .tc-vehicles-msg.is-error { background: #fdecea; color: var(--tc-danger); }

.tc .tc-add { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.tc .tc-note { margin: 0 0 18px; font-size: 12.5px; line-height: 1.5; color: #667085; }
.tc .tc-card .tc-note { margin: 12px 0 0; }

.tc .tc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 22px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; border: 2px solid transparent; transition: background .2s, transform .2s; }
.tc .tc-btn-primary { background: var(--tc-gold); color: var(--tc-navy); box-shadow: 0 5px 13px #14283b27; }
.tc .tc-btn-primary:hover:not(:disabled) { background: #f4bd49; transform: translateY(-1px); }
.tc .tc-btn-primary:disabled { opacity: .6; cursor: wait; }
.tc .tc-btn-outline { background: #fff; border-color: var(--tc-navy); color: var(--tc-navy); }
.tc .tc-btn-outline:hover { background: var(--tc-navy); color: #fff; }
.tc #tcSubmit { width: 100%; margin-top: 14px; min-height: 50px; font-size: 15px; }

.tc .tc-pay-options { display: grid; gap: 10px; margin-bottom: 14px; }
.tc .tc-radio, .tc .tc-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; font-weight: 400; cursor: pointer; }
.tc .tc-radio input, .tc .tc-check input { margin-top: 3px; }
.tc .tc-check { margin-top: 18px; font-size: 13px; line-height: 1.5; }
.tc .tc-check a { color: var(--tc-navy); text-decoration: underline; }
.tc .tc-card-panel { margin: 4px 0 6px; padding: 14px; border-radius: 12px; background: #f7f8fd; }

.tc .tc-alert { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.tc .tc-alert-error { background: #fdecea; color: var(--tc-danger); }
.tc .tc-alert-info { background: #eef4ff; color: #14283b; }
.tc .tc-main > .tc-alert { margin: 0 0 16px; }

.tc .tc-summary { position: sticky; top: 90px; background: #fff; border: 1px solid var(--tc-line); border-radius: 14px; padding: 22px; box-shadow: 0 6px 24px #10243910; }
.tc .tc-summary h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: var(--tc-navy); }
.tc .tc-summary-list { list-style: none; margin: 0; padding: 0; }
.tc .tc-summary-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--tc-line); font-size: 14px; }
.tc .tc-summary-list .tc-s-title { font-weight: 700; color: var(--tc-navy); }
.tc .tc-summary-list .tc-s-sub { display: block; font-size: 12.5px; color: #667085; margin-top: 2px; }
.tc .tc-summary-list .tc-s-price { font-weight: 800; white-space: nowrap; }
.tc .tc-summary-list .tc-s-pending { color: #98a2b3; font-weight: 600; }
.tc .tc-summary-empty { margin: 4px 0 0; font-size: 14px; color: #667085; }
.tc .tc-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--tc-navy); font-size: 14px; font-weight: 700; }
.tc .tc-total strong { font-size: 28px; font-weight: 800; color: var(--tc-navy); }
.tc .tc-summary .tc-note { margin: 14px 0 0; }

.tc .tc-confirm { max-width: 860px; }
.tc .tc-confirm-list { list-style: none; margin: 0; padding: 0; }
.tc .tc-confirm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.tc .tc-confirm-head h2 { margin: 0; }
.tc .tc-ref { padding: 5px 12px; border-radius: 999px; background: #e7f6ec; color: #1a6b3a; font-size: 13px; font-weight: 800; white-space: nowrap; }
.tc .tc-ref-failed { background: #fdecea; color: var(--tc-danger); }
.tc .tc-card-failed { border-color: #f3b8b2; }
.tc .tc-confirm-detail { margin: 0 0 12px; font-size: 14px; color: #475467; }
.tc .tc-confirm-error { margin: 12px 0 0; font-size: 13.5px; color: var(--tc-danger); }
.tc .tc-dl { display: grid; gap: 8px; margin: 0; }
.tc .tc-dl div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; font-size: 14px; }
.tc .tc-dl dt { font-weight: 700; color: #667085; }
.tc .tc-dl dd { margin: 0; }
.tc .tc-confirm-total .tc-total { margin-top: 0; padding-top: 0; border-top: 0; margin-bottom: 14px; }

@media (max-width: 991px) {
    .tc .tc-layout { grid-template-columns: minmax(0, 1fr); }
    .tc .tc-summary { position: static; order: -1; }
}

@media (max-width: 640px) {
    .tc .tc-shell { width: min(100% - 28px, 1230px); }
    .tc .tc-grid { grid-template-columns: minmax(0, 1fr); }
    .tc .tc-card { padding: 16px; }
    .tc .tc-add .tc-btn { flex: 1 1 100%; }
    .tc .tc-vehicle { flex-wrap: wrap; }
    .tc .tc-vehicle img { width: 70px; height: 46px; }
    .tc .tc-dl div { grid-template-columns: 1fr; gap: 2px; }
}
