/* Lino & Cotton v0.2.15 — only the Astra storefront header.
   Scoped carefully: never style Jetpack verification, WP admin or dashboard. */
#masthead .lch-hdr-account-link,
.site-header .lch-hdr-account-link {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 78px !important;
  min-height: 58px !important;
  padding: 4px 6px !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  color: #17452e !important;
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
}
#masthead .lch-hdr-account-link > :not(.lch-hdr-account-ui),
.site-header .lch-hdr-account-link > :not(.lch-hdr-account-ui) {
  display: none !important;
}
#masthead .lch-hdr-account-ui,
.site-header .lch-hdr-account-ui {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center;
  align-items: center;
  gap: 2px;
  color: #17452e !important;
  text-align: center;
  max-width: 110px;
}
#masthead .lch-hdr-account-icon,
.site-header .lch-hdr-account-icon {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  color: #17683b !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  flex-shrink: 0;
}
#masthead .lch-hdr-account-label,
.site-header .lch-hdr-account-label {
  display: block !important;
  max-width: 110px;
  font: 600 11px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif !important;
  color: #194732 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  letter-spacing: 0;
}
#masthead .lch-hdr-account-link:hover .lch-hdr-account-label,
#masthead .lch-hdr-account-link:focus-visible .lch-hdr-account-label,
.site-header .lch-hdr-account-link:hover .lch-hdr-account-label {
  color: #b22e35 !important;
  text-decoration: underline;
}
#masthead .lch-hdr-account-link:focus-visible,
.site-header .lch-hdr-account-link:focus-visible,
.site-header .ast-site-header-cart a.cart-container:focus-visible {
  outline: 2px solid #17683b !important;
  outline-offset: 3px;
  border-radius: 8px;
}
#masthead .lch-hdr-fallback-account,
.site-header .lch-hdr-fallback-account { margin-inline-start: 8px; flex-shrink: 0; }
#masthead .ast-header-account-wrap,
.site-header .ast-header-account-wrap { overflow: visible !important; }
@media (max-width: 921px) {
  #masthead .lch-hdr-account-link,
  .site-header .lch-hdr-account-link { min-width: 58px !important; padding-inline: 2px !important; }
  #masthead .lch-hdr-account-label,
  .site-header .lch-hdr-account-label { max-width: 76px; font-size: 9px !important; }
  #masthead .lch-hdr-account-icon,
  .site-header .lch-hdr-account-icon { width: 25px !important; height: 25px !important; }
  #masthead .lch-hdr-cart-link,
  .site-header .lch-hdr-cart-link { min-width: 38px !important; }
}


/* v0.2.15 stable cart fix: draw ONE icon on the native Astra cart component.
 * Never insert a second <svg>, an extra link, or a synthetic count.
 * Astra updates/replaces its markup on some pages (including translations);
 * CSS persists on the newly rendered native wrapper. */
#masthead .ast-site-header-cart a.cart-container,
.site-header .ast-site-header-cart a.cart-container,
#masthead .ast-header-woo-cart a.cart-container,
.site-header .ast-header-woo-cart a.cart-container {
  position: relative;
  color: #17683b !important;
  text-decoration: none;
  opacity: 1;
  visibility: visible;
}

/* The native .ast-cart-menu-wrap exists even when Astra draws its icon only
 * through :before/:after. Use the wrapper as the ONE visible icon surface. */
#masthead .ast-site-header-cart a.cart-container .ast-cart-menu-wrap,
.site-header .ast-site-header-cart a.cart-container .ast-cart-menu-wrap,
#masthead .ast-header-woo-cart a.cart-container .ast-cart-menu-wrap,
.site-header .ast-header-woo-cart a.cart-container .ast-cart-menu-wrap {
  display: inline-flex !important;
  box-sizing: border-box !important;
  position: relative !important;
  width: 39px !important;
  min-width: 39px !important;
  height: 42px !important;
  min-height: 42px !important;
  align-items: center;
  justify-content: center;
  color: #17683b !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: 0 !important;
  line-height: 1 !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%2317683b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1.5 2.5H4l2.8 13.4a2 2 0 0 0 2 1.6H20l2-10H5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 29px 29px !important;
}
/* Hide only Astra's glyph(s); keep the native count and its AJAX fragment. */
#masthead .ast-site-header-cart .ast-cart-menu-wrap::before,
#masthead .ast-site-header-cart .ast-cart-menu-wrap::after,
.site-header .ast-site-header-cart .ast-cart-menu-wrap::before,
.site-header .ast-site-header-cart .ast-cart-menu-wrap::after,
#masthead .ast-site-header-cart .ast-cart-menu-wrap .count::before,
#masthead .ast-site-header-cart .ast-cart-menu-wrap .count::after,
.site-header .ast-site-header-cart .ast-cart-menu-wrap .count::before,
.site-header .ast-site-header-cart .ast-cart-menu-wrap .count::after {
  content: none !important;
  display: none !important;
}
#masthead .ast-site-header-cart .ast-cart-menu-wrap > svg,
#masthead .ast-site-header-cart .ast-cart-menu-wrap > i.astra-icon,
.site-header .ast-site-header-cart .ast-cart-menu-wrap > svg,
.site-header .ast-site-header-cart .ast-cart-menu-wrap > i.astra-icon {
  display: none !important;
}
#masthead .ast-site-header-cart .ast-cart-menu-wrap .count,
.site-header .ast-site-header-cart .ast-cart-menu-wrap .count {
  position: absolute !important;
  z-index: 2 !important;
  top: -4px !important;
  right: -5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 3px !important;
  border: 1px solid white !important;
  border-radius: 12px !important;
  background: #173a2e !important;
  color: white !important;
  font: 700 11px/1 system-ui,sans-serif !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: none !important;
  pointer-events: none;
}
/* Some Astra Header Builder settings use an addon cart icon instead of
 * .ast-cart-menu-wrap. Style its native icon in place; do not add new DOM. */
#masthead .ast-site-header-cart a.cart-container .ast-addon-cart-wrap i.astra-icon,
.site-header .ast-site-header-cart a.cart-container .ast-addon-cart-wrap i.astra-icon {
  display: inline-block !important;
  position: relative;
  width: 38px !important;
  height: 42px !important;
  color: transparent !important;
  font-size: 0 !important;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%2317683b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1.5 2.5H4l2.8 13.4a2 2 0 0 0 2 1.6H20l2-10H5'/%3E%3C/svg%3E") center / 29px 29px no-repeat !important;
}
#masthead .ast-site-header-cart .ast-addon-cart-wrap i.astra-icon > svg,
.site-header .ast-site-header-cart .ast-addon-cart-wrap i.astra-icon > svg {
  display: none !important;
}
#masthead .ast-site-header-cart .ast-addon-cart-wrap i.astra-icon::before,
.site-header .ast-site-header-cart .ast-addon-cart-wrap i.astra-icon::before {
  content: none !important;
}
/* Leave the i::after data-cart-total bubble theme-owned: it may carry the
 * true AJAX-updated count in alternative Astra Header Builder layouts. */
@media (max-width: 921px) {
  #masthead .ast-site-header-cart .cart-container .ast-cart-menu-wrap,
  .site-header .ast-site-header-cart .cart-container .ast-cart-menu-wrap {
    width: 35px !important;
    min-width: 35px !important;
    height: 39px !important;
    min-height: 39px !important;
    background-size: 26px 26px !important;
  }
}

/* 0.2.15 — own-session subtotal beside ONE native Astra Cart icon; never fabricate a price. */
#masthead .ast-site-header-cart a.cart-container,
.site-header .ast-site-header-cart a.cart-container,
#masthead .ast-header-woo-cart a.cart-container,
.site-header .ast-header-woo-cart a.cart-container { display: inline-flex !important; align-items:center !important; gap:8px; white-space:nowrap; }
#masthead .ast-site-header-cart a.cart-container .lch-hdr-cart-subtotal,
.site-header .ast-site-header-cart a.cart-container .lch-hdr-cart-subtotal,
#masthead .ast-header-woo-cart a.cart-container .lch-hdr-cart-subtotal,
.site-header .ast-header-woo-cart a.cart-container .lch-hdr-cart-subtotal { display:inline-block;flex:none;position:static;max-width:none;color:#25332c !important;font:700 17px/1.25 system-ui,sans-serif !important;white-space:nowrap;direction:ltr;letter-spacing:0;opacity:1;visibility:visible; }
#masthead .lch-hdr-cart-subtotal[hidden], .site-header .lch-hdr-cart-subtotal[hidden] {display:none !important;}
#masthead .ast-woo-header-cart-info-wrap,.site-header .ast-woo-header-cart-info-wrap {display:inline-block!important;color:#25332c!important;font-weight:700!important;opacity:1!important;visibility:visible!important;}
@media(max-width:680px){#masthead .ast-site-header-cart a.cart-container .lch-hdr-cart-subtotal,.site-header .ast-site-header-cart a.cart-container .lch-hdr-cart-subtotal {font-size:13px!important;}}
