/* Header surfaces and their navigation rows span the available website width. */
[data-sr-header] { width:100%!important; max-width:none!important; margin-inline:0!important; box-sizing:border-box; }
[data-sr-header-row] { width:100%!important; max-width:none!important; margin-inline:0!important; box-sizing:border-box; padding-inline:24px!important; }
[data-sr-header-container] { width:100%!important; max-width:none!important; margin-inline:0!important; padding-inline:0!important; }
/* Shared layout retains theme colors with an opaque scrolling surface. */
[data-sr-header] { position:sticky; top:0; z-index:50; background:var(--sr-header-surface,#fff)!important; backdrop-filter:none!important; opacity:1!important; transition:none!important; }
[data-sr-header] [data-sr-navigation] a, [data-sr-header] [data-customer-menu] :is(.customer-header-signin,.customer-account-entry), [data-sr-header-cta] { font-size:12px!important; }
[data-sr-header-row] { display:flex!important; flex-flow:row nowrap!important; align-items:center!important; gap:16px!important; min-width:0; padding-block:12px; }
[data-sr-brand] { flex:0 1 auto; min-width:0; overflow-wrap:anywhere; }
[data-sr-navigation] { flex:1 1 auto; min-width:0; justify-content:flex-end; }
[data-sr-header][data-sr-compact=false] [data-sr-navigation] { display:flex!important; position:static!important; flex-flow:row nowrap!important; min-width:max-content; gap:16px; }
[data-sr-header][data-sr-compact=false] [data-sr-navigation] > a { white-space:nowrap; }
[data-sr-header] [data-customer-menu] { flex:0 0 auto; margin:0; }
[data-sr-header] .customer-header-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; }
[data-sr-header-cta] { flex:0 0 auto; margin:0!important; }
[data-sr-header] .button, [data-sr-header] .header-cta { min-height:40px; padding:8px 16px; gap:8px; }
[data-sr-menu-trigger] { display:none!important; }
[data-sr-header][data-navigation-alignment=left] [data-sr-navigation] { justify-content:flex-start; }
[data-sr-header][data-navigation-alignment=center] [data-sr-navigation] { justify-content:center; }
[data-sr-header][data-sr-compact=true] [data-sr-header-row], [data-sr-header-row][data-sr-compact=true] { min-height:64px; height:auto; padding-block:8px; gap:12px!important; }
[data-sr-header][data-sr-compact=true] [data-sr-brand] { margin-right:auto; }
[data-sr-header][data-sr-compact=true] [data-sr-menu-trigger] { display:inline-flex!important; flex:0 0 44px; width:44px; height:44px; min-height:44px; align-items:center; justify-content:center; padding:0; border:1px solid currentColor; border-radius:8px; background:transparent; color:inherit; margin-left:auto; }
[data-sr-menu-trigger] svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2; }
[data-sr-header][data-sr-compact=true] [data-sr-navigation] { position:absolute!important; inset:100% 0 auto!important; width:auto!important; max-height:var(--sr-menu-space,calc(100dvh - 80px)); overflow:auto; overscroll-behavior:contain; box-sizing:border-box; display:none!important; flex-direction:column!important; align-items:stretch!important; justify-content:flex-start!important; gap:8px!important; padding:16px max(16px,env(safe-area-inset-right)) 16px max(16px,env(safe-area-inset-left))!important; background:var(--sr-header-surface,#fff)!important; color:var(--sr-menu-ink,inherit); border-bottom:1px solid currentColor; box-shadow:0 8px 16px #0001; }
[data-sr-header][data-sr-compact=true][data-sr-menu-open=true] [data-sr-navigation] { display:flex!important; }
[data-sr-header][data-sr-compact=true] [data-sr-navigation] > a { display:flex; align-items:center; min-height:44px; padding:8px 12px; box-sizing:border-box; white-space:normal; }
[data-sr-header][data-sr-compact=true] [data-sr-navigation] > [data-customer-menu] { padding-top:8px; border-top:1px solid color-mix(in srgb,currentColor 20%,transparent); }
[data-sr-header][data-sr-compact=true] [data-sr-navigation] [data-customer-menu] > a { min-height:44px; }
[data-sr-header][data-sr-compact=true] [data-sr-header-cta] { display:none!important; }
[data-sr-header][data-sr-compact=true] [data-sr-navigation] [data-sr-header-cta] { display:flex!important; min-height:44px; width:auto; justify-content:center; }
[data-sr-header] :focus-visible { outline:2px solid currentColor; outline-offset:3px; }
[data-sr-header] [data-sr-readable-ink] { color:var(--sr-control-ink)!important; border-color:currentColor!important; }
html.sr-site-menu-open { overflow:hidden; }
@media (max-width:600px) { [data-sr-header-row] { padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right))!important; } }

/* Responsive safety must not replace a template's button geometry. */
[data-sr-website] .button { box-sizing:border-box; max-width:100%; }
@media (max-width:600px) {
  [data-sr-website] .button { min-height:44px; max-width:100%; }
  [data-sr-website] .hero h1 { font-size:clamp(36px,calc(24px + 5vw),56px); overflow-wrap:anywhere; }
}

[data-sr-header] [data-customer-menu]:empty { display:flex; min-height:40px; }
[data-sr-menu-trigger] { font-size:0!important; }
[data-sr-menu-trigger] > * { display:none!important; }
[data-sr-menu-trigger]::before { content:'☰'; font:24px/1 sans-serif; }
[data-sr-header][data-sr-menu-open=true] [data-sr-menu-trigger]::before { content:'×'; font-size:28px; }
[data-sr-header][data-sr-compact=true] [data-sr-navigation] > [data-customer-menu] { align-self:stretch; width:100%; }

[data-sr-header][data-sr-compact=true] [data-sr-navigation] a:not(.button) { color:inherit; }

[data-sr-header] [hidden]:not([data-sr-navigation]) { display:none!important; }
[data-sr-brand] .brand-mark, [data-sr-brand] .brand-logo, [data-sr-brand] > img, [data-sr-brand] > svg { flex-shrink:0; white-space:nowrap; overflow-wrap:normal; }
/* Stacked monograms retain their template scale so the initials fit the circle. */
[data-sr-brand].wordmark .brand-mark:not(:has(> span)) { font-size:32px; }
[data-sr-brand] > span:not(.brand-mark) { min-width:0; }
[data-sr-header][data-sr-compact=true] [data-sr-brand] { line-height:1.15; }
@media (max-width:360px) { [data-sr-header][data-sr-compact=true] [data-sr-brand] > span:has(> small) { font-size:16px; line-height:1.15; } }

/* Use the header theme for Account choices in either navigation layout. */
[data-sr-header] [data-customer-menu] [role=menu] { box-sizing:border-box; background:var(--sr-header-surface,#fff); color:inherit; border:1px solid currentColor; border-radius:0; padding:0; box-shadow:none; }
[data-sr-header] [data-customer-menu] [role=menuitem] { min-height:44px; box-sizing:border-box; padding:8px 12px; }
[data-sr-header] [data-customer-menu] [role=menuitem]:is(:hover,:focus-visible) { background:color-mix(in srgb,currentColor 8%,transparent); }

/* Keep the customer submenu inside the mobile menu's scrolling surface. */
[data-sr-header][data-sr-compact=true] [data-customer-menu] { flex-direction:column; align-items:stretch; gap:8px; }
[data-sr-header][data-sr-compact=true] [data-customer-menu] .customer-account-entry { justify-content:flex-start; width:100%; }
[data-sr-header][data-sr-compact=true] [data-customer-menu] [role=menu] { position:static; inset:auto; width:100%; background:transparent; border:0; }

/* Fill short pages while keeping the footer in normal document flow. */
:is(body, body div):has(> main ~ footer),
body main:has(> footer:last-child) {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-block-size: 100vh;
  min-block-size: 100dvh;
}

:is(body, body div):has(> main ~ footer) > footer,
:is(body, body div):has(> main ~ footer.site-footer) > footer.site-footer,
body main > footer:last-child {
  margin-block-start: auto;
}

/* Booking templates expose one destination, with the same label at every width. */
[data-sr-header] [data-sr-booking-duplicate],
[data-sr-header][data-sr-compact=false] [data-sr-booking-action=mobile],
[data-sr-header][data-sr-compact=true] [data-sr-booking-action=desktop] { display:none!important; }
[data-sr-header][data-sr-compact=true] [data-sr-booking-action=mobile] { display:flex!important; justify-content:flex-start; color:var(--sr-booking-accent)!important; background:transparent; border:0; border-radius:8px; box-shadow:none; text-decoration:none; font-weight:500; }
[data-sr-header][data-sr-compact=true] [data-sr-booking-action=mobile]:is(:hover,:focus-visible) { background:color-mix(in srgb,var(--sr-booking-accent) 8%,transparent); }

/* Hide legacy cart text before the adapter runs, including delayed hydration
   and framework remounts. The shared control is explicitly excluded. */
:is(header, [role=banner], main > nav) :is(a[href="/cart"], .cart-access, #open-cart, [data-cart-toggle]):not([data-sr-cart]) { display:none!important; }

/* One Petal & Stem shopping-bag control across cart-enabled headers. */
[data-sr-header] [data-sr-cart-source] { display:none!important; }
[data-sr-header] [data-sr-cart] {
  position:relative;
  display:inline-grid!important;
  place-items:center;
  flex:0 0 44px;
  inline-size:44px;
  block-size:44px;
  min-height:44px;
  box-sizing:border-box;
  padding:0!important;
  margin:0;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:inherit;
  text-decoration:none!important;
  cursor:pointer;
}
[data-sr-header] [data-sr-cart][aria-current=page] { border-color:color-mix(in srgb,currentColor 20%,transparent); }
[data-sr-header] [data-sr-cart] svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; }
[data-sr-header] [data-sr-cart] [data-sr-cart-count] {
  position:absolute;
  inset-block-start:1px;
  inset-inline-end:1px;
  min-inline-size:16px;
  height:16px;
  padding-inline:2px;
  border-radius:999px;
  background:var(--color-primary,var(--color-ink,#24392f));
  color:#fff;
  font:700 10px/16px sans-serif;
  text-align:center;
  letter-spacing:normal;
}
[data-sr-header] [data-sr-cart][hidden], [data-sr-header] [data-sr-cart-count][hidden] { display:none!important; }
[data-sr-header][data-sr-compact=true] [data-sr-cart] + [data-sr-menu-trigger] { margin-left:0; }

/* Keep navigation still while the account session resolves. */
[data-sr-header][data-sr-compact=false] [data-customer-menu] { min-inline-size:112px; justify-content:flex-end; }

[data-sr-header][data-sr-compact=false] [data-sr-mobile-cta] { display:none!important; }

/* Anchor destinations clear the measured sticky header, including large logos. */
html[data-sr-website] { scroll-padding-top:var(--sr-sticky-header-height,0px); }

/* Long owner names must not widen the footer's grid tracks on phones. */
footer > * { min-width:0; }
footer .wordmark { max-width:100%; white-space:normal; overflow-wrap:anywhere; }

/* Account controls may mount after the header; text must still fit its lane. */
[data-sr-header][data-sr-compact=true] [data-sr-brand] > span:not(.brand-mark) {
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
}
