.gx-header-cart-item[hidden], a.gx-cart-link[hidden] { display: none !important; }
.gx-header-cart-item .gx-header-cart-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; color: #5e7931;
}
.gx-header-cart-trigger svg { flex: 0 0 22px; }
.gx-header-cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box;
  border-radius: 20px; background: #f0f5e8; color: #5e7931;
  font-size: 13px; line-height: 1; font-weight: 600;
}
.gx-header-cart-count[hidden] { display: none; }
html.gx-header-cart-open { overflow: hidden; }
dialog#gx-header-cart-panel {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0 24px 24px;
  width: min(440px, 100vw); height: 100dvh; max-width: 100vw; max-height: none;
  box-sizing: border-box; border: 0; background: #fff; color: #252c25;
  box-shadow: -12px 0 45px #0002; overflow-y: auto; overscroll-behavior: contain;
  font-size: 16px; line-height: 1.6;
}
#gx-header-cart-panel::backdrop { background: #1c271d70; backdrop-filter: blur(2px); }
.gx-header-cart-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: sticky; top: 0; z-index: 2; background: #fff;
  margin: 0 -24px 24px; padding: 18px 24px; border-bottom: 1px solid #e2e6dd;
}
.gx-header-cart-heading h2 { font-size: 24px; line-height: 1.4; margin: 0; color: #252c25; }
.gx-header-cart-heading .gx-header-cart-close {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 44px; padding: 0; margin: 0;
  border: 1px solid #e2e6dd; border-radius: 4px; background: #f7f8f4;
  color: #252c25; font-size: 28px; line-height: 1; cursor: pointer;
}
#gx-header-cart-panel a:focus-visible, #gx-header-cart-panel button:focus-visible {
  outline: 2px solid #5e7931; outline-offset: 3px;
}
.gx-header-cart-content { transition: opacity .15s; }
.gx-header-cart-content[aria-busy="true"] { opacity: .6; }
.gx-header-cart-status { font-size: 14px; color: #505847; margin: 0 0 18px; }
.gx-header-cart-status:empty { display: none; }
#gx-header-cart-panel .woocommerce-mini-cart { list-style: none; padding: 0; margin: 0; }
#gx-header-cart-panel .woocommerce-mini-cart-item {
  position: relative; min-height: 76px; padding: 0 32px 20px 0;
  margin: 0 0 20px; border-bottom: 1px solid #e2e6dd; list-style: none;
}
#gx-header-cart-panel .woocommerce-mini-cart-item > a:not(.remove) {
  display: block; color: #252c25; font-size: 17px; font-weight: 600;
  line-height: 1.5; text-decoration: none; overflow-wrap: anywhere;
}
#gx-header-cart-panel .woocommerce-mini-cart-item img {
  float: left; width: 72px; height: 72px; margin: 0 14px 10px 0;
  object-fit: contain; border: 1px solid #e2e6dd; border-radius: 4px;
}
#gx-header-cart-panel .woocommerce-mini-cart-item .quantity {
  display: block; font-size: 16px; line-height: 1.6; color: #59614f; margin-top: 8px;
}
#gx-header-cart-panel .woocommerce-mini-cart-item::after { content: ""; display: block; clear: both; }
#gx-header-cart-panel .woocommerce-mini-cart-item a.remove {
  position: absolute; right: -5px; top: -5px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; margin: 0; padding: 0;
  font-size: 23px; line-height: 1; border-radius: 4px; color: #59614f !important;
  background: #f7f8f4; text-decoration: none;
}
#gx-header-cart-panel .woocommerce-mini-cart-item a.remove:hover { background: #f0f5e8; }
#gx-header-cart-panel .woocommerce-mini-cart__total {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 16px; border: 0; margin: 24px 0; padding: 0; font-size: 18px;
}
#gx-header-cart-panel .woocommerce-mini-cart__total .amount { font-size: 22px; font-weight: 600; }
#gx-header-cart-panel .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; }
#gx-header-cart-panel .woocommerce-mini-cart__buttons a.button {
  display: flex; align-items: center; justify-content: center;
  width: 100%; float: none; min-height: 48px; padding: 12px 16px; margin: 0; box-sizing: border-box;
  font-size: 16px; font-weight: 600; line-height: 1.5; text-decoration: none;
  border: 1px solid #76983d; border-radius: 4px; color: #5e7931; background: #fff;
}
#gx-header-cart-panel .woocommerce-mini-cart__buttons a.checkout { color: #fff; background: #76983d; }
#gx-header-cart-panel .woocommerce-mini-cart__buttons a:hover { background: #f0f5e8; color: #5e7931; }
#gx-header-cart-panel .woocommerce-mini-cart__empty-message { font-size: 17px; margin: 0 0 24px; }
.gx-header-cart-fallback { margin: 24px 0 0; text-align: center; font-size: 15px; }
.gx-header-cart-fallback a { color: #5e7931; text-underline-offset: 3px; }
@media (max-width: 480px) {
  dialog#gx-header-cart-panel { padding-left: 20px; padding-right: 20px; }
  .gx-header-cart-heading { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-header-cart-content { transition: none; }
}
