/* Cart feedback stays within the drawer; native validation notices are untouched. */
.woocommerce-message:has(.bahceye-cart-confirmation) {
  background: transparent;
  border: 0;
  padding: 10px 0;
  margin-bottom: 16px;
  font-size: 14px;
}
.woocommerce-message:has(.bahceye-cart-confirmation) a {
  margin-left: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#cart-panel {
  width: min(440px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: #fff;
}
#cart-panel[open] { display: flex; flex-direction: column; }
#cart-panel .dialog-heading {
  flex: 0 0 auto;
  padding: 20px 24px;
  gap: 12px;
}
#cart-panel .dialog-heading h2 { font-size: 24px; font-weight: 500; }
#cart-panel .dialog-heading [data-close] { min-width: 44px; min-height: 44px; }
#cart-panel .widget_shopping_cart_content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0 24px;
}
#cart-panel .woocommerce-mini-cart {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  margin: 0;
}
#cart-panel .woocommerce-mini-cart-item {
  min-height: 142px;
  padding: 24px 44px 24px 110px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}
#cart-panel .woocommerce-mini-cart-item > a:not(.remove) { line-height: 1.5; }
#cart-panel .woocommerce-mini-cart-item img {
  top: 20px;
  width: 94px;
  height: 102px;
  object-fit: contain;
  background: #fff;
}
#cart-panel .woocommerce-mini-cart-item .remove {
  top: 16px;
  right: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 22px;
}
#cart-panel .woocommerce-mini-cart-item .quantity { margin-top: 12px; font-size: 14px; }
#cart-panel .woocommerce-mini-cart__total {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  padding: 20px 0 16px;
  margin: 0;
  font-size: 17px;
}
#cart-panel .woocommerce-mini-cart__buttons { flex: 0 0 auto; margin: 0; gap: 8px; }
#cart-panel .woocommerce-mini-cart__buttons .button { min-height: 46px; font-size: 14px; }
#cart-panel .woocommerce-mini-cart__buttons .checkout { order: -1; }
#cart-panel .continue-shopping {
  flex: 0 0 auto;
  align-self: center;
  width: auto;
  margin: 16px 24px max(20px, env(safe-area-inset-bottom));
  font-size: 13px;
}
#cart-panel .woocommerce-mini-cart__empty-message { margin: 48px 0; font-size: 15px; }
@media (max-width: 480px) {
  #cart-panel .dialog-heading { padding: 14px 18px; }
  #cart-panel .widget_shopping_cart_content { padding: 0 18px; }
  #cart-panel .woocommerce-mini-cart-item { padding-left: 100px; }
  #cart-panel .woocommerce-mini-cart-item img { width: 84px; }
}
