/* AreaWise R3 Phase 1B — shared header components: Saved Places Drawer + Account Avatar.
   Single source of truth, loaded on BOTH Homepage and Area Guide.
   Extracted from area-tabs.v4.9.10.css + saved-places/styles.css so the homepage gets the
   SAME complete styling as the Area Guide. */

/* =====================================================================
   Saved Places Drawer — complete styling (positioning + head + cards +
   buttons + bin + empty + responsive)
   ===================================================================== */
.saved-drawer, .saved-drawer-backdrop { display: none; }
.saved-drawer-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(16,24,40,.35); z-index: 6000; }
.saved-drawer { display: block; position: fixed; z-index: 6001; right: 0; top: 0; bottom: 0; width: min(92vw,360px); background: #fff; transform: translateX(105%); transition: transform .24s ease; box-shadow: -18px 0 45px rgba(16,24,40,.16); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); overflow: auto; }
.saved-drawer.open { transform: translateX(0); }
.saved-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 14px; border-bottom: 1px solid #edf1ef; margin-bottom: 12px; }
.saved-drawer-head .area-kicker { font-size: 12px; }
.saved-drawer-head h3 { font-size: 18px; margin: 4px 0 0; color: #10233d; }
.saved-drawer-head button { border: none; background: transparent; font-size: 22px; line-height: 1; color: #667085; cursor: pointer; padding: 4px 8px; }
.saved-drawer-loc { margin-bottom: 16px; }
.saved-drawer-postcode { display: block; width: 100%; text-align: left; border: none; background: #f1f7f3; color: #10233d; font-size: 13px; font-weight: 800; border-radius: 8px; padding: 9px 12px; cursor: pointer; margin-bottom: 6px; }
.saved-drawer-postcode span { color: #667085; font-weight: 600; font-size: 12px; }
.saved-drawer-group-label { display: block; width: 100%; text-align: left; border: none; background: transparent; color: #344054; font-size: 12px; font-weight: 800; cursor: pointer; padding: 6px 12px 4px; }
.saved-drawer-items { display: flex; flex-direction: column; gap: 2px; }
.saved-drawer-item { display: block; width: 100%; text-align: left; border: none; background: transparent; color: #667085; font-size: 12px; cursor: pointer; padding: 5px 12px 5px 24px; border-radius: 8px; }
.saved-drawer-item:hover { background: #f7faf8; color: #344054; }
.saved-drawer-empty { font-size: 12px; color: #667085; padding: 20px 12px; text-align: center; }
.saved-drawer-postcode-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.saved-drawer-postcode-row .saved-drawer-postcode { flex: 1 1 auto; }
.saved-drawer-item-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.saved-drawer-item-row .saved-drawer-item { flex: 1 1 auto; text-align: left; }
.saved-drawer-bin { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-width: 32px; border: 0; border-radius: 8px; background: transparent; color: #98a2b3; cursor: pointer; padding: 0; }
.saved-drawer-bin:hover, .saved-drawer-bin:focus-visible { background: #fee4e2; color: #d92d20; outline: none; }
@media (max-width: 600px) { .saved-drawer-bin { width: 40px; height: 40px; min-width: 40px; } }

/* =====================================================================
   Account Avatar — shared contract (Homepage + Area Guide).
   Forces a fixed 1:1 square, prevents flex stretch/shrink, crops via object-fit.
   ===================================================================== */
#accountBtn.account-avatar-btn {
  width: 38px; height: 38px;
  min-width: 38px; min-height: 38px;
  flex: 0 0 38px;
  align-self: center;
  border-radius: 50%;
  padding: 0; overflow: hidden;
  border: 0; background: transparent; box-shadow: none;
  gap: 0;
}
#accountBtn.account-avatar-btn::before { display: none; }
.account-avatar-img {
  width: 100%; height: 100%;
  min-width: 0; min-height: 0;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: block;
}
.account-avatar-ini { font-size: 13px; font-weight: 750; color: #344054; }
@media (max-width: 800px) {
  #accountBtn.account-avatar-btn { width: 40px; height: 40px; min-width: 40px; min-height: 40px; flex: 0 0 40px; }
}
