/**
 * File: assets/css/frontend/header-widgets/widgets-professional.css
 * Purpose: Professional header-widget restyle (1.0.304, user order 22 Nov 2026):
 * the Notifications / Favorites / Compare / Cart dropdown panels follow the
 * reference screenshots the user supplied (Compare + Cart panels) — white
 * heads with a green medallion + live-count subtitle, centred empty
 * states with a grey medallion, and two-pill footers (green primary /
 * white secondary). 1.0.305 (user order 22 Nov 2026): the orange primary
 * is replaced by the site's global parent green — the widget primary
 * tokens below point at var(--hdf-engine-color-primary-strong) /
 * var(--hdf-engine-color-primary-hover) (#4F7A20 / #466D1C), the same
 * green the rest of the site uses.
 * 1.0.306 (user order 22 Nov 2026): inner-padding polish — every
 * region now uses the 16px side standard (heads 14px 16px, matching
 * the theme account head); the compare rows' broken
 * var(--hdf-widget-pad) dependency is replaced with a literal 16px,
 * and the footer anchor pills get their horizontal padding back.
 * 1.0.307 (user order 22 Nov 2026, reference screenshot): the
 * notification cards follow the screenshot — bordered cards, 36px
 * green icon circle, bold title + summary + time as three one-line
 * meta rows, green check on the right for READ cards (unread cards
 * show no check: their state is the dot in the icon circle —
 * 1.0.309: the green border is gone, both states share the
 * favorites grey border). Visible-count settings (notifications + favorites,
 * default 3, range 1–8 — same pattern as the cart's visible items)
 * drive the list scroll via an inline --hdf-list-visible variable
 * on the list element; the cart panel carries its scroll height
 * inline so the setting works in the selling header too. The list
 * scrollbars are visible (thin) — the bundle hid them.
 * 1.0.309 (user order 22 Nov 2026, voice call): favorites list side
 * padding 16px -> 8px; notification cards use the favorites grey
 * border for both read and unread (the unread green border is gone —
 * unread state is only the dot in the icon circle); cart lines become
 * bordered cards like the favorites cards; the cart's "Protected
 * checkout and server-validated pricing." line is deleted; the gap
 * above the Order total row is cut 60% (12px -> 4.8px).
 * 1.0.310 (user order 22 Nov 2026, reference screenshot re-sent):
 * notification cards go exactly like the reference, in brand green:
 * the card icon is a real 36px ROUND circle (the 1.0.307 circle rule
 * never rendered — see the root-cause note in the 1.0.310 section
 * below); unread titles are BOLD, read titles NORMAL weight; the
 * check moves to UNREAD cards (green) and off read cards; unread
 * cards get the brand-green border again, read cards keep the grey
 * border; the dot in the icon circle is hidden; the list side inset
 * is 16px -> 20px so the cards never touch the panel edges. Titles
 * stay HyperDAF dark text — the reference's blue titles are NOT
 * copied, and no orange is used anywhere.
 * 1.0.311 (user order 22 Nov 2026, voice call — the user checked test
 * himself): the card icon still rendered as a vertical OVAL (~24px
 * wide x 36px tall) after 1.0.310, so this section re-asserts the
 * 36px circle scoped to the panel itself (.hdf-header-notifications-
 * panel) and adds min-width/min-height:36px so the used size cannot
 * be squeezed to the 28px grid track again. Nothing else changes.
 * Scope: Overrides ONLY. It loads AFTER header-widgets-panel.min.css (see
 * HeaderWidgetAssets::enqueue, dependency on the panel handle) and wins by
 * document order at the same specificity wherever it restyles an existing
 * class; where a bundle rule is more specific, this sheet repeats that
 * selector so the override still wins. It never edits the minified bundles.
 * The sheet is deferred like the panel bundle (DEFERRED_HANDLES).
 * 1.0.310 correction: document order alone does NOT guarantee an
 * override — the interaction loader (HeaderWidgetAssets) appends a
 * DUPLICATE panel-bundle <link> on first interaction, after this sheet,
 * so every same-specificity tie flips back to the bundle (that is why
 * the 1.0.307 circle rendered as the bundle's 28px square). The 1.0.310
 * notification rules are therefore scoped to the notifications list so
 * they beat the bundle on SPECIFICITY, not on order.
 * Design tokens:
 *   green primary var(--hdf-engine-color-primary-strong) (#4F7A20),
 *   hover var(--hdf-engine-color-primary-hover) (#466D1C), medallion bg #eef4e3,
 *   ink #0f172a, muted #64748b, divider #f1f5f9,
 *   empty medallion #f1f5f9, empty icon #94a3b8,
 *   secondary border #e2e8f0, secondary hover #f8fafc.
 * Related PHP: src/HeaderWidgets/HeaderWidgetRenderer.php (shared
 * header()/emptyState()), src/HeaderWidgets/FavoritesWidgetRenderer.php,
 * src/HeaderWidgets/ProductListWidgetRenderer.php,
 * src/Cart/Frontend/CartHeaderRenderer.php,
 * src/Notifications/Frontend/NotificationHeaderRenderer.php.
 * Package: HyperDAF Engine
 */

:root{
  --hdf-widget-primary:var(--hdf-engine-color-primary-strong);
  --hdf-widget-primary-hover:var(--hdf-engine-color-primary-hover);
  --hdf-widget-primary-soft:#eef4e3;
  --hdf-widget-ink:#0f172a;
  --hdf-widget-muted:#64748b;
  --hdf-widget-line:#f1f5f9;
  --hdf-widget-empty-bg:#f1f5f9;
  --hdf-widget-empty-icon:#94a3b8;
  --hdf-widget-secondary-border:#e2e8f0;
  --hdf-widget-secondary-hover:#f8fafc;
  --hdf-widget-scrollbar:#cbd5e1;
}

/* ---------- Shared buttons: two pills, 40px, 14px/600 ---------- */
.hdf-header-widget-button{
  min-height:40px;
  min-width:0;
  padding:0 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* 1.0.305 (user order 22 Nov 2026): 13px + tighter padding + nowrap so a
 * button label can never wrap to a second line on any device; ellipsis is
 * only a safety net for an unexpectedly long label. */
.hdf-header-widget-button--primary{
  border-color:var(--hdf-widget-primary);
  background:var(--hdf-widget-primary);
  color:#fff;
}
.hdf-header-widget-button--secondary{
  border-color:var(--hdf-widget-secondary-border);
  background:#fff;
  color:var(--hdf-widget-ink);
}
.hdf-header-widget-button:hover,
.hdf-header-widget-button:focus-visible{
  border-color:var(--hdf-widget-secondary-border);
  background:var(--hdf-widget-secondary-hover);
  color:var(--hdf-widget-ink);
}
.hdf-header-widget-button--primary:hover,
.hdf-header-widget-button--primary:focus-visible,
.hdf-header-widget-empty a:hover,
.hdf-header-widget-empty a:focus-visible{
  border-color:var(--hdf-widget-primary-hover);
  background:var(--hdf-widget-primary-hover);
  color:#fff;
}
.hdf-header-widget-button--secondary:hover,
.hdf-header-widget-button--secondary:focus-visible{
  border-color:var(--hdf-widget-secondary-border);
  background:var(--hdf-widget-secondary-hover);
  color:var(--hdf-widget-ink);
}
/* Empty-state links are primary buttons in the base bundle — keep them
 * green. The secondary empty-state link (Favorites "View all") needs
 * its own hover at (0,3,1): the base generic empty-link hover is
 * (0,2,1) and would otherwise beat the (0,2,0) secondary hover. */
.hdf-header-widget-empty a{
  border-color:var(--hdf-widget-primary);
  background:var(--hdf-widget-primary);
  color:#fff;
}
.hdf-header-widget-empty a.hdf-header-widget-button--secondary{
  border-color:var(--hdf-widget-secondary-border);
  background:#fff;
  color:var(--hdf-widget-ink);
}
.hdf-header-widget-empty a.hdf-header-widget-button--secondary:hover,
.hdf-header-widget-empty a.hdf-header-widget-button--secondary:focus-visible{
  border-color:var(--hdf-widget-secondary-border);
  background:var(--hdf-widget-secondary-hover);
  color:var(--hdf-widget-ink);
}

/* ---------- Shared head: white, divider, green medallion ---------- */
.hdf-header-widget-head{
  justify-content:flex-start;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--hdf-widget-line);
  background:#fff;
}
.hdf-header-widget-head__icon{
  display:grid;
  width:36px;
  height:36px;
  flex:0 0 auto;
  place-items:center;
  border-radius:50%;
  background:var(--hdf-widget-primary-soft);
  color:var(--hdf-widget-primary-hover);
}
.hdf-header-widget-head__icon .hdf-engine-icon{
  width:20px;
  height:20px;
}
.hdf-header-widget-head__copy{
  display:grid;
  min-width:0;
  gap:1px;
}
.hdf-header-widget-head__copy h3{
  margin:0;
  color:var(--hdf-widget-ink);
  font-size:15px;
  font-weight:700;
  line-height:1.3;
}
.hdf-header-widget-head__copy small{
  margin-top:0;
  color:var(--hdf-widget-muted);
  font-size:12.5px;
}

/* ---------- Shared empty state: centred medallion + bold + muted ---------- */
.hdf-header-widget-empty{
  justify-items:center;
  gap:10px;
  padding:28px 16px;
  text-align:center;
}
.hdf-header-widget-empty strong{
  color:var(--hdf-widget-ink);
  font-size:15px;
  font-weight:700;
  line-height:1.35;
}
.hdf-header-widget-empty p{
  margin:0;
  color:var(--hdf-widget-muted);
  font-size:13px;
  line-height:1.5;
}
.hdf-header-widget-empty__icon{
  display:grid;
  width:48px;
  height:48px;
  place-items:center;
  border-radius:50%;
  background:var(--hdf-widget-empty-bg);
  color:var(--hdf-widget-empty-icon);
}
.hdf-header-widget-empty__icon .hdf-engine-icon{
  width:24px;
  height:24px;
}
.hdf-header-widget-empty .hdf-header-widget-button{
  min-width:10rem;
  justify-self:center;
}

/* ---------- Shared footer + Compare footer ---------- */
.hdf-header-widget-footer{
  padding:12px 16px;
  border-top:1px solid var(--hdf-widget-line);
  background:#fff;
}
.hdf-header-compare-footer{
  display:flex;
  gap:10px;
}
.hdf-header-compare-footer > a,
.hdf-header-compare-footer > form{
  flex:1;
  min-width:0;
}
.hdf-header-compare-footer__clear-form{
  display:grid;
  margin:0;
}
.hdf-header-compare-footer .hdf-header-widget-button{
  width:100%;
  min-height:40px;
  justify-content:center;
  padding:0 12px;
}

/* ---------- Cart head: white + medallion + live-count subtitle ---------- */
.hdf-header-cart-panel__head{
  padding:14px 16px;
  border-bottom:1px solid var(--hdf-widget-line);
  background:#fff;
}
.hdf-header-cart-panel__copy{
  gap:12px;
}
.hdf-header-cart-panel__title-icon{
  width:36px;
  height:36px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--hdf-widget-primary-soft);
  color:var(--hdf-widget-primary-hover);
}
.hdf-header-cart-panel__title-icon .hdf-engine-icon{
  width:20px;
  height:20px;
  color:var(--hdf-widget-primary-hover);
}
.hdf-header-cart-panel__heading{
  gap:1px;
}
.hdf-header-cart-panel__heading strong{
  color:var(--hdf-widget-ink);
  font-size:15px;
  font-weight:700;
}
.hdf-header-cart-panel__heading small{
  color:var(--hdf-widget-muted);
  font-size:12.5px;
}
.hdf-header-cart-panel__clear{
  color:var(--hdf-widget-muted);
}
.hdf-header-cart-panel__clear:hover{
  color:var(--hdf-widget-primary-hover);
  text-decoration:underline;
  outline:none;
}
.hdf-header-cart-panel__clear:focus-visible{
  color:var(--hdf-widget-primary-hover);
  text-decoration:underline;
  outline:2px solid var(--hdf-widget-primary-hover);
  outline-offset:2px;
}
/* Optimistic Clear-all window (cart-ajax.js hides the tools and shows
 * the hidden empty template before the server snapshot lands): the head
 * subtitle would still show the old count above "Your cart is empty",
 * so hide it until the snapshot replaces the panel. The server-rendered
 * empty panel has no tools element at all, so this never hides the
 * steady-state "0 items" subtitle. :has() is already used in the
 * panel bundle. */
.hdf-header-cart-panel:has(.hdf-header-cart-panel__tools[hidden]) .hdf-header-cart-panel__heading small{
  visibility:hidden;
}

/* ---------- Cart empty state + its footer-like button row ---------- */
/* The two buttons stay INSIDE the always-rendered empty-state template
 * (they must — the instant Clear-all swap only toggles this div), so the
 * row is styled to look like the panel footer: full-width divider
 * (negative margins reach the panel edges) with the buttons inset 16px. */
.hdf-header-cart-empty{
  gap:10px;
  padding:28px 16px;
}
.hdf-header-cart-panel .hdf-header-cart-empty__icon{
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  background:var(--hdf-widget-empty-bg);
  color:var(--hdf-widget-empty-icon);
}
.hdf-header-cart-panel .hdf-header-cart-empty__icon svg{
  width:24px;
  height:24px;
}
.hdf-header-cart-empty strong{
  color:var(--hdf-widget-ink);
  font-size:15px;
}
.hdf-header-cart-empty__continue{
  color:var(--hdf-widget-primary-hover);
  font-size:13px;
  font-weight:600;
  text-decoration:none;
}
.hdf-header-cart-empty__continue:hover,
.hdf-header-cart-empty__continue:focus-visible{
  text-decoration:underline;
}
.hdf-header-cart-empty__actions{
  gap:10px;
  width:100%;
  margin:14px -16px 0;
  padding:14px 16px 0;
  border-top:1px solid var(--hdf-widget-line);
}
.hdf-header-cart-empty__actions .hdf-header-widget-button{
  flex:1;
  min-width:0;
  justify-content:center;
}

/* ---------- Cart filled footer: total + two pills + secure note ---------- */
.hdf-header-cart-panel__foot{
  padding:12px 16px 14px;
  border-top:1px solid var(--hdf-widget-line);
  background:#fff;
}
.hdf-header-cart-panel .hdf-header-cart-total{
  padding:0 0 12px;
  border-top:0;
}
.hdf-header-cart-panel .hdf-header-cart-total span{
  color:var(--hdf-widget-muted);
}
.hdf-header-cart-panel .hdf-header-cart-total strong{
  color:var(--hdf-widget-ink);
}
.hdf-header-cart-panel .hdf-header-cart-actions{
  gap:10px;
  padding:0;
}
.hdf-header-cart-panel .hdf-header-widget-button{
  min-height:var(--hdf-engine-cart-widget-button-height,40px);
}
.hdf-header-cart-panel .hdf-header-widget-button--primary{
  border-color:var(--hdf-widget-primary);
  background:var(--hdf-widget-primary);
}
.hdf-header-cart-panel .hdf-header-widget-button:hover,
.hdf-header-cart-panel .hdf-header-widget-button:focus-visible{
  border-color:var(--hdf-widget-secondary-border);
  background:var(--hdf-widget-secondary-hover);
  color:var(--hdf-widget-ink);
}
.hdf-header-cart-panel .hdf-header-widget-button--primary:hover,
.hdf-header-cart-panel .hdf-header-widget-button--primary:focus-visible{
  border-color:var(--hdf-widget-primary-hover);
  background:var(--hdf-widget-primary-hover);
  color:#fff;
}
/* 1.0.309: the "Protected checkout and server-validated pricing."
 * line is DELETED (markup in CartHeaderRenderer + this rule) — the
 * rule below is removed with it, not left behind. */

/* ---------- Favorites head: medallion + "N items" subtitle ---------- */
.hdf-header-favorites-head{
  padding:14px 16px;
  border-bottom:1px solid var(--hdf-widget-line);
  background:#fff;
}
.hdf-header-favorites-head__copy{
  gap:12px;
}
.hdf-header-favorites-head__title-icon{
  width:36px;
  height:36px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--hdf-widget-primary-soft);
  color:var(--hdf-widget-primary-hover);
}
.hdf-header-favorites-head__copy .hdf-engine-icon{
  width:20px;
  height:20px;
  color:var(--hdf-widget-primary-hover);
}
.hdf-header-favorites-head__text{
  display:grid;
  min-width:0;
  gap:1px;
}
.hdf-header-favorites-head strong{
  color:var(--hdf-widget-ink);
  font-size:15px;
  font-weight:800;
}
.hdf-header-favorites-head__text small{
  display:block;
  color:var(--hdf-widget-muted);
  font-size:12.5px;
}

/* ---------- Favorites empty state ---------- */
.hdf-header-favorites-empty{
  min-height:0;
  padding:28px 16px;
}
.hdf-header-favorites-empty > span{
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  background:var(--hdf-widget-empty-bg);
  color:var(--hdf-widget-empty-icon);
}
.hdf-header-favorites-empty > span .hdf-engine-icon{
  width:24px;
  height:24px;
}
.hdf-header-favorites-empty strong{
  margin-top:10px;
  color:var(--hdf-widget-ink);
  font-size:15px;
}
.hdf-header-favorites-empty p{
  margin:4px 0 0;
  color:var(--hdf-widget-muted);
  font-size:13px;
}
.hdf-header-favorites-empty__actions{
  gap:10px;
  width:100%;
  margin-top:16px;
}
.hdf-header-favorites-panel .hdf-header-favorites-empty .hdf-header-favorites-empty__actions .hdf-header-widget-button{
  flex:1;
  width:auto;
  min-width:0;
  max-width:none;
}

/* ---------- Favorites footer: two pills ---------- */
.hdf-header-favorites-footer{
  gap:10px;
  padding:12px 16px;
  border-top:1px solid var(--hdf-widget-line);
  background:#fff;
}
.hdf-header-favorites-footer > a.hdf-header-widget-button,
.hdf-header-favorites-footer > form{
  flex-basis:calc((100% - 10px) / 2);
  width:calc((100% - 10px) / 2);
  max-width:calc((100% - 10px) / 2);
}
.hdf-header-favorites-footer .hdf-header-widget-button--primary:hover,
.hdf-header-favorites-footer .hdf-header-widget-button--primary:focus-visible{
  border-color:var(--hdf-widget-primary-hover);
  background:var(--hdf-widget-primary-hover);
  color:#fff;
}

/* ---------- Notifications head: medallion + "N unread" subtitle ---------- */
.hdf-header-notifications-head{
  padding:14px 16px;
  border-bottom:1px solid var(--hdf-widget-line);
  background:#fff;
}
.hdf-header-notifications-head__copy{
  gap:12px;
}
.hdf-header-notifications-head__title-icon{
  width:36px;
  height:36px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--hdf-widget-primary-soft);
  color:var(--hdf-widget-primary-hover);
}
.hdf-header-notifications-head__title-icon .hdf-engine-icon{
  width:20px;
  height:20px;
  color:var(--hdf-widget-primary-hover);
}
.hdf-header-notifications-head__text{
  display:grid;
  min-width:0;
  gap:1px;
}
.hdf-header-notifications-head strong{
  color:var(--hdf-widget-ink);
  font-size:15px;
  font-weight:800;
}
.hdf-header-notifications-head__text small{
  display:block;
  color:var(--hdf-widget-muted);
  font-size:12.5px;
}
/* The armed "clear all" (danger, two-step confirm) is excluded: its
 * danger colour must survive hover/focus. */
.hdf-header-notifications-clear:hover:not(.is-armed){
  color:var(--hdf-widget-primary-hover);
  text-decoration:underline;
}
.hdf-header-notifications-clear:focus-visible:not(.is-armed){
  color:var(--hdf-widget-primary-hover);
  text-decoration:underline;
  outline:2px solid var(--hdf-widget-primary-hover);
  outline-offset:2px;
}

/* ---------- Notifications empty state ---------- */
.hdf-header-notifications-empty{
  gap:10px;
  padding:28px 16px;
}

/* ---------- Notifications footer: two pills ---------- */
.hdf-header-notifications-footer{
  gap:10px;
  padding:12px 16px;
  border-top:1px solid var(--hdf-widget-line);
  background:#fff;
}
.hdf-header-notifications-footer .hdf-header-widget-button--primary:hover,
.hdf-header-notifications-footer .hdf-header-widget-button--primary:focus-visible{
  border-color:var(--hdf-widget-primary-hover);
  background:var(--hdf-widget-primary-hover);
  color:#fff;
}

/* ---------- 1.0.306 inner-padding polish (user order 22 Nov 2026) ----------
 * Every region now uses the 16px side standard. Two real defects fixed
 * here: (a) the compare rows depended on var(--hdf-widget-pad), which is
 * defined ONLY on .hdf-header-action__widget (the header button) and
 * never inherits into the theme popover panel — the rows rendered with
 * 0 side padding; (b) the base .hdf-header-widget-footer a{padding:0}
 * (0,1,1) beat the shared button padding (0,1,0), so the anchor pills
 * in the compare + notifications footers had no horizontal padding. */
/* Lists: cards/rows sit 16px from the panel edge. */
.hdf-header-widget-list--notifications{
  padding:8px 16px;
}
.hdf-notification-item > a{
  padding:14px 12px;
}
.hdf-header-favorites-list{
  padding:6px 16px;
}
.hdf-header-favorite-item .hdf-header-widget-remove{
  margin:0 12px 0 0;
}
.hdf-header-cart-line__link{
  padding:.55rem 16px;
}
/* Compare rows: literal 16px replaces the unresolvable
 * var(--hdf-widget-pad) (see note above); the remove button is aligned
 * to the same 16px right inset as the row content on the left. */
.hdf-header-widget-list.hdf-header-widget-list--products > li > a{
  padding:.8rem 16px;
}
.hdf-header-widget-list--products .hdf-header-widget-remove{
  margin-right:16px;
}
/* Notifications footer: the View all anchor gains flex:1 (the Mark read
 * form already had it), so the two pills are equal width like the other
 * footers; the 12px horizontal padding is restored (see note above). */
.hdf-header-notifications-footer > a{
  flex:1;
  min-width:0;
  justify-content:center;
  padding:0 12px;
}

/* ---------- 1.0.307 notification cards + visible-count scroll (user order 22 Nov 2026) ----------
 * Reference screenshot (another site, orange — recoloured green here):
 * a bordered card, a small icon in a light circle on the left, a bold
 * title + two muted meta lines in the middle, and a status check on the
 * right for read cards. This reverses the v4 borderless decision
 * (21 Nov 2026, "no border, light-blue #E3F2FD hover") for the
 * notification cards only — the user asked for the screenshot look.
 * Row geometry is FIXED so the visible-count scroll math is exact:
 * every card is 72px tall (icon 36px; title + summary + time, each
 * one line with ellipsis). The list max-height shows exactly N cards:
 * N*72px + (N-1)*8px gap + 16px list padding, with N from the inline
 * --hdf-list-visible variable the renderer puts on the <ul>.
 * The bundle hid the list scrollbar (scrollbar-width:none); the user
 * asked for a visible vertical scrollbar, so it is restored (thin). */
/* Cards: bordered — the SAME grey border as the favorites cards
 * (1px solid var(--hdf-engine-color-border-subtle), radius 12px from
 * the bundle). 1.0.309 (user order 22 Nov 2026): the unread green
 * border is gone — read and unread cards share this grey border, and
 * the unread state is only the dot in the icon circle (read cards
 * keep their green check on the right). The (0,2,0) selector beats
 * the bundle's (0,2,0) borderless guard by document order.
 * 1.0.310: the state system above is superseded — see the 1.0.310
 * section below (unread = green border + bold title + green check,
 * read = grey border + normal title + no check, dot hidden). */
.hdf-header-widget-list--notifications > .hdf-notification-item{
  border:1px solid var(--hdf-engine-color-border-subtle);
  background:#fff;
}
/* Card row: fixed 72px, three columns (36px icon | text | check).
 * Same selector as the bundle (0,1,1) — wins by document order. */
.hdf-notification-item > a{
  grid-template-columns:36px minmax(0,1fr) auto;
  height:72px;
  min-height:72px;
  padding:0 12px;
}
/* Hover is light green now, not the bundle's light blue #E3F2FD. */
.hdf-notification-item > a:hover,
.hdf-notification-item > a:focus-visible{
  background:var(--hdf-widget-primary-soft);
  outline:none;
}
/* Icon circle: 36px green medallion, like the panel heads. The unread
 * indicator rule is (0,3,0) in the bundle, so it is repeated here. */
.hdf-notification-indicator{
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--hdf-widget-primary-soft);
}
.hdf-notification-item.is-unread .hdf-notification-indicator{
  background:var(--hdf-widget-primary-soft);
}
.hdf-notification-indicator .hdf-engine-icon{
  width:20px;
  height:20px;
  color:var(--hdf-widget-primary-hover);
}
/* Text: title is one line now (was a two-line clamp) — the screenshot
 * truncates titles with an ellipsis; the full title stays in the link
 * title attribute. Summary and time are the two muted meta lines. */
.hdf-notification-content strong{
  display:block;
  overflow:hidden;
  font-size:.88rem;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.hdf-notification-item .hdf-notification-content time{
  display:block;
  color:var(--hdf-widget-muted);
  font-size:.7rem;
  line-height:1.35;
  white-space:nowrap;
}
/* Read check on the right (read cards only; unread cards render none). */
.hdf-notification-check{
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  flex:0 0 auto;
  color:var(--hdf-widget-primary-hover);
}
.hdf-notification-check .hdf-engine-icon{
  width:16px;
  height:16px;
}
/* List scroll: exactly N cards in front, the rest scroll. N comes from
 * the inline --hdf-list-visible variable (renderer, default 3). */
.hdf-header-widget-list--notifications{
  max-height:calc(var(--hdf-list-visible,3)*72px + (var(--hdf-list-visible,3) - 1)*8px + 16px);
  scrollbar-width:thin;
  scrollbar-color:var(--hdf-widget-scrollbar) transparent;
  -ms-overflow-style:auto;
}
.hdf-header-widget-list--notifications::-webkit-scrollbar{
  display:block;
  width:6px;
  height:6px;
}
.hdf-header-widget-list--notifications::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:var(--hdf-widget-scrollbar);
}
.hdf-header-widget-list--notifications::-webkit-scrollbar-track{
  background:transparent;
}

/* ---------- 1.0.310 notification cards — reference redesign, round circles (user order 22 Nov 2026) ----------
 * Reference screenshot (re-sent 22 Nov 2026, orange site — recoloured
 * brand green here, blue titles NOT copied): the card icon sits in a
 * ROUND CIRCLE with a clean professional glyph; unread titles are BOLD,
 * read titles NORMAL weight; unread cards carry the coloured border +
 * a check on the right, read cards a grey border and no check; cards
 * sit with a clear inset from the panel edges, never touching them.
 * Measured from the reference (409x543 screenshot): panel x11..330
 * (~319px), cards x24..304 (~280px) — left inset ~13px, right inset
 * ~26px including the scrollbar gutter; icon circle ~36px in a ~72px
 * row (half the row height), glyph ~20px. Our list padding was 16px
 * sides, which matches the reference's left inset on paper — but the
 * user still saw the cards touching the edges, so the inset is raised
 * to 20px sides (cards 310px in the 350px panel, ~ the reference's
 * 308px card width) to make the margin unmistakable.
 * ROOT CAUSE of the 1.0.307 circle never rendering: the 1.0.307
 * indicator rule is (0,1,0), the same as the bundle's 28px rounded
 * square (width:28px;height:28px;border-radius:9px). It wins that tie
 * only by document order — but the interaction loader
 * (HeaderWidgetAssets::printInteractionLoader) appends a DUPLICATE
 * panel-bundle <link> on first interaction, after this sheet, so the
 * duplicate flips every same-specificity tie back to the bundle (its
 * loadCss() never checks whether the sheet is already printed, despite
 * the docblock claiming it no-ops). Every rule in this section is
 * therefore scoped to the notifications list, beating the bundle on
 * SPECIFICITY so it wins in both load orders. Do not "simplify" these
 * selectors back to bare classes.
 * Row geometry is UNCHANGED: the <a> stays fixed 72px tall, so the
 * 1.0.307 scroll formula (N*72px + (N-1)*8px + 16px) still holds
 * exactly. The vertical list padding stays 8px top/bottom. */
/* Icon circle: a real 36px circle. Unread = light-green bg + dark
 * green glyph (like the head medallion); read = light-grey bg + grey
 * glyph. (0,2,0) beats the bundle's (0,1,0) 28px square. */
.hdf-header-widget-list--notifications .hdf-notification-indicator{
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--hdf-widget-primary-soft);
}
.hdf-header-widget-list--notifications > .hdf-notification-item.is-unread .hdf-notification-indicator{
  background:var(--hdf-widget-primary-soft);
}
.hdf-header-widget-list--notifications > .hdf-notification-item.is-read .hdf-notification-indicator{
  background:#f1f5f9;
}
.hdf-header-widget-list--notifications .hdf-notification-indicator .hdf-engine-icon{
  width:20px;
  height:20px;
  color:var(--hdf-widget-primary-hover);
}
.hdf-header-widget-list--notifications > .hdf-notification-item.is-read .hdf-notification-indicator .hdf-engine-icon{
  color:#94a3b8;
}
/* Card row: 36px icon column, fixed 72px height, 0 12px padding —
 * (0,2,1) beats the bundle's (0,1,1) 28px column / 14px 10px padding,
 * so the row geometry survives the duplicate-bundle flip too. */
.hdf-header-widget-list--notifications > .hdf-notification-item > a{
  grid-template-columns:36px minmax(0,1fr) auto;
  height:72px;
  min-height:72px;
  padding:0 12px;
}
/* Hover: light green, not the bundle's light blue #E3F2FD — (0,3,1)
 * beats the bundle's (0,2,1) so the duplicate-bundle flip cannot
 * restore the blue hover. Same declarations as the 1.0.307 rule,
 * only the specificity is raised (same root cause as the circle). */
.hdf-header-widget-list--notifications > .hdf-notification-item > a:hover,
.hdf-header-widget-list--notifications > .hdf-notification-item > a:focus-visible{
  background:var(--hdf-widget-primary-soft);
  outline:none;
}
/* Title weight by state: unread BOLD (700), read NORMAL (400).
 * Colour is NOT touched — titles stay HyperDAF dark text. */
.hdf-header-widget-list--notifications .hdf-notification-content strong{
  font-weight:700;
}
.hdf-header-widget-list--notifications > .hdf-notification-item.is-read .hdf-notification-content strong{
  font-weight:400;
}
/* Border by state: unread = brand-green, read = favorites grey.
 * (0,3,0) beats the bundle's (0,2,0) borderless guard. This reverses
 * the 1.0.309 decision deliberately, per the reference. */
.hdf-header-widget-list--notifications > .hdf-notification-item.is-unread{
  border-color:var(--hdf-engine-color-primary-strong);
}
.hdf-header-widget-list--notifications > .hdf-notification-item.is-read{
  border-color:var(--hdf-engine-color-border-subtle);
}
/* Check: green primary-strong (#4F7A20), on UNREAD cards only (the
 * renderer flips the condition in 1.0.310 — this reverses 1.0.307). */
.hdf-header-widget-list--notifications .hdf-notification-check{
  color:var(--hdf-widget-primary);
}
/* Dot: hidden entirely — the reference has no dot in the icon circle.
 * The markup stays (CSS-only change); severity dot colours are hidden
 * with it, per the reference's clean-circle design. */
.hdf-header-widget-list--notifications .hdf-notification-dot{
  display:none;
}
/* Inset: list side padding 16px -> 20px so the cards never touch the
 * panel's left/right edges. Vertical padding stays 8px, so the scroll
 * formula is untouched. (0,2,0) beats the 1.0.306 rule by specificity. */
.hdf-header-notifications-panel .hdf-header-widget-list--notifications{
  padding:8px 20px;
}

/* ---------- 1.0.311 notification icon circle — oval fix (user order 22 Nov 2026, voice call) ----------
 * LIVE DEFECT (test.hyperdaf.com, 22 Nov 2026 12:22-12:28 PKT, measured
 * after the 1.0.310 deploy, after hovering/clicking the header bell,
 * after reopening the panel, and after a homepage reload — the user
 * checked it himself too): the card icon rendered as a VERTICAL OVAL,
 * ~24px wide x 36px tall — height applied, width did not — even though
 * the 1.0.310 section sets both in one rule. Everything else in 1.0.310
 * verified PASS live (20px inset, 3 cards + scroll, normal read titles,
 * grey borders, no check on read cards, no orange, no blue titles).
 * The head bell measured exactly 36x36 round, so the measurement itself
 * is sound.
 * ROOT CAUSE (from the evidence): the row's first grid column renders
 * at the bundle's 28px, not 36px — the 1.0.310 row rule is not winning
 * live for grid-template-columns — and the indicator, a grid item in
 * that 28px track, is squeezed to the track instead of its 36px width.
 * The measured ~24px is a 28px-wide ellipse read slightly off-centre
 * (at +/-9px from centre a 28x36 ellipse reads ~24px wide). The
 * cascade as written says the 1.0.310 rules win in both load orders
 * (enumerated: no competing selector, no !important, no theme rule, no
 * inline style, no syntax error — comments 43/43, braces balanced), so
 * the live divergence is a sizing quirk the width declaration alone
 * cannot defeat. This section therefore makes the result independent
 * of it: min-width/min-height force the used size to 36px in both axes
 * no matter what wins for width/height (min-width beats max-width and
 * beats track-based shrinking), and every rule is scoped to the panel
 * itself (.hdf-header-notifications-panel — the inset rule using this
 * scope already applied live in 1.0.310), beating the bundle by a wide
 * margin in both load orders. Do not "simplify" these selectors or
 * drop the min-width/min-height. */
.hdf-header-notifications-panel .hdf-header-widget-list--notifications .hdf-notification-indicator{
  width:36px;
  height:36px;
  min-width:36px;
  min-height:36px;
  flex:0 0 auto;
  box-sizing:border-box;
  border-radius:50%;
}
.hdf-header-notifications-panel .hdf-header-widget-list--notifications > .hdf-notification-item.is-unread .hdf-notification-indicator{
  background:var(--hdf-widget-primary-soft);
}
.hdf-header-notifications-panel .hdf-header-widget-list--notifications > .hdf-notification-item.is-read .hdf-notification-indicator{
  background:#f1f5f9;
}
.hdf-header-notifications-panel .hdf-header-widget-list--notifications .hdf-notification-indicator .hdf-engine-icon{
  width:20px;
  height:20px;
  color:var(--hdf-widget-primary-hover);
}
.hdf-header-notifications-panel .hdf-header-widget-list--notifications > .hdf-notification-item.is-read .hdf-notification-indicator .hdf-engine-icon{
  color:#94a3b8;
}
/* Row: first column 36px, re-asserted at (0,3,1) so the track itself
 * is 36px and the icon never overflows into the gap. Height stays
 * 72px; the 1.0.307 scroll formula is untouched. */
.hdf-header-notifications-panel .hdf-header-widget-list--notifications > .hdf-notification-item > a{
  grid-template-columns:36px minmax(0,1fr) auto;
}

/* ---------- 1.0.307 favorites visible-count scroll ----------
 * Favorite rows are exactly 70px (the <li> min-height in the bundle),
 * the list gap is 8px and the list padding is 6px top + 6px bottom, so
 * the max-height shows exactly N cards: N*70px + (N-1)*8px + 12px,
 * with N from the inline --hdf-list-visible variable on the scroll
 * wrapper. The bundle hid this scrollbar too; restored (thin). */
.hdf-header-favorites-scroll{
  max-height:calc(var(--hdf-list-visible,3)*70px + (var(--hdf-list-visible,3) - 1)*8px + 12px);
  scrollbar-width:thin;
  scrollbar-color:var(--hdf-widget-scrollbar) transparent;
  -ms-overflow-style:auto;
}
.hdf-header-favorites-scroll::-webkit-scrollbar{
  display:block;
  width:6px;
  height:6px;
}
.hdf-header-favorites-scroll::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:var(--hdf-widget-scrollbar);
}
.hdf-header-favorites-scroll::-webkit-scrollbar-track{
  background:transparent;
}

/* ---------- 1.0.309 widget polish (user order 22 Nov 2026, voice call) ----------
 * (a) Favorites list side padding 16px -> 8px (50% less); the cards'
 * own padding and the vertical scroll math (N*70px + (N-1)*8px + 12px)
 * are untouched — only the horizontal padding changes.
 * (b) Cart lines become bordered cards like the favorites cards: the
 * same 1px subtle border + 12px radius, the same 8px link padding
 * structure, an 8px gap between cards, and the favorites hover. The
 * lines list padding is 6px top / 8px sides / 0 bottom — bottom is 0
 * (not 6px) so the gap above the Order total row stays exactly the
 * foot top padding (see (d)). The (0,2,0) line selector beats the
 * bundle's (0,2,0) last-child border-bottom:0 by document order, so
 * the last card keeps its full border.
 * (c) The "Protected checkout and server-validated pricing." line is
 * deleted (markup in CartHeaderRenderer + the only override rule for
 * it). The cart PAGE's own assurance line ("Protected checkout and
 * verified product access.") is a different string and is untouched.
 * (d) Gap above the Order total row: was 12px (the foot top padding),
 * now 4.8px — exactly 60% less. The visible gap above the total is
 * the foot top padding alone (list bottom padding is 0, see (b)).
 * Cart scroll math: a row is now the link height ($rowHeight) + 2px
 * li border = 72px at the 70px default, so the scroll height is
 * N*(rowHeight+2) + (N-1)*8 gap + 6 list top padding — computed in
 * HeaderWidgetAssets::settingsCss() and CartHeaderRenderer::html()
 * (one computation, two delivery paths, as in 1.0.307). */
.hdf-header-favorites-list{
  padding:6px 8px;
}
.hdf-header-cart-lines{
  gap:8px;
  padding:6px 8px 0;
}
.hdf-header-cart-lines > .hdf-header-cart-line{
  border:1px solid var(--hdf-engine-color-border-subtle);
  border-radius:12px;
  background:var(--hdf-engine-color-surface);
}
.hdf-header-cart-lines > .hdf-header-cart-line:hover{
  background:var(--hdf-engine-color-surface-subtle);
}
.hdf-header-cart-line__link{
  padding:8px 12px;
  border-radius:12px;
}
.hdf-header-cart-panel__foot{
  padding:4.8px 16px 14px;
}
