/* Maya'le - driver view, feedback, delivery photos (tokens from app.css) */

.driver-list { display: grid; gap: 14px; }
.drive-card { border-left: 5px solid var(--line); }
.status-border-out_for_delivery { border-left-color: #8FB3D6; }
.status-border-delivery_failed { border-left-color: var(--danger); }
.status-border-paid, .status-border-preparing { border-left-color: var(--blush); }
.drive-address { font-size: 1.1rem; margin: 6px 0 10px; }
.drive-buttons, .drive-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.drive-notes { padding-left: 18px; margin: 10px 0 14px; }
.deliver-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.photo-pick { display: inline-flex; align-items: center; gap: 6px; padding: .45em .9em; border: 1px dashed var(--sage);
  border-radius: 999px; font-size: .85rem; font-weight: 500; cursor: pointer; margin: 0; }
.photo-pick input { max-width: 150px; font-size: .75rem; }
.pod-photo { width: 120px; border-radius: 8px; margin-top: 6px; }

.stars { border: 0; padding: 0; margin: 0 0 16px; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2.6rem; color: var(--line); cursor: pointer; margin: 0; line-height: 1; transition: color .1s; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--rose); }
.stars input:focus-visible + label { outline: 2px solid var(--blush); border-radius: 4px; }
.stars-cell { color: var(--rose); white-space: nowrap; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.review-card { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.review-card .stars-cell { margin-bottom: 6px; }

.admin-subnav { background: #4A5849; }
.admin-subnav .wrap { display: flex; gap: 4px; overflow-x: auto; min-height: 42px; align-items: center; }
.admin-subnav a { color: var(--petal); text-decoration: none; padding: .35em .8em; border-radius: 8px; font-size: .86rem; white-space: nowrap; }
.admin-subnav a.on, .admin-subnav a:hover { background: rgba(251,248,243,.16); color: var(--cream); }
.email-preview { border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-height: 520px; overflow: auto; }
.email-preview img { max-width: 100%; }

.coupon-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 16px; grid-column: 1; }
.coupon-box input { flex: 1; min-width: 140px; max-width: 240px; text-transform: uppercase; }
.coupon-box .err { flex-basis: 100%; }
.coupon-row { color: var(--sage); }

/* ---------- AI gift helper ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.advisor-home .card { max-width: 760px; margin: 0 auto; }
.advisor-log { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px 2px 10px; }
.advisor-dialog .advisor-log { max-height: 50vh; }
.bubble.thinking { opacity: .7; font-style: italic; }
.bubble.error { background: var(--err-bg); color: var(--danger); }
.advisor-examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.advisor-examples .chip-link { font-size: .78rem; padding: .3em .8em; cursor: pointer; }
.advisor-form { display: flex; gap: 8px; align-items: flex-end; }
.advisor-form textarea { min-height: 52px; flex: 1; }
.advisor-note { margin: 6px 0 0; }
.advisor-cards { display: grid; gap: 8px; }
.advisor-card { display: flex; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px; color: var(--ink); text-decoration: none; }
.advisor-card:hover { border-color: var(--rose); color: var(--ink); }
.advisor-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: 0 0 64px; }
.advisor-fab { position: fixed; right: 16px; bottom: 16px; z-index: 30; border: 0; border-radius: 999px;
  padding: .8em 1.3em; background: var(--ink); color: var(--cream); font: 500 .9rem var(--sans);
  box-shadow: 0 8px 24px rgba(62, 74, 61, .3); cursor: pointer; }
.advisor-fab:hover { background: var(--rose-dark); }
.advisor-dialog { width: min(620px, 94vw); }
.advisor-dialog h2 { font-size: 1.6rem; padding-right: 36px; }
@media print { .advisor-fab { display: none; } }
/* room under the footer so the floating gift-helper button never covers its last line */
body:has(.advisor-fab) .site-footer { padding-bottom: 76px; }

/* Orders list filters */
.status-chips { margin: 4px 0 12px; }
.status-chips .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; border: 1px solid rgba(0,0,0,.12); }
.orders-filter { flex-wrap: wrap; gap: 8px; }
.orders-filter input[type=text] { flex: 1 1 220px; }
.orders-filter select, .orders-filter input[type=date] { width: auto; flex: 0 1 auto; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }

.maintenance-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; }
.maintenance-card.on { background: var(--err-bg); border-color: var(--danger); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-size: .85rem; }
.notice-card { background: var(--petal); border: 0; }

/* secret settings: text boxes drawn as dots, so browsers do not fill saved passwords into them */
.secret-input { -webkit-text-security: disc; text-security: disc; font-family: inherit; }

/* dashboard (owner 2026-11-01: more room between the cards) */
.maintenance-card { margin-bottom: 18px; }
.stat-row { gap: 18px; margin-bottom: 28px; }
.dash-h { font-size: 1.5rem; margin: 6px 0 12px; }
.dash-h .small { font-family: var(--font-body, inherit); font-style: normal; font-size: .8rem; margin-left: 6px; }
.dash-card { margin-bottom: 28px; }
.best-sellers { margin: 0; padding-left: 1.2rem; }
.best-sellers li { padding: 6px 0; border-bottom: 1px solid var(--line, #eee); }
.best-sellers li span { display: inline-block; min-width: 60%; }
