/* FlexParcels portal styles (loads after the marketing site's style.css) */
body.app { background: var(--bg-soft); min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; padding: 36px 0 64px; }
.app .site-header { position: sticky; }
.app .site-nav ul { gap: 20px; }
.app .site-nav ul a { font-size: .93rem; }
.test-banner { background: var(--gold); color: var(--navy); text-align: center; font-weight: 700; font-size: .85rem; padding: 6px 12px; }
.app-footer { border-top: 1px solid var(--line); background: #fff; font-size: .85rem; color: var(--muted); padding: 18px 0; }
.app-footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-title h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.page-title p { margin: 4px 0 0; color: var(--muted); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.panel h2 { font-size: 1.25rem; margin-bottom: 14px; }
.panel h3 { font-size: 1.05rem; }
.panel-narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.panel-mid { max-width: 820px; margin-left: auto; margin-right: auto; }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .cols, .cols-2 { grid-template-columns: 1fr; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 22px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.tile-label { font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tile-value { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--navy); line-height: 1.2; margin-top: 4px; }
.tile-sub { font-size: .85rem; color: var(--muted); }

.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-green { background: var(--green-50); color: var(--green-600); }
.badge-gold { background: var(--gold-50); color: #8A6A0A; }
.badge-red { background: #FDECEC; color: #9B1C1C; }
.badge-grey { background: #EEF0F4; color: #4A5568; }
.badge-navy { background: var(--navy-50); color: var(--navy); }

.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--bg-soft); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }

.address-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 24px; position: relative; }
.address-box .label { color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.address-box .addr { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; line-height: 1.5; }
.address-box .btn { margin-top: 14px; }

.steps-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps-mini li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.steps-mini .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: #EEF0F4; color: var(--muted); }
.steps-mini .done .dot { background: var(--green); color: #fff; }
.steps-mini .now .dot { background: var(--gold); color: var(--navy); }

.pickup-code { text-align: center; }
.pickup-code #qr { display: inline-block; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.pickup-code .pin { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; letter-spacing: .25em; color: var(--navy); margin: 10px 0 0; }

.hours-grid { display: grid; gap: 8px; }
.hours-row { display: grid; grid-template-columns: 110px 1fr 1fr auto; gap: 8px; align-items: center; }
.hours-row input[type=time] { padding: 8px 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.field .check { font-weight: 500; }
@media (max-width: 560px) { .hours-row { grid-template-columns: 1fr 1fr; } .hours-row span { grid-column: 1 / -1; font-weight: 600; } }

.search-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.search-row input, .search-row select { flex: 1; min-width: 160px; font: inherit; border: 1px solid #CBD3DF; border-radius: var(--radius-sm); padding: 10px 12px; }
.loc-option { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.loc-option:last-child { border-bottom: 0; }
.loc-option p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.big-input { font-size: 1.6rem !important; letter-spacing: .12em; text-align: center; font-family: var(--font-head); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mt { margin-top: 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-sm { padding: .5em 1em; font-size: .88rem; }
.btn-danger { background: #B42318; color: #fff; }
.btn-danger:hover { background: #912018; color: #fff; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.doc-grid a { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--navy); background: #fff; }
.doc-grid img { width: 100%; height: 160px; object-fit: cover; background: var(--bg-soft); }
.doc-grid .pdf { height: 160px; display: grid; place-items: center; background: var(--navy-50); font-weight: 700; }
.doc-grid span { display: block; padding: 8px 12px; font-size: .88rem; font-weight: 600; }
#reader { max-width: 420px; margin: 0 auto 16px; }
.result-card { border: 2px solid var(--green); border-radius: var(--radius); padding: 20px; background: #fff; }
.result-card.warn { border-color: var(--gold); }
.result-card.stop { border-color: #B42318; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--navy); }
.plan-choice .choice { min-width: 170px; }
.plan-choice .choice span { text-align: left; padding: 14px 16px; height: 100%; }
.plan-choice .choice strong { display: block; font-size: 1rem; }
.plan-choice .choice em { display: block; font-style: normal; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin: 2px 0 4px; }
.plan-choice .choice small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; line-height: 1.35; }

/* Current store bar for logins that manage several stores */
.store-switch{background:#0B2545;color:#fff;padding:6px 0;font-size:.88rem}
.store-switch .container{display:flex;justify-content:flex-end;align-items:center;gap:14px;flex-wrap:wrap}
.store-switch .muted-light{color:rgba(255,255,255,.7)}
.store-switch a{color:#C9A227;font-weight:600;text-decoration:none}
.store-switch a:hover{text-decoration:underline}
.store-pick-list{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.store-pick-list form{margin:0}
.store-pick-list .panel{margin:0;height:100%;display:flex;flex-direction:column;justify-content:space-between;gap:10px}
.store-pick-list .current{border:2px solid #13795B}

/* Package photos and full-size viewer */
.gallery{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.gallery a{display:block;border-radius:10px;overflow:hidden;border:1px solid #E3E7EE;background:#fff}
.gallery img{display:block;width:110px;height:110px;object-fit:cover}
.gallery-mini{margin:0;gap:4px}
.gallery-mini img{width:52px;height:52px}
.gallery-mini a:nth-child(n+3){display:none}
.gallery-large img{width:auto;height:auto;max-width:100%;max-height:340px}
.gallery-large a:only-child img{max-height:420px}
.lightbox{position:fixed;inset:0;background:rgba(6,14,28,.92);z-index:1000;display:flex;align-items:center;justify-content:center;padding:40px 12px}
.lightbox[hidden]{display:none}
.lightbox img{max-width:100%;max-height:100%;object-fit:contain;border-radius:6px}
.lightbox button{position:absolute;background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:999px;width:44px;height:44px;font-size:28px;line-height:1;cursor:pointer}
.lightbox .lb-close{top:12px;right:12px}
.lightbox .lb-prev{left:12px;top:50%;transform:translateY(-50%)}
.lightbox .lb-next{right:12px;top:50%;transform:translateY(-50%)}
.lightbox .lb-open{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);color:#fff;font-size:.9rem}
