/* ADT ownership: header mini-cart layout and visual adaptation only. */
/* The legacy theme uses an 18px root size, so rem values render oversized here. */
header #header-content .adt-mini-cart__menu-item {
  position: relative;
}

header #header-content .adt-mini-cart__trigger {
  display: inline-flex;
  align-items: center;
  column-gap: 6px;
  text-decoration: none;
  position: relative;
}

header #header-content .adt-mini-cart__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 0;
  padding: 0 6px;
  background-color: #0f3315;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  font-weight: 700;
}

header #header-content .bottom .adt-mini-cart__menu-item--bottom .adt-mini-cart__trigger {
  text-transform: uppercase;
}

header #header-content .adt-mini-cart__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 360px;
  max-width: min(360px, 92vw);
  background: #fff;
  border: 1px solid #bfbfbf;
  box-shadow: none;
  border-radius: 0;
  display: none;
  z-index: 100;
  font-size: 16px;
}

header #header-content .adt-mini-cart__panel:not([hidden]) {
  display: block;
}

header #header-content .adt-mini-cart__panel-inner {
  padding: 16px;
}

header #header-content .adt-mini-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

header #header-content .adt-mini-cart__title {
  margin: 0;
  color: #101812;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.33;
  text-transform: none;
}

header #header-content .adt-mini-cart__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #101812;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

header #header-content .adt-mini-cart__close:hover {
  background: #e7eee9;
  color: #0f3315;
}

header #header-content .adt-mini-cart__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart {
  display: block;
  margin: 0;
  padding: 0;
  max-height: 360px;
  overflow-y: auto;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart li:before,
header #header-content .adt-mini-cart__panel .woocommerce-mini-cart li:after,
header #header-content .adt-mini-cart__panel .woocommerce-mini-cart-item:before,
header #header-content .adt-mini-cart__panel .woocommerce-mini-cart-item:after {
  content: none;
  display: none;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart-item {
  position: relative;
  display: block;
  height: auto !important;
  list-style: none;
  margin: 0;
  padding: 12px 52px 12px 0;
  border-bottom: 1px solid #bfbfbf;
  min-height: 84px;
}

header #header-content .adt-mini-cart__panel a::after {
  content: none !important;
  display: none !important;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart-item:last-child {
  border-bottom: 0;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart-item > a:not(.remove) {
  display: block;
  padding-left: 78px;
  margin: 0;
  color: #101812;
  text-decoration: none;
  line-height: 1.4;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart-item > a:not(.remove):hover {
  color: #0f3315;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart-item img {
  position: absolute;
  top: 12px;
  left: 0;
  width: 68px;
  height: 68px;
  border-radius: 0;
  object-fit: cover;
  margin: 0;
  float: none;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart-item .quantity {
  display: block;
  margin: 2px 0 0 78px;
  color: #262626;
  font-size: 14px;
  line-height: 1.3;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart-item .remove {
  position: absolute;
  top: 12px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 0;
  color: #262626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 20px;
  text-decoration: none;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart-item .remove:hover {
  background: #f9fbf9;
  color: #bc221f;
}

header #header-content .adt-mini-cart__trigger:focus-visible,
header #header-content .adt-mini-cart__close:focus-visible,
header #header-content .adt-mini-cart__panel a:focus-visible {
  outline: 3px solid #0f3315;
  outline-offset: 3px;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart__total {
  margin: 12px 0 8px;
  padding-top: 10px;
  border-top: 1px solid #bfbfbf;
  font-size: 16px;
  line-height: 1.35;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart__buttons {
  margin: 0;
  display: flex;
  gap: 8px;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart__buttons .button {
  flex: 1 1 0;
  margin: 0;
  min-height: 48px;
  border-radius: 0;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart__buttons .button.wc-forward {
  background: #fff;
  border-color: #0f3315;
  color: #0f3315;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart__buttons .button.wc-forward:hover {
  background: #f9fbf9;
  color: #183b21;
  border-color: #183b21;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart__buttons .button.checkout {
  background: #31aa47;
  border-color: #31aa47;
  /* Keep the checkout CTA text high-contrast against its filled brand background. */
  color: #fff;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart__buttons .button.checkout:hover {
  background: #0f3315;
  border-color: #0f3315;
  color: #fff;
}

header #header-content .adt-mini-cart__panel .woocommerce-mini-cart__empty-message {
  margin: 0;
  font-size: 16px;
  color: #262626;
}

@media screen and (max-width: 960px) {
  header #header-content .bottom .adt-mini-cart__menu-item--bottom .adt-mini-cart__trigger:after {
    display: none;
  }

  header #header-content .adt-mini-cart__panel {
    position: fixed;
    top: 68px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    margin: 0;
  }

  header #header-content .adt-mini-cart__panel .woocommerce-mini-cart {
    max-height: min(360px, calc(100dvh - 260px));
  }
}
