/* Waterlily My Account dropdown: click-driven, always legible; applied after legacy CSS. */
.wlb-acct { position: relative !important; isolation: isolate; }
.wlb-hdr-actions .wlb-acct > button[data-acct-toggle] {
  appearance: none; border: 0; background: transparent; color: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; font: inherit; padding: 8px 10px;
}
.wlb-hdr-actions .wlb-acct > button[data-acct-toggle] svg { width: 22px; height: 22px; }
.wlb-acct-menu[hidden], .wlb-acct:not(.wlb-acct-open) > .wlb-acct-menu { display: none !important; }
.wlb-acct.wlb-acct-open { z-index: 10005 !important; }
.wlb-acct.wlb-acct-open > .wlb-acct-menu {
  display: block !important; position: absolute !important;
  top: calc(100% + 4px) !important; right: 0 !important;
  z-index: 10006 !important; width: min(290px, calc(100vw - 24px)) !important;
  max-height: min(70vh, 560px); overflow-y: auto;
  background: #FFF8F0 !important; color: #3E010E !important;
  border: 1px solid #dacbc5 !important; border-radius: 10px !important;
  box-shadow: 0 14px 34px rgba(37, 0, 9, .23) !important;
  visibility: visible !important; opacity: 1 !important;
  transform: none !important; pointer-events: auto !important;
}
.wlb-acct-menu .wlb-acct-head,
.wlb-acct-menu .wlb-acct-head strong { color: #3E010E !important; }
.wlb-acct-menu .wlb-acct-head span { color: #624850 !important; }
.wlb-hdr-actions .wlb-acct-menu a,
.wlb-hdr-actions .wlb-acct-menu a:visited,
.wlb-hdr-actions .wlb-acct-menu button[role="menuitem"] {
  display: block !important; width: 100% !important;
  color: #3E010E !important; background: transparent !important;
  opacity: 1 !important; visibility: visible !important;
  text-decoration: none !important; text-align: left !important;
  font-weight: 600 !important; font-size: 14px !important;
  line-height: 1.45 !important; padding: 10px 16px !important;
  text-shadow: none !important; -webkit-text-fill-color: #3E010E !important;
}
.wlb-hdr-actions .wlb-acct-menu a:hover,
.wlb-hdr-actions .wlb-acct-menu a:focus-visible,
.wlb-hdr-actions .wlb-acct-menu button[role="menuitem"]:hover,
.wlb-hdr-actions .wlb-acct-menu button[role="menuitem"]:focus-visible {
  color: #3E010E !important; -webkit-text-fill-color: #3E010E !important;
  background: #f0e1db !important; outline-offset: -2px;
}
/* Do not let clipping or legacy header stacking conceal the open menu. */
.wl36-header:has(.wlb-acct-open),
.wl50-header:has(.wlb-acct-open),
.wl36-header-row:has(.wlb-acct-open),
.wl50-header-grid:has(.wlb-acct-open),
.wl50-actions:has(.wlb-acct-open) { overflow: visible !important; z-index: 10004 !important; }
@media (max-width: 767px) {
  .wlb-acct.wlb-acct-open > .wlb-acct-menu { right: -6px !important; }
}

/* Final header contrast: both homepage and inner page header variants. */
body :is(.wl50-header,.wl36-header) .wlb-hdr-actions .wlb-acct > button[data-acct-toggle] {
 color:#fff !important; -webkit-text-fill-color:#fff !important; background:transparent !important; border:1px solid rgba(255,255,255,.48) !important; border-radius:5px; }
body :is(.wl50-header,.wl36-header) .wlb-hdr-actions .wlb-acct > button[data-acct-toggle] span {color:#fff !important; -webkit-text-fill-color:#fff !important;}
body :is(.wl50-header,.wl36-header) .wlb-hdr-actions .wlb-acct-menu a,
body :is(.wl50-header,.wl36-header) .wlb-hdr-actions .wlb-acct-menu button[role="menuitem"] { color:#3e010e !important; -webkit-text-fill-color:#3e010e !important; visibility:visible !important; opacity:1 !important; min-height:0 !important; height:auto !important; }
body :is(.wl50-header,.wl36-header) .wlb-acct-menu a:hover {background:#f0e1db !important;}
@media (min-width:1024px) {
 body .wl36-header .wl36-nav {display:flex !important; flex-wrap:wrap; justify-content:center; align-items:center; gap:clamp(12px,2vw,26px);}
 body .wl36-header .wl36-nav > a, body .wl36-header .wl36-nav-item > a {color:#fff !important; font-weight:700;}
}
