/* This layout only affects the native classic cart under the new Cheers theme. */
.cheers-storefront .cheers-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cheers-cart-layout > .woocommerce-cart-form,.cheers-cart-layout > .cart-collaterals { width: auto !important; min-width: 0; margin: 0; float: none !important; }
.cheers-cart-layout .cart-collaterals { position: sticky; top: 24px; }
.cheers-storefront .cheers-cart-layout table.shop_table { width: 100%; margin: 0; border: 0; border-collapse: collapse; border-radius: 0; background: #fff; text-align: left; }
.cheers-storefront .cheers-cart-layout .woocommerce-cart-form { border: 1px solid var(--cheers-border); border-radius: 16px; padding: 0 20px; background: #fff; }
.cheers-storefront .cheers-cart-layout .shop_table th,.cheers-storefront .cheers-cart-layout .shop_table td { background: #fff !important; border: 0; border-bottom: 1px solid var(--cheers-border); padding: 20px 8px; line-height: 1.45; font-size: 14px; }
.cheers-cart-layout .woocommerce-cart-form thead th { color: var(--cheers-muted); font-size: 12px !important; font-weight: 500; }
.cheers-cart-layout .woocommerce-cart-form .product-remove { width: 28px; padding-left: 0 !important; }
.cheers-cart-layout .woocommerce-cart-form .product-remove a { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 44px; border-radius: 7px; color: var(--cheers-muted) !important; background: #fff; font-size: 22px; font-weight: 400; }
.cheers-cart-layout .woocommerce-cart-form .product-remove a:hover { color: var(--cheers-ink) !important; background: var(--cheers-soft); }
.cheers-cart-layout .woocommerce-cart-form .product-thumbnail { width: 82px; }
.cheers-cart-layout .woocommerce-cart-form .product-thumbnail img { display: block; width: 76px; height: 90px; max-width: none; object-fit: contain; }
.cheers-cart-layout .woocommerce-cart-form .product-name a { font-size: 15px; font-weight: 650; text-decoration: none; }
.cheers-cart-layout .woocommerce-cart-form .product-price { white-space: nowrap; color: var(--cheers-muted); font-size: 13px; }
.cheers-cart-layout .woocommerce-cart-form .product-quantity { width: 140px; }
.cheers-cart-layout .woocommerce-cart-form .product-subtotal { text-align: right; white-space: nowrap; font-weight: 650; }
.cheers-cart-layout .woocommerce-cart-form thead .product-subtotal { text-align: right; }
.cheers-cart-layout .woocommerce-cart-form dl.variation { font-size: 12px; margin: 7px 0 0; color: var(--cheers-muted); }
.cheers-storefront .cheers-cart-layout .cheers-quantity-control { border-radius: 10px; min-height: 46px; }
.cheers-storefront .cheers-cart-layout .cheers-quantity-control .qty { width: 40px; height: 46px; font-size: 15px; }
.cheers-storefront .cheers-cart-layout .cheers-quantity-step { min-height: 44px; }
.cheers-storefront .cheers-cart-layout .woocommerce-cart-form td.actions { border: 0; padding: 20px 0; text-align: left; }
.cheers-cart-layout .coupon { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; float: none !important; max-width: 100%; }
.cheers-storefront .cheers-cart-layout .coupon input#coupon_code { float: none; width: min(220px, 100%); min-height: 46px; margin: 0; padding: 11px 14px; border: 1px solid var(--cheers-border); border-radius: 8px; background: #fff; font-size: 15px; }
.cheers-storefront .cheers-cart-layout .coupon button[name=apply_coupon] { flex: 0 0 auto; width: auto; min-height: 46px; padding: 11px 16px !important; font-size: 15px; }
.cheers-cart-layout button[name=update_cart] { margin-top: 12px; }
.cheers-cart-layout.cheers-cart-auto-update button[name=update_cart] { position: absolute; width: 1px !important; max-width: 1px !important; height: 1px; min-height: 0; padding: 0 !important; margin: 0; border: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.cheers-cart-layout.cheers-cart-update-error button[name=update_cart] { position: static; width: auto !important; max-width: 100% !important; height: auto; min-height: 44px; padding: 10px 16px !important; margin-top: 12px; border: 1px solid var(--cheers-border); clip-path: none; white-space: normal; }
.cheers-storefront .cheers-cart-layout .cart_totals { width: 100% !important; float: none !important; margin: 0; padding: 24px; border: 1px solid var(--cheers-border); border-radius: 16px; background: #fff; box-shadow: 0 6px 26px #1d1d1f05; }
.cheers-cart-layout .cart_totals h2 { margin: 0 0 18px; font-size: 24px; letter-spacing: -.035em; }
.cheers-storefront .cheers-cart-layout .cheers-cart-shipping-notice { margin: 0 0 16px; padding: 10px 12px; background: #fff; border-radius: 8px; font-size: 14px; line-height: 1.55; }
.cheers-storefront .cheers-cart-layout .cheers-cart-shipping-notice .fs-free-shipping-notice-and-button-wrapper { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cheers-storefront .cheers-cart-layout .cheers-cart-shipping-notice .fs-free-shipping-notice-and-button-wrapper > div { min-width: 0; margin: 0; }
.cheers-storefront .cheers-cart-layout .cheers-cart-shipping-notice .button.flexible-shipping-free-shipping-button { display: flex; align-items: center; justify-content: center; float: none; width: 100%; max-width: 100%; min-height: 48px; margin: 0; padding: 12px 16px !important; background: var(--cheers-purchase-bg) !important; color: #fff !important; border: 1px solid var(--cheers-purchase-bg); border-radius: 8px; font-size: 19px; line-height: 1.4; font-weight: 700; text-align: center; text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
.cheers-storefront .cheers-cart-layout .cheers-cart-shipping-notice .button.flexible-shipping-free-shipping-button:hover { background: var(--cheers-purchase-hover) !important; border-color: var(--cheers-purchase-hover); color: #fff !important; }
.cheers-storefront .cheers-cart-layout .cheers-cart-shipping-notice .button.flexible-shipping-free-shipping-button:focus-visible { outline: 3px solid #a83a00; outline-offset: 3px; }
.cheers-storefront .cheers-cart-layout .cart_totals .shop_table th,.cheers-storefront .cheers-cart-layout .cart_totals .shop_table td { padding: 13px 0; border: 0; font-size: 14px; vertical-align: top; }
.cheers-cart-layout .cart_totals table.shop_table,.cheers-cart-layout .cart_totals .shop_table tbody { display: block; }
.cheers-cart-layout .cart_totals .shop_table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; }
.cheers-cart-layout .cart_totals .shop_table th,.cheers-cart-layout .cart_totals .shop_table td { display: block; min-width: 0; }
.cheers-cart-layout .cart_totals .shop_table th { width: auto; font-weight: 400; color: var(--cheers-muted); }
.cheers-cart-layout .cart_totals .shop_table td { text-align: right; }
.cheers-cart-layout .cart_totals .cart-discount td { color: var(--cheers-ink); }
.cheers-cart-layout .cart_totals .woocommerce-remove-coupon { display: inline-block; color: var(--cheers-muted); font-size: 12px; }
.cheers-cart-layout .cart_totals .shop_table .woocommerce-shipping-totals,.cheers-cart-layout .cart_totals .shop_table .cheers-cart-free-delivery { grid-template-columns: minmax(0, 1fr); }
.cheers-storefront .cheers-cart-layout .cart_totals .shop_table .woocommerce-shipping-totals th { padding-bottom: 6px; }
.cheers-storefront .cheers-cart-layout .cart_totals .shop_table .woocommerce-shipping-totals td { padding-top: 0; }
.cheers-cart-layout .cart_totals .woocommerce-shipping-totals td { text-align: left; }
.cheers-cart-layout .cart_totals ul#shipping_method.woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
.cheers-cart-layout .cart_totals ul#shipping_method.woocommerce-shipping-methods li { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 8px 10px; min-height: 46px; margin: 0 0 7px; padding: 10px 11px; border: 1px solid var(--cheers-border); border-radius: 8px; background: #fff; line-height: 1.4; }
.cheers-cart-layout .cart_totals ul#shipping_method.woocommerce-shipping-methods li:last-child { margin-bottom: 0; }
.cheers-cart-layout .cart_totals ul#shipping_method.woocommerce-shipping-methods li:has(input[type=radio]:checked) { border-color: var(--cheers-purchase-bg); background: #fff9f4; }
.cheers-cart-layout .cart_totals ul#shipping_method.woocommerce-shipping-methods li:has(input[type=hidden]) { grid-template-columns: minmax(0, 1fr); }
.cheers-cart-layout .cart_totals ul#shipping_method.woocommerce-shipping-methods li > :not(input):not(label) { grid-column: 1 / -1; }
.cheers-cart-layout .cart_totals ul#shipping_method.woocommerce-shipping-methods input[type=radio] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cheers-purchase-bg); cursor: pointer; }
.cheers-cart-layout .cart_totals ul#shipping_method.woocommerce-shipping-methods label { display: block; min-width: 0; margin: 0; cursor: pointer; font-size: 13px; font-weight: 400; }
.cheers-cart-layout .cart_totals ul#shipping_method.woocommerce-shipping-methods label .amount,.cheers-cart-layout .cheers-cart-selected-shipping .amount { white-space: nowrap; font-weight: 650; }
.cheers-cart-layout .cart_totals ul#shipping_method.woocommerce-shipping-methods input[type=radio]:focus-visible,.cheers-cart-layout .cheers-cart-shipping-options summary:focus-visible { outline: 2px solid var(--cheers-ink); outline-offset: 3px; }
.cheers-cart-layout .cart_totals .woocommerce-shipping-destination { margin: 10px 0 0; color: var(--cheers-muted); font-size: 12px; line-height: 1.5; }
.cheers-cart-layout .cheers-cart-selected-shipping { font-size: 14px; line-height: 1.4; }
.cheers-cart-layout .cheers-cart-shipping-options { margin-top: 2px; font-size: 13px; }
.cheers-cart-layout .cheers-cart-shipping-options summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 5px 0; cursor: pointer; color: var(--cheers-ink); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.cheers-cart-layout .cheers-cart-shipping-options summary::after { content: '+'; flex: 0 0 auto; text-decoration: none; font-size: 19px; }
.cheers-cart-layout .cheers-cart-shipping-options[open] summary::after { content: '−'; }
.cheers-cart-layout .cheers-cart-shipping-options summary::marker,.cheers-cart-layout .cheers-cart-shipping-options summary::-webkit-details-marker { display: none; }
.cheers-storefront .cheers-cart-layout .cart_totals .order-total th,.cheers-storefront .cheers-cart-layout .cart_totals .order-total td { padding-top: 20px; border-top: 1px solid var(--cheers-border); }
.cheers-cart-layout .cart_totals .order-total th { color: var(--cheers-ink); }
.cheers-cart-layout .cart_totals .order-total td { color: var(--cheers-ink); font-size: 25px !important; font-weight: 750; }
.cheers-cart-layout .cart_totals .order-total td small { display: block; font-size: 11px; font-weight: 400; }
.cheers-cart-layout .wc-proceed-to-checkout { padding: 18px 0 0 !important; }
.cheers-storefront .cheers-cart-layout .wc-proceed-to-checkout .checkout-button { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 15px !important; margin: 0; font-size: 19px; font-weight: 750; line-height: 1.4; border-radius: 10px; }
.cheers-cart-layout .cheers-cart-free-delivery td { padding: 8px 0 15px !important; text-align: left !important; color: var(--cheers-muted); font-size: 12px !important; line-height: 1.55; }
.cheers-cart-layout .cheers-cart-free-delivery span { display: block; padding: 10px 12px; border: 1px solid #deedc4; border-radius: 8px; background: #f8fbf3; }
.cheers-cart-layout .cart_totals .shop_table:has(.cheers-cart-shipping-options[open]) .cheers-cart-free-delivery { display: none; }
.cheers-cart-layout .cheers-cart-update-status { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--cheers-muted); }
.cheers-cart-layout .cheers-cart-update-status:empty { display: none; }
.cheers-cart-layout.cheers-cart-update-error .cheers-cart-update-status { color: var(--cheers-error); }
.cheers-storefront .cheers-cart-checkout-blocked { opacity: .65; cursor: progress; }
.cheers-cart-layout .cross-sells { width: 100% !important; float: none !important; }
@media (max-width: 1100px) {
  .cheers-storefront .cheers-cart-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cheers-cart-layout .cart-collaterals { position: static; }
  .cheers-cart-layout .cart_totals { max-width: none; }
}
@media (max-width: 767px) {
  .cheers-storefront .cheers-cart-layout .woocommerce-cart-form { padding-inline: 16px; }
  .cheers-cart-layout .woocommerce-cart-form table.shop_table thead { display: none; }
  .cheers-cart-layout .woocommerce-cart-form .cart_item { display: grid; grid-template-columns: 70px minmax(0, 1fr) 32px; gap: 6px 12px; padding: 18px 0; border-bottom: 1px solid var(--cheers-border); }
  .cheers-storefront .cheers-cart-layout .woocommerce-cart-form .cart_item td { display: block; width: auto; border: 0; padding: 0 !important; background: #fff !important; text-align: left !important; }
  .cheers-cart-layout .woocommerce-cart-form .cart_item td::before { display: none; }
  .cheers-cart-layout .woocommerce-cart-form .cart_item .product-thumbnail { display: block; grid-column: 1; grid-row: 1 / 4; }
  .cheers-cart-layout .woocommerce-cart-form .product-thumbnail img { width: 70px; height: 88px; }
  .cheers-cart-layout .woocommerce-cart-form .cart_item .product-name { grid-column: 2; grid-row: 1; align-self: center; }
  .cheers-cart-layout .woocommerce-cart-form .cart_item .product-remove { grid-column: 3; grid-row: 1; }
  .cheers-cart-layout .woocommerce-cart-form .cart_item .product-price { grid-column: 2 / 4; grid-row: 2; font-size: 12px; }
  .cheers-cart-layout .woocommerce-cart-form .cart_item .product-price::before { display: inline; float: none; content: 'Cena za sztukę: '; font-weight: 400; }
  .cheers-cart-layout .woocommerce-cart-form .cart_item .product-quantity { grid-column: 2 / 4; grid-row: 3; margin-top: 5px; }
  .cheers-cart-layout .woocommerce-cart-form .cart_item .product-subtotal { grid-column: 2 / 4; grid-row: 4; margin-top: 5px; text-align: left !important; font-size: 15px; }
  .cheers-cart-layout .woocommerce-cart-form .cart_item .product-subtotal::before { display: inline; float: none; content: 'Razem: '; font-weight: 400; color: var(--cheers-muted); font-size: 12px; }
  .cheers-cart-layout .woocommerce-cart-form td.actions::before { display: none; }
  .cheers-cart-layout .coupon { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cheers-storefront .cheers-cart-layout .coupon input#coupon_code,.cheers-storefront .cheers-cart-layout .coupon button[name=apply_coupon] { width: 100%; margin: 0; }
  .cheers-storefront .cheers-cart-layout .cart_totals { padding: 22px 20px; }
  .cheers-storefront .cheers-cart-layout .cart_totals table.shop_table_responsive tr { display: grid; }
  .cheers-storefront .cheers-cart-layout .cart_totals table.shop_table_responsive tr th { display: block; }
  .cheers-storefront .cheers-cart-layout .cart_totals table.shop_table_responsive tr td { display: block; text-align: right !important; }
  .cheers-storefront .cheers-cart-layout .cart_totals table.shop_table_responsive tr td::before { display: none !important; }
  .cheers-storefront .cheers-cart-layout .cart_totals table.shop_table_responsive .woocommerce-shipping-totals td { text-align: left !important; }
}
