/* KLC Astra panels and quantity controls, 2026-10-29. */
body.klc-panel-open {overflow:hidden;}
dialog.klc-slide-panel {position:fixed;top:0;bottom:0;margin:0;border:0;border-radius:0;padding:0;height:100dvh;max-height:100dvh;background:#fff;color:#333;box-shadow:0 0 25px #0002;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.6;overscroll-behavior:contain;}
dialog.klc-slide-panel::backdrop {background:rgba(0,0,0,.6);}
dialog.klc-menu-panel {left:0;right:auto;width:min(300px,calc(100vw - 60px));max-width:100%;}
.klc-panel-menu {display:block!important;margin:0!important;padding:0!important;list-style:none!important;}
.klc-panel-menu li {display:block;float:none;margin:0!important;padding:0;border-bottom:1px solid #e8e8e8;}
.klc-panel-menu a {display:flex;align-items:center;min-height:50px;padding:12px 9px;color:#333;text-decoration:none;font-size:13px;font-weight:600;text-transform:uppercase;}
.klc-panel-menu a:hover,.klc-panel-menu a:focus,.klc-panel-menu .current-menu-item>a {color:#0f9393;background:#f7f9f9;}
.klc-panel-close {display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:0;border-radius:0;background:transparent;color:#333;font-size:13px;font-weight:600;cursor:pointer;}
.klc-panel-close span {font-size:24px;font-weight:400;line-height:1;}
.klc-menu-close {width:100%;justify-content:flex-end;border-bottom:1px solid #eee;}
dialog.klc-cart-panel {left:auto;right:0;width:min(340px,calc(100vw - 20px));max-width:100%;overflow-y:auto;}
.klc-panel-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 15px;border-bottom:1px solid #e8e8e8;}
.klc-panel-heading strong {font-size:17px;font-weight:600;}
#klc-cart-panel .widget_shopping_cart_content {padding:0 15px 20px;}
#klc-cart-panel .woocommerce-mini-cart {margin:0;padding:0;list-style:none;}
#klc-cart-panel .woocommerce-mini-cart-item {position:relative;display:block;min-height:115px;margin:0;padding:20px 25px 20px 80px;border-bottom:1px solid #e8e8e8;}
#klc-cart-panel .woocommerce-mini-cart-item>a:not(.remove) {display:block;color:#333;text-decoration:none;font-size:14px;font-weight:600;line-height:1.4;}
#klc-cart-panel .woocommerce-mini-cart-item img {position:absolute;left:0;top:20px;width:65px;height:65px;object-fit:contain;}
#klc-cart-panel .woocommerce-mini-cart-item a.remove {position:absolute;right:0;top:16px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:0;color:#555!important;background:transparent!important;font-size:23px;font-weight:400;}
#klc-cart-panel .woocommerce-mini-cart-item .quantity {display:block;width:auto;margin-top:8px;color:#777;font-size:13px;}
#klc-cart-panel .woocommerce-mini-cart-item .amount {color:#0f9393;font-weight:600;}
#klc-cart-panel .woocommerce-mini-cart__total {display:flex;justify-content:space-between;gap:12px;margin:20px 0;font-size:17px;color:#333;}
#klc-cart-panel .woocommerce-mini-cart__total .amount {color:#0f9393;font-weight:600;}
#klc-cart-panel .woocommerce-mini-cart__buttons {display:grid;gap:10px;margin:0;}
#klc-cart-panel .woocommerce-mini-cart__buttons a {display:flex;align-items:center;justify-content:center;min-height:42px;padding:10px 15px;border-radius:0;background:#f1f1f1;color:#333;text-decoration:none;text-transform:uppercase;font-size:13px;font-weight:600;}
#klc-cart-panel .woocommerce-mini-cart__buttons a.checkout {background:#0d1b2a;color:#fff;}
#klc-cart-panel .woocommerce-mini-cart__empty-message {padding:35px 10px;text-align:center;}
body.wp-theme-astra.woocommerce div.product form.cart div.quantity,body.wp-theme-astra.woocommerce-cart .product-quantity .quantity {display:inline-flex!important;align-items:stretch;gap:0;width:auto;padding:0;overflow:hidden;border:1px solid #ddd;}
body.wp-theme-astra .quantity .klc-qty-step {display:inline-flex;align-items:center;justify-content:center;width:24px;min-width:24px;min-height:40px;margin:0;padding:0;border:0;border-radius:0;background:#fff;color:#777;font-size:16px;font-weight:400;cursor:pointer;}
body.wp-theme-astra .quantity .klc-qty-step:hover {background:#f5f5f5;color:#0d1b2a;}
body.wp-theme-astra .quantity .klc-qty-step:disabled {color:#c6c6c6;cursor:default;}
body.wp-theme-astra .quantity input.qty {width:34px!important;min-width:34px;max-width:60px;min-height:40px!important;margin:0!important;padding:5px 2px!important;border:0!important;border-inline:1px solid #e8e8e8!important;border-radius:0!important;text-align:center;appearance:textfield;box-shadow:none!important;}
body.wp-theme-astra .quantity input.qty::-webkit-inner-spin-button,body.wp-theme-astra .quantity input.qty::-webkit-outer-spin-button {appearance:none;margin:0;}
.klc-panel-close:focus-visible,.klc-qty-step:focus-visible,.klc-panel-menu a:focus-visible {outline:2px solid #0f9393;outline-offset:-3px;}

/* Match the reference drawer width and pin totals below the item list. */
body.klc-panel-open {padding-right:var(--klc-ui-scrollbar-gap,0px);}
dialog.klc-cart-panel {width:min(300px,calc(100vw - 20px));}
dialog.klc-cart-panel[open] {display:flex;flex-direction:column;}
#klc-cart-panel .klc-panel-heading {flex:0 0 auto;min-height:65px;}
#klc-cart-panel .widget_shopping_cart_content {display:flex;flex:1;flex-direction:column;min-height:0;padding-bottom:15px;}
#klc-cart-panel .woocommerce-mini-cart {flex:1;min-height:0;overflow:auto;}
#klc-cart-panel .woocommerce-mini-cart-item img {transform:none;margin:0;}
#klc-cart-panel .woocommerce-mini-cart-item>a:not(.remove) {font-size:13px;}
#klc-cart-panel .woocommerce-mini-cart__total {flex:0 0 auto;margin:0;padding:17px 0;border-top:1px solid #e8e8e8;}
#klc-cart-panel .woocommerce-mini-cart__buttons {flex:0 0 auto;}
#klc-cart-panel button.klc-panel-close,#klc-menu-panel button.klc-panel-close {background:transparent!important;color:#333!important;}
#klc-cart-panel a.remove {border:0!important;}

/* Astra supplies its own empty-cart message and shopping link. */
#klc-cart-panel .widget_shopping_cart_content:has(.ast-mini-cart-empty) > .woocommerce-mini-cart__empty-message {display:none;}
