/* Hotel checkout sheet (static/checkout.js), in the 52 Weekends app's look: its colour tokens
   (storiilabs/rovii apps/mobile/src/design-system/tokens/colors.css) and its Gabarito font. Light only, as
   the app is. */
.co {
  --co-bg: #f5feff; --co-bg-alt: #e3faf8; --co-blue: #269cbf; --co-purple: #501cfb; --co-purple-shadow: #36179a;
  --co-teal: #2aa9ca; --co-ink: #203746; --co-muted: #54747d; --co-line: #c7dde2; --co-card: #ffffff;
  --co-green: #2e9e5b; --co-green-bg: #e7f6ec; --co-red: #d60000; --co-red-bg: #fdecec; --co-gold: #c8993b;
  position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center; align-items: stretch;
  background: rgba(13, 31, 51, .45); font-family: "Gabarito", "Inter", system-ui, sans-serif; color: var(--co-ink);
  color-scheme: light;
}
html.co-open, html.co-open body { overflow: hidden; }
.co-sheet { width: 100%; max-width: 560px; display: flex; flex-direction: column; background: var(--co-bg); min-height: 0; }
@media (min-width: 640px) { .co { align-items: center; padding: 24px; } .co-sheet { max-height: 92vh; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); } }

.co-head { position: relative; background: var(--co-blue); color: #fff; padding: calc(env(safe-area-inset-top) + 16px) 20px 16px; }
.co-head h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.co-head p { margin: 4px 0 0; font-size: 13px; color: rgba(255,255,255,.8); }
.co-ht { padding-left: 44px; }
.co-back { position: absolute; left: 14px; top: calc(env(safe-area-inset-top) + 14px); width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 18px; cursor: pointer; }
.co-steps { display: flex; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.co-steps li { flex: 1; font-size: 12px; text-align: center; padding-top: 8px; border-top: 3px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7); }
.co-steps li.done { border-color: #c2fbfe; color: #c2fbfe; }
.co-steps li.now { border-color: #fff; color: #fff; font-weight: 600; }
.co-env { position: absolute; right: 14px; top: calc(env(safe-area-inset-top) + 16px); font-size: 11px; background: #fe7d33; color: #fff; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }

.co-body { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.co-card { background: var(--co-card); border: 1px solid var(--co-line); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.co-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.co-card h4 { margin: 0 0 10px; font-size: 15px; }
.co-hint { margin: 4px 0 10px; font-size: 13px; color: var(--co-muted); line-height: 1.4; }
.co-hint.warn { color: #d37a1b; }
.co-err { background: var(--co-red-bg); color: var(--co-red); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; }
.co-err ul { margin: 6px 0 0 18px; padding: 0; }
.co-load { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 0; color: var(--co-muted); font-size: 14px; }
.co-load .dots { display: inline-flex; gap: 5px; }
.co-load .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--co-teal); animation: co-b 1s infinite ease-in-out; }
.co-load .dots i:nth-child(2) { animation-delay: .15s; } .co-load .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes co-b { 0%, 80%, 100% { opacity: .3; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

.co-room img { width: calc(100% + 32px); margin: -16px -16px 12px; height: 150px; object-fit: cover; border-radius: 18px 18px 0 0; display: block; }
.co-rh { font-size: 13px; color: var(--co-muted); margin-bottom: 8px; }
.co-rh h3 { color: var(--co-ink); }
.co-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--co-line); border-radius: 14px; margin-top: 8px; cursor: pointer; }
.co-opt.on { border-color: var(--co-purple); background: #f6f2ff; }
.co-opt input { accent-color: var(--co-purple); width: 18px; height: 18px; flex: none; }
.co-ot { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.co-ot b { font-size: 14px; } .co-ot small { font-size: 12px; color: var(--co-muted); }
.co-op { text-align: right; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; }
.co-op small { font-weight: 400; font-size: 11px; color: var(--co-muted); }

.co-tr { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1.5px solid var(--co-line); border-radius: 14px; margin-top: 8px; cursor: pointer; }
.co-tr.on { border-color: var(--co-purple); background: #f6f2ff; }
.co-tr input { accent-color: var(--co-purple); width: 18px; height: 18px; flex: none; }
.co-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(#b4f8ff, #70f0da); display: grid; place-items: center; font-weight: 700; color: #0d4074; flex: none; }
.co-tn { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.co-tn b { font-size: 14px; } .co-tn i { font-style: normal; color: var(--co-muted); font-weight: 400; }
.co-tn small { font-size: 12px; color: var(--co-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-link { background: none; border: 0; color: var(--co-purple); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px; }

.co-form { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--co-bg-alt); }
.co-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--co-muted); margin-bottom: 10px; }
.co-form input, .co-form select, .co-pan { font: inherit; font-size: 16px; color: var(--co-ink); padding: 10px 12px; border: 1px solid var(--co-line); border-radius: 12px; background: #fff; min-width: 0; }
.co-form .code { width: 64px; }
.co-form .co-check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--co-ink); }
.co-row { display: flex; gap: 10px; align-items: flex-end; } .co-row .grow { flex: 1; }
.co-row > button { flex: 1; }
.co-pan { width: 100%; box-sizing: border-box; letter-spacing: .1em; text-transform: uppercase; }

.co-hero { height: 140px; border-radius: 18px; background: #dcebec center/cover no-repeat; margin-bottom: 12px; }
.co-incl { margin: 6px 0 10px 18px; padding: 0; font-size: 13px; color: var(--co-muted); }
.co-dates { display: flex; gap: 8px; margin-top: 8px; }
.co-dates div { flex: 1; background: var(--co-bg-alt); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.co-dates small { font-size: 11px; color: var(--co-muted); } .co-dates b { font-size: 14px; }
.co-g { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid #eef4f5; }
.co-g small { color: var(--co-teal); font-weight: 600; }
.co-pol { margin: 6px 0 0 18px; padding: 0; font-size: 13px; color: var(--co-muted); }
.co-card details summary { cursor: pointer; font-size: 13px; color: var(--co-purple); font-weight: 600; margin-top: 8px; }
.co-price div { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.co-price .tot { border-top: 1px dashed var(--co-line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 16px; }
.co-cash { margin-top: 10px; background: #fff7e6; color: var(--co-gold); border-radius: 12px; padding: 8px 10px; font-size: 13px; }

.co-done { text-align: center; padding: 28px 16px; }
.co-badge { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #fff; background: var(--co-teal); }
.co-done.ok .co-badge { background: var(--co-green); } .co-done.bad .co-badge { background: var(--co-red); }
.co-done h3 { font-size: 18px; } .co-done p { margin: 4px 0; }

.co-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(env(safe-area-inset-bottom) + 12px); background: #fff; border-top: 1px solid var(--co-line); }
.co-bar.col { flex-direction: column; align-items: stretch; gap: 8px; }
.co-bar > div:not(.co-pay), .co-pay > div { display: flex; flex-direction: column; }
.co-bar small { font-size: 12px; color: var(--co-muted); } .co-bar b { font-size: 18px; }
.co-pay { display: flex; align-items: center; gap: 12px; }
.co-btn { margin-left: auto; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--co-purple); color: #fff;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 0 var(--co-purple-shadow); }
.co-btn.wide { width: 100%; margin: 0; }
.co-btn:disabled { background: #c9c1e8; box-shadow: 0 4px 0 #a89fd0; cursor: not-allowed; }
.co-ghost { width: 100%; min-height: 44px; border: 1.5px dashed var(--co-purple); border-radius: 999px; background: transparent; color: var(--co-purple);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 10px; }
.co-ghost:disabled { opacity: .45; cursor: not-allowed; }
.co-off { margin: 0; font-size: 12.5px; color: #d37a1b; text-align: center; }
.co button:focus-visible, .co input:focus-visible, .co select:focus-visible { outline: 2px solid var(--co-purple); outline-offset: 2px; }
.co-row > .co-ghost { margin-top: 0; }
/* Flights (phase 2) */
.co-leg { display: flex; flex-direction: column; gap: 2px; padding: 8px 0 4px; }
.co-leg small { font-size: 11px; color: var(--co-teal); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.co-leg b { font-size: 15px; } .co-leg span { font-size: 13px; color: var(--co-muted); }
.co-contact label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--co-muted); margin-bottom: 10px; }
.co-contact input { font: inherit; font-size: 16px; color: var(--co-ink); padding: 10px 12px; border: 1px solid var(--co-line); border-radius: 12px; background: #fff; }
.co-tn small.warn { color: #d37a1b; white-space: normal; }
/* Phase 3: seats, my bookings, wallet and membership */
.co-tabs { display: flex; gap: 6px; margin: 6px 0 10px; overflow-x: auto; }
.co-tab { flex: none; border: 1.5px solid var(--co-line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--co-ink); }
.co-tab small { color: var(--co-muted); margin-left: 4px; }
.co-tab.on { border-color: var(--co-purple); background: #f6f2ff; }
.co-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--co-muted); margin-bottom: 8px; }
.co-legend span { display: inline-flex; align-items: center; gap: 5px; }
.co-legend .co-seat { width: 16px; height: 16px; cursor: default; }
.co-map { overflow-x: auto; padding: 4px 0; }
.co-srow { display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 5px; }
.co-srow.head i { font-style: normal; font-size: 11px; color: var(--co-muted); width: 30px; text-align: center; display: inline-block; }
.co-rn { width: 22px; font-size: 11px; color: var(--co-muted); text-align: right; flex: none; }
.co-srow.head > span:first-child { width: 22px; }
.co-sgrp { display: inline-flex; gap: 5px; }
.co-seat { width: 30px; height: 30px; border-radius: 8px 8px 5px 5px; border: 1.5px solid var(--co-teal); background: #e7f5f6; padding: 0; cursor: pointer;
  font: inherit; font-size: 13px; color: #fff; display: inline-grid; place-items: center; }
.co-seat.paid { border-color: var(--co-gold); background: #fff7e6; }
.co-seat.taken { border-color: #d6dde0; background: #eef2f3; cursor: not-allowed; }
.co-seat.on { border-color: var(--co-purple); background: var(--co-purple); }
.co-seat.none { visibility: hidden; }
.co-trip { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px; margin-top: 8px; border: 1.5px solid var(--co-line);
  border-radius: 14px; background: #fff; font: inherit; color: var(--co-ink); cursor: pointer; }
.co-trip:hover { border-color: var(--co-teal); }
.co-btn.danger { background: #d60000; box-shadow: 0 4px 0 #8f0000; }
.co-ghost.danger { border-color: #d60000; color: #d60000; margin-top: 0; }
.co-bar .co-link { margin-left: auto; }
.co-bar .co-link + .co-btn { margin-left: 0; }
/* Refer and earn */
.co-refbig { font-size: 26px; font-weight: 700; color: var(--co-purple); margin-bottom: 4px; }
.co-stats { display: flex; text-align: center; }
.co-stats div { flex: 1; display: flex; flex-direction: column; }
.co-stats b { font-size: 18px; } .co-stats small { font-size: 12px; color: var(--co-muted); }
.co-msg { white-space: pre-wrap; }
.co-hint.ok { color: var(--co-green); text-align: center; }
