/* CLG cart and slide-out basket. Uses the saved Joomla theme's colors. */
body.clg-professional.clg-concept :is(.easystore-cart,.easystore-drawer) {
 --easystore-body-color:var(--clg-text); --easystore-text-default:var(--clg-text);
 --easystore-text-neutral:var(--clg-muted); --easystore-secondary-color:var(--clg-muted);
 --easystore-muted-color:var(--clg-muted); --easystore-border-color:var(--clg-border);
 --easystore-bg-surface:var(--clg-raised); --easystore-primary-color:var(--clg-active);
 --easystore-border-radius:var(--clg-radius,6px);
 color:var(--clg-text); color-scheme:dark;
}
body.clg-professional.clg-concept :is(#center .easystore-cart,.easystore-drawer) :is(h2,h3,h4,.easystore-cart-item-title,.easystore-cart-item-subtotal,.easystore-price,.easystore-price-current,.easystore-metadata-value,.easystore-block-label) { color:var(--clg-text); }
body.clg-professional.clg-concept :is(#center .easystore-cart,.easystore-drawer) :is(.text-muted,.easystore-metadata-key,.easystore-price-with-tax,.easystore-price-original,.cart-subtitle) { color:var(--clg-muted)!important; }
body.clg-professional.clg-concept :is(#center .easystore-cart,.easystore-drawer) a:not(.btn) { color:var(--clg-accent); text-underline-offset:3px; }
body.clg-professional.clg-concept :is(#center .easystore-cart,.easystore-drawer) a:not(.btn):hover { color:var(--clg-text); }
body.clg-professional.clg-concept #center .easystore-cart-table { border-collapse:separate; border-spacing:0; border:1px solid var(--clg-border); border-radius:var(--clg-radius,6px); background:var(--clg-panel); color:var(--clg-text); }
body.clg-professional.clg-concept #center .easystore-cart-table thead tr { background:var(--clg-raised); color:var(--clg-text); }
body.clg-professional.clg-concept #center .easystore-cart-table :is(th,td) { border-color:var(--clg-border); color:var(--clg-text); padding:16px 12px; vertical-align:top; }
body.clg-professional.clg-concept #center .easystore-cart-table th { font-size:12px; letter-spacing:.04em; }
body.clg-professional.clg-concept #center .easystore-cart-item-title { font-size:16px; line-height:1.5; overflow-wrap:anywhere; margin:0 0 8px; }
body.clg-professional.clg-concept .easystore-cart-item-thumbnail :is(img,video) { display:block; width:80px; height:80px; object-fit:contain; background:var(--clg-raised); border:1px solid var(--clg-border); border-radius:var(--clg-radius,6px); }
body.clg-professional.clg-concept #center .easystore-cart-summary { background:var(--clg-raised); color:var(--clg-text); padding:24px; border:1px solid var(--clg-border); border-top:3px solid var(--clg-trim,var(--clg-accent)); border-radius:var(--clg-radius,6px); line-height:1.65; }
body.clg-professional.clg-concept #center .easystore-cart>.row>.col-lg-4 { width:100%; max-width:420px; }
body.clg-professional.clg-concept :is(#center .easystore-cart,.easystore-drawer) .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 16px; background:var(--clg-active); color:var(--clg-on-accent); border:1px solid var(--clg-active); border-radius:var(--clg-radius,6px); font:600 14px/1.4 Arial,Helvetica,sans-serif; text-decoration:none; white-space:normal; box-shadow:none!important; text-shadow:none; }
body.clg-professional.clg-concept :is(#center .easystore-cart,.easystore-drawer) .btn:hover { background:var(--clg-hover); color:var(--clg-on-hover); border-color:var(--clg-hover); }
body.clg-professional.clg-concept :is(#center .easystore-cart,.easystore-drawer) :is(.btn-link,.btn-outline-primary,.easystore-cart-clear,.easystore-cart-visit) { background:var(--clg-panel); color:var(--clg-text); border-color:var(--clg-border); }
body.clg-professional.clg-concept #center .easystore-cart-summary .btn { width:100%; margin-top:10px; }
body.clg-professional.clg-concept :is(#center .easystore-cart,.easystore-drawer) .easystore-quantity-selector { flex-wrap:nowrap; width:116px; max-width:100%; }
body.clg-professional.clg-concept :is(#center .easystore-cart,.easystore-drawer) .easystore-quantity-selector .form-control { width:116px; min-height:44px; box-sizing:border-box; padding:9px 34px; background:var(--clg-input); color:var(--clg-text); border:1px solid var(--clg-border); border-radius:var(--clg-radius,6px); text-align:center; font-size:15px; line-height:24px; box-shadow:none; }
body.clg-professional.clg-concept :is(#center .easystore-cart,.easystore-drawer) .easystore-quantity-selector-btn { color:var(--clg-text); background:transparent; border:0; font-size:20px; width:32px; min-height:44px; }
body.clg-professional.clg-concept :is(#center .easystore-cart,.easystore-drawer) .easystore-quantity-selector-btn:disabled { color:var(--clg-muted); opacity:.65; cursor:not-allowed; }
body.clg-professional.clg-concept :is(#center .easystore-cart,.easystore-drawer) :is(button,a,input):focus-visible { outline:3px solid var(--clg-focus,var(--clg-accent)); outline-offset:3px; }
body.clg-professional.clg-concept :is(#center .easystore-cart,.easystore-drawer) .cart-item-message { position:static; transform:none; background:var(--clg-raised); color:var(--clg-text); border:1px solid var(--clg-border); padding:10px 12px; box-shadow:none; font-size:13px; }
body.clg-professional.clg-concept #center .easystore-cart-remove-item { padding:7px 0 0; font-size:13px; }
body.clg-professional.clg-concept #center .easystore-empty-cart { padding:38px 20px; border:1px solid var(--clg-border); border-radius:var(--clg-radius,6px); background:var(--clg-raised); color:var(--clg-text); }
/* The basket is attached outside #center, so it needs its own complete scope. */
body.clg-professional.clg-concept .easystore-drawer { background:var(--clg-panel); color:var(--clg-text); width:480px; max-width:100%; height:100dvh; border-left:1px solid var(--clg-border); box-shadow:-16px 0 50px #0006; }
body.clg-professional.clg-concept .easystore-drawer-header { padding:16px 20px; background:var(--clg-raised); color:var(--clg-text); border-bottom:2px solid var(--clg-trim,var(--clg-accent)); font-size:20px; flex-shrink:0; }
body.clg-professional.clg-concept .easystore-drawer-close-button { color:var(--clg-text); background:transparent; border:1px solid var(--clg-border); border-radius:var(--clg-radius,6px); width:44px; height:44px; line-height:1; font-size:28px; }
body.clg-professional.clg-concept .easystore-drawer-content { min-height:0; background:var(--clg-panel); color:var(--clg-text); overscroll-behavior:contain; }
body.clg-professional.clg-concept .easystore-mini-cart-item { padding:20px; border-color:var(--clg-border); gap:16px; }
body.clg-professional.clg-concept .easystore-mini-cart-item-data { min-width:0; }
body.clg-professional.clg-concept .easystore-drawer .easystore-cart-item-title { color:var(--clg-text); padding-right:44px; overflow-wrap:anywhere; font-size:15px; line-height:1.5; }
body.clg-professional.clg-concept .easystore-cart-empty-state svg { max-width:100%; height:auto; }
body.clg-professional.clg-concept .easystore-mini-cart-item-thumbnail-wrapper { background:var(--clg-raised); border:1px solid var(--clg-border); align-self:flex-start; }
body.clg-professional.clg-concept .easystore-min-cart-thumbnail { object-fit:contain; }
body.clg-professional.clg-concept .easystore-mini-cart-quantity-price { flex-wrap:wrap; align-items:center; gap:12px; margin-top:12px; }
body.clg-professional.clg-concept .easystore-drawer .easystore-remove-cart-item { color:var(--clg-muted); background:var(--clg-panel); border:1px solid var(--clg-border); border-radius:4px; padding:4px; }
body.clg-professional.clg-concept .easystore-drawer .easystore-drawer-footer { display:flex; flex-wrap:wrap; padding:16px 20px max(16px,env(safe-area-inset-bottom)); gap:10px; border-top:1px solid var(--clg-border); background:var(--clg-raised); flex-shrink:0; }
body.clg-professional.clg-concept .easystore-drawer-footer .btn { flex:1 1 120px; }
body.clg-professional.clg-concept .easystore-drawer-footer .easystore-cart-checkout { flex-basis:100%; }
@media(max-width:991.98px) {
 body.clg-professional.clg-concept #center .easystore-cart-item { grid-template-columns:76px minmax(0,1fr); grid-template-rows:auto auto auto; padding:14px; gap:10px 14px; }
 body.clg-professional.clg-concept #center .easystore-cart-item td { padding:0; min-width:0; }
 body.clg-professional.clg-concept #center .easystore-cart-item-thumbnail { grid-column:1; grid-row:1/4; width:76px; }
 body.clg-professional.clg-concept .easystore-cart-item-thumbnail :is(img,video) { width:72px; height:72px; }
 body.clg-professional.clg-concept #center .easystore-cart-item-info { grid-column:2; grid-row:1; }
 body.clg-professional.clg-concept #center .easystore-cart-item-price { grid-column:2; grid-row:2; justify-content:flex-start; }
 body.clg-professional.clg-concept #center .easystore-cart-item-quantity { grid-column:2; grid-row:3; }
 body.clg-professional.clg-concept #center .easystore-cart-summary { padding:20px; }
}
@media(max-width:380px) {
 body.clg-professional.clg-concept .easystore-mini-cart-item { padding:16px; gap:12px; }
 body.clg-professional.clg-concept .easystore-mini-cart-item-thumbnail-wrapper { width:60px; }
}
