/* ProSupplements – cart drawer additions + regular cart page fallback (only additions beyond the prototype CSS in ps.css). */

/* ---- drawer root ---------------------------------------------------------------------------- */
#psCart.ps{container-type:normal;contain:none;min-height:0;height:0;margin:0;padding:0;border:0;background:none;overflow:visible}
#psCart[hidden]{display:none!important}
#psCart,#psCart *,#psCart *::before,#psCart *::after{box-sizing:border-box}
#psCart{font-family:var(--body,inherit);line-height:1.5}
#psCart img{max-width:100%;height:auto;display:block}
#psCart button{font-family:inherit;cursor:pointer}
#psCart .scrim{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:99970}
#psCart .drawer{position:fixed;top:0;right:0;bottom:0;width:min(440px,100%);z-index:99971;display:grid;grid-template-rows:auto auto 1fr auto;outline:0;animation:psSlide .22s ease-out;background:var(--panel,#121214);border-left:1px solid var(--line,#2a2a2e);color:var(--fg,#f3efe6)}
@media (min-width:768px){#psCart .drawer{width:min(560px,100%)}}
@keyframes psSlide{from{transform:translateX(40px);opacity:.4}to{transform:none;opacity:1}}
/* body fragment keeps the 4-row grid of the drawer */
#psCart .ps-cart-body{display:contents}
#psCart .lines{min-height:0}
#psCart .line b a,#psCart .ps-line-link{color:inherit;text-decoration:none}
#psCart .qty button:disabled{opacity:.35;cursor:not-allowed}
#psCart .btn.block{width:100%;text-decoration:none}
#psCart .empty .btn{text-decoration:none}
#psCart.is-busy .ps-cart-body{opacity:.55;pointer-events:none;transition:opacity .15s}
#psCart .prog b{color:var(--gold2,#f0cf7a)}
body.ps-cart-lock{overflow:hidden}

/* toast used by cart.js / pdp.js (same look as prototype .toast) */
.ps-toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--gold,#d6a943);color:#1a1405;font-weight:700;border-radius:999px;padding:12px 22px;z-index:99990;box-shadow:0 10px 30px rgba(0,0,0,.5);white-space:nowrap;max-width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis}

/* cart button widget */
.ps-cartbtn-widget{cursor:pointer}

/* ---- regular /kosik/ page (shortcode) ------------------------------------------------------- */
.ps-cartpage{padding-block:24px;color:var(--fg,#f3efe6)}
.ps-cartpage .woocommerce{display:grid;gap:22px}
.ps-cartpage .woocommerce-notices-wrapper{display:contents}
.ps-cartpage .woocommerce-message,.ps-cartpage .woocommerce-info,.ps-cartpage .woocommerce-error{background:var(--panel,#121214);border:1px solid var(--line,#2a2a2e);border-radius:14px;padding:14px 18px;list-style:none;margin:0;color:var(--fg,#f3efe6)}
.ps-cartpage .woocommerce-message a.button,.ps-cartpage .woocommerce-info a.button{float:right}
.ps-cartpage .woocommerce-cart-form,.ps-cartpage .cart-collaterals .cart_totals{background:var(--panel,#121214);border:1px solid var(--line,#2a2a2e);border-radius:18px;padding:18px}
.ps-cartpage table.shop_table{width:100%;border-collapse:collapse;border:0;background:none;color:inherit}
.ps-cartpage table.shop_table th{font-family:var(--display,inherit);font-size:15px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#9b9284);text-align:left;font-weight:700;border:0;border-bottom:1px solid var(--line,#2a2a2e);padding:10px 8px;background:none}
.ps-cartpage table.shop_table td{border:0;border-bottom:1px solid var(--line,#2a2a2e);padding:14px 8px;vertical-align:middle;background:none;color:inherit}
.ps-cartpage table.shop_table tr:last-child td{border-bottom:0}
.ps-cartpage td.product-thumbnail img{width:72px;height:auto}
.ps-cartpage td.product-name a{color:var(--fg,#f3efe6);font-weight:700;text-decoration:none}
.ps-cartpage td.product-name dl.variation{margin:4px 0 0;color:var(--muted,#9b9284);font-size:13.5px}
.ps-cartpage td.product-name dl.variation dt,.ps-cartpage td.product-name dl.variation dd,.ps-cartpage td.product-name dl.variation p{display:inline;margin:0}
.ps-cartpage td.product-remove a.remove{color:var(--muted,#9b9284)!important;background:none!important;border:1px solid var(--line,#2a2a2e);border-radius:50%;width:28px;height:28px;line-height:26px;text-align:center;display:inline-block;text-decoration:none;font-size:18px}
.ps-cartpage td.product-remove a.remove:hover{color:#fff!important;background:var(--red,#c0392b)!important}
.ps-cartpage .amount,.ps-cartpage td.product-price,.ps-cartpage td.product-subtotal{font-variant-numeric:tabular-nums}
.ps-cartpage .quantity .qty,.ps-cartpage input[type=text],.ps-cartpage input[type=number],.ps-cartpage input[type=email]{background:#000;border:1px solid var(--line,#2a2a2e);color:var(--fg,#f3efe6);border-radius:10px;padding:10px 12px;font-size:16px;max-width:100%}
.ps-cartpage .quantity .qty{width:72px;text-align:center;display:inline-block}
.ps-cartpage td.actions{padding-top:18px}
.ps-cartpage .coupon{display:flex;gap:8px;flex-wrap:wrap;align-items:center;float:left}
.ps-cartpage .coupon label{display:none}
.ps-cartpage button.button,.ps-cartpage a.button,.ps-cartpage input.button{background:var(--panel2,#1a1a1d);color:var(--fg,#f3efe6);border:1px solid var(--line,#2a2a2e);border-radius:10px;padding:11px 16px;font-family:var(--display,inherit);font-weight:700;font-size:16px;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;cursor:pointer;line-height:1.2}
.ps-cartpage button.button:disabled,.ps-cartpage button.button[disabled]{opacity:.5;cursor:not-allowed}
.ps-cartpage .cart-collaterals{width:100%}
.ps-cartpage .cart_totals{float:none!important;width:100%!important;max-width:520px;margin-left:auto}
.ps-cartpage .cart_totals h2{font-family:var(--display,inherit);font-size:28px;font-weight:800;margin:0 0 10px}
.ps-cartpage .cart_totals table.shop_table th{text-transform:none;letter-spacing:0;font-family:inherit;font-size:15px;color:var(--muted,#9b9284);font-weight:600}
.ps-cartpage .cart_totals .order-total th,.ps-cartpage .cart_totals .order-total td{font-size:22px;color:var(--fg,#f3efe6);font-weight:700}
.ps-cartpage .cart_totals .order-total .amount{font-family:var(--display,inherit);font-size:32px;color:var(--gold2,#f0cf7a)}
.ps-cartpage .wc-proceed-to-checkout{padding:14px 0 0}
.ps-cartpage .wc-proceed-to-checkout a.checkout-button{display:flex;align-items:center;justify-content:center;width:100%;background:linear-gradient(180deg,var(--gold2,#f0cf7a),var(--gold,#d6a943));color:#1a1405;border:0;border-radius:12px;padding:16px 26px;font-family:var(--display,inherit);font-weight:700;font-size:21px;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;box-shadow:0 10px 30px rgba(214,169,67,.25);margin:0}
.ps-cartpage .cart-empty{text-align:center;padding:40px 18px;color:var(--muted,#9b9284);font-size:18px}
.ps-cartpage .return-to-shop{text-align:center}
.ps-cartpage .return-to-shop a.button{background:linear-gradient(180deg,var(--gold2,#f0cf7a),var(--gold,#d6a943));color:#1a1405;border:0}
.ps-cartpage .cross-sells{display:none}
@media (max-width:767px){
  .ps-cartpage .woocommerce-cart-form,.ps-cartpage .cart-collaterals .cart_totals{padding:12px;border-radius:14px}
  .ps-cartpage table.shop_table_responsive thead{display:none}
  .ps-cartpage table.shop_table_responsive tr{display:block;border-bottom:1px solid var(--line,#2a2a2e);padding:8px 0}
  .ps-cartpage table.shop_table_responsive td{display:flex;justify-content:space-between;align-items:center;border:0;padding:6px 4px;text-align:right}
  .ps-cartpage table.shop_table_responsive td::before{content:attr(data-title);color:var(--muted,#9b9284);font-size:13px;text-align:left;padding-right:12px}
  .ps-cartpage table.shop_table_responsive td.product-remove::before,.ps-cartpage table.shop_table_responsive td.product-thumbnail::before,.ps-cartpage table.shop_table_responsive td.actions::before{display:none}
  .ps-cartpage .coupon{float:none;width:100%;flex-wrap:wrap}
  .ps-cartpage .coupon input{flex:1 1 100%;min-width:0;width:100%!important;box-sizing:border-box}
  .ps-cartpage .coupon button.button{flex:1 1 100%;width:100%;padding:11px 14px;font-size:15px}
  .ps-cartpage td.actions{display:block!important;padding:12px 0 0!important}
  .ps-cartpage td.actions>button.button{width:100%;margin-top:10px}
  /* položka košíka ako karta: fotka vľavo, názov, počet a suma */
  .ps-cartpage table.shop_table_responsive tr.cart_item{display:grid;grid-template-columns:72px minmax(0,1fr) auto;column-gap:12px;row-gap:8px;align-items:center;padding:12px 0}
  .ps-cartpage table.shop_table_responsive tr.cart_item td{display:block;padding:0;text-align:left!important}
  .ps-cartpage table.shop_table_responsive tr.cart_item td::before{display:none}
  .ps-cartpage table.shop_table_responsive tr.cart_item td.product-thumbnail{display:block!important;grid-column:1;grid-row:1/span 2}
  .ps-cartpage table.shop_table_responsive tr.cart_item td.product-thumbnail img{width:72px;border-radius:10px;display:block}
  .ps-cartpage table.shop_table_responsive tr.cart_item td.product-name{grid-column:2;grid-row:1}
  .ps-cartpage table.shop_table_responsive tr.cart_item td.product-remove{grid-column:3;grid-row:1;justify-self:end}
  .ps-cartpage table.shop_table_responsive tr.cart_item td.product-price{display:none}
  .ps-cartpage table.shop_table_responsive tr.cart_item td.product-quantity{grid-column:2;grid-row:2}
  .ps-cartpage table.shop_table_responsive tr.cart_item td.product-subtotal{grid-column:3;grid-row:2;text-align:right!important;font-weight:700;white-space:nowrap}
  .ps-cartpage table.shop_table_responsive tr.cart_item td.product-subtotal .tax_label{display:none}
  .ps-cartpage .cart_totals table.shop_table_responsive td{flex-wrap:wrap;gap:4px 10px}
  .ps-cartpage .cart_totals ul#shipping_method{list-style:none;margin:0;padding:0;text-align:left;width:100%;display:grid;gap:6px}
  .ps-cartpage .cart_totals tr.shipping td{display:block;text-align:left}
  .ps-cartpage .cart_totals tr.shipping td::before{display:block;margin-bottom:6px}
  .ps-cartpage .cart_totals .woocommerce-shipping-destination{font-size:13px;color:var(--muted,#9b9284);margin:6px 0 0}
}
.ps-cartpage .cart_totals .order-total .includes_tax{display:block;font-size:12px;font-weight:400;color:var(--muted,#9b9284)}
.ps-cartpage .cart_totals .order-total .includes_tax .amount{font:inherit;color:inherit}
