/* My stay (my-stay.html). Phone first; uses the site's colours and fields from styles.css. */
.ms { margin-top: var(--head-h, 72px); padding-top: clamp(20px, 4vw, 44px); }
.ms .container { max-width: 760px; display: grid; gap: 18px; }
.ms h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin: 0 0 .3rem; }
.ms h2 { font-size: clamp(1.15rem, 3.6vw, 1.4rem); margin: 0; }
.ms h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.ms-header { position: fixed; inset: 0 0 auto 0; z-index: 40; background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); }
.ms-header .header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ms-nav { display: flex; gap: 4px 16px; font-size: .92rem; font-weight: 500; }
.ms-nav a { text-decoration: none; color: var(--muted); padding: .3rem 0; }
.ms-nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }

.ms-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius, 6px); padding: clamp(16px, 4vw, 28px); display: grid; gap: 14px; min-width: 0; box-shadow: 0 6px 20px rgba(15,23,42,.05); }
.ms-signin { max-width: 480px; width: 100%; justify-self: center; }
.ms-form { display: grid; gap: 12px; }
.ms-form[hidden], #ms-app[hidden], .ms-card[hidden] { display: none; }
#ms-app { display: grid; gap: 18px; min-width: 0; }
.ms-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .86rem; margin: 0; }
.ms-or::before, .ms-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ms-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.gsi-slot { min-height: 44px; display: flex; justify-content: center; }
.ms .mascot-tip { margin: 0; }
.ms .mascot-tip .mascot-sm { width: 70px; }
.ms .mascot-say { margin-bottom: 8px; }

.ms-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ms-top .note { margin: 0; overflow-wrap: anywhere; }
.ms-top .kicker { margin: 0; }

.ms-stay { gap: 12px; }
.ms-stay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ms-stay-head h2 span { font-weight: 400; color: var(--muted); }
.ms-stay-head .note { margin: .25rem 0 0; }
.ms-chip { flex: none; font-size: .78rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; background: var(--soft); color: var(--ink); white-space: nowrap; }
.ms-chip.ok { background: #dcfce7; color: #166534; }
.ms-chip.wait { background: #fef3c7; color: #92400e; }
.ms-chip.off { background: #e2e8f0; color: #475569; }
.ms-flag, .ms-done { margin: 0; padding: .7rem .9rem; border-radius: 4px; background: #f8fafc; border-left: 3px solid #f59e0b; font-size: .93rem; }
.ms-done { border-left-color: #16a34a; background: #f0fdf4; }

.ms-price summary { cursor: pointer; font-size: .95rem; }
.ms-price table, .ms-mini { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .9rem; }
.ms-price td, .ms-mini td { padding: .4rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ms-price td:last-child, .ms-mini td:last-child { text-align: right; padding-left: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ms-mini tr.tot td { font-weight: 700; border-bottom: 0; }

.ms-pay { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ms-pay li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 4px; font-size: .93rem; }
.ms-pay small { display: block; color: var(--muted); font-size: .84rem; }
.ms-paid { color: #166534; font-weight: 600; font-size: .85rem; text-align: right; }
.ms-due { color: #92400e; font-weight: 600; font-size: .85rem; text-align: right; }
.ms-how { grid-column: 1 / -1; display: grid; gap: 6px; justify-items: start; }
.btn.ms-sm { min-height: 40px; padding: .55rem 1rem; font-size: .9rem; }

.ms-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-actions .btn { flex: 1 1 auto; }
.ms-danger { color: #b91c1c; }
.ms-danger:hover { border-color: #b91c1c; }
.btn.ms-danger-solid { background: #b91c1c; }
.btn.ms-danger-solid:hover { background: #7f1d1d; }
.ms-panel { display: grid; gap: 12px; padding: 14px; border-radius: 4px; background: #f8fafc; border: 1px solid var(--line); }
.ms-panel[hidden] { display: none; }
.ms-panel p { margin: 0; }
.ms-narrow { max-width: 320px; }
.ms-quote:empty { display: none; }
.ms-book iframe { width: 100%; min-height: 640px; border: 0; display: block; }
.ms-book iframe[hidden] { display: none; }
.ms .ask { margin: 0 0 40px; font-size: .92rem; color: var(--muted); }

@media (max-width: 520px) {
  .ms-stay-head { flex-direction: column-reverse; }
  .ms-actions .btn { width: 100%; }
  .ms .row2 { grid-template-columns: 1fr; }
  .ms-top .btn { width: 100%; }
}
