/*
 * YAROO 4x4 — poprawki koszyka.
 * Zakres ograniczony do strony koszyka. Plik nie zmienia checkoutu ani sklepu.
 */

body.page-template-template-yaroo-cart-left #main-content,
body.page-template-template-yaroo-cart-left-php #main-content,
body.page-koszyk #main-content,
body[class*="koszyk"] #main-content,
body.woocommerce-cart #main-content {
    padding-left: clamp(1rem, 3vw, 2rem) !important;
    padding-right: clamp(1rem, 3vw, 2rem) !important;
}

/* Zostawiamy podsumowanie cen i sumy koszyka widoczne. Ukrywamy tylko dostawę/wysyłkę. */
body.page-template-template-yaroo-cart-left .woocommerce-shipping-totals,
body.page-template-template-yaroo-cart-left-php .woocommerce-shipping-totals,
body.page-koszyk .woocommerce-shipping-totals,
body[class*="koszyk"] .woocommerce-shipping-totals,
body.woocommerce-cart .woocommerce-shipping-totals,
body.page-template-template-yaroo-cart-left tr.shipping,
body.page-template-template-yaroo-cart-left-php tr.shipping,
body.page-koszyk tr.shipping,
body[class*="koszyk"] tr.shipping,
body.woocommerce-cart tr.shipping,
body.page-template-template-yaroo-cart-left .shipping-calculator-form,
body.page-template-template-yaroo-cart-left-php .shipping-calculator-form,
body.page-koszyk .shipping-calculator-form,
body[class*="koszyk"] .shipping-calculator-form,
body.woocommerce-cart .shipping-calculator-form,
body.page-template-template-yaroo-cart-left .woocommerce-shipping-calculator,
body.page-template-template-yaroo-cart-left-php .woocommerce-shipping-calculator,
body.page-koszyk .woocommerce-shipping-calculator,
body[class*="koszyk"] .woocommerce-shipping-calculator,
body.woocommerce-cart .woocommerce-shipping-calculator,
body.page-template-template-yaroo-cart-left .woocommerce-shipping-destination,
body.page-template-template-yaroo-cart-left-php .woocommerce-shipping-destination,
body.page-koszyk .woocommerce-shipping-destination,
body[class*="koszyk"] .woocommerce-shipping-destination,
body.woocommerce-cart .woocommerce-shipping-destination,
body.page-template-template-yaroo-cart-left #shipping_method,
body.page-template-template-yaroo-cart-left-php #shipping_method,
body.page-koszyk #shipping_method,
body[class*="koszyk"] #shipping_method,
body.woocommerce-cart #shipping_method {
    display: none !important;
}

/* Komórka/kontener ilości — kasujemy obrys, który przecinał przycisk „Usuń”. */
body.page-template-template-yaroo-cart-left .product-quantity,
body.page-template-template-yaroo-cart-left-php .product-quantity,
body.page-koszyk .product-quantity,
body[class*="koszyk"] .product-quantity,
body.woocommerce-cart .product-quantity,
body.page-template-template-yaroo-cart-left td.product-quantity,
body.page-template-template-yaroo-cart-left-php td.product-quantity,
body.page-koszyk td.product-quantity,
body[class*="koszyk"] td.product-quantity,
body.woocommerce-cart td.product-quantity {
    position: relative !important;
    min-width: 210px !important;
    width: auto !important;
    overflow: visible !important;
    white-space: nowrap !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.page-template-template-yaroo-cart-left .product-quantity::before,
body.page-template-template-yaroo-cart-left .product-quantity::after,
body.page-template-template-yaroo-cart-left-php .product-quantity::before,
body.page-template-template-yaroo-cart-left-php .product-quantity::after,
body.page-koszyk .product-quantity::before,
body.page-koszyk .product-quantity::after,
body[class*="koszyk"] .product-quantity::before,
body[class*="koszyk"] .product-quantity::after,
body.woocommerce-cart .product-quantity::before,
body.woocommerce-cart .product-quantity::after,
body.page-template-template-yaroo-cart-left .yaroo-cart-qty-actions::before,
body.page-template-template-yaroo-cart-left .yaroo-cart-qty-actions::after,
body.page-template-template-yaroo-cart-left-php .yaroo-cart-qty-actions::before,
body.page-template-template-yaroo-cart-left-php .yaroo-cart-qty-actions::after,
body.page-koszyk .yaroo-cart-qty-actions::before,
body.page-koszyk .yaroo-cart-qty-actions::after,
body[class*="koszyk"] .yaroo-cart-qty-actions::before,
body[class*="koszyk"] .yaroo-cart-qty-actions::after,
body.woocommerce-cart .yaroo-cart-qty-actions::before,
body.woocommerce-cart .yaroo-cart-qty-actions::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.page-template-template-yaroo-cart-left .product-quantity label,
body.page-template-template-yaroo-cart-left-php .product-quantity label,
body.page-koszyk .product-quantity label,
body[class*="koszyk"] .product-quantity label,
body.woocommerce-cart .product-quantity label,
body.page-template-template-yaroo-cart-left .product-quantity [class*="label"],
body.page-template-template-yaroo-cart-left-php .product-quantity [class*="label"],
body.page-koszyk .product-quantity [class*="label"],
body[class*="koszyk"] .product-quantity [class*="label"],
body.woocommerce-cart .product-quantity [class*="label"] {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.page-template-template-yaroo-cart-left .yaroo-cart-qty-actions,
body.page-template-template-yaroo-cart-left-php .yaroo-cart-qty-actions,
body.page-koszyk .yaroo-cart-qty-actions,
body[class*="koszyk"] .yaroo-cart-qty-actions,
body.woocommerce-cart .yaroo-cart-qty-actions {
    position: relative !important;
    z-index: 20 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.8rem !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    min-width: 138px !important;
    max-width: none !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    overflow: visible !important;
    isolation: isolate !important;
    vertical-align: middle !important;
}

body.page-template-template-yaroo-cart-left .quantity,
body.page-template-template-yaroo-cart-left-php .quantity,
body.page-koszyk .quantity,
body[class*="koszyk"] .quantity,
body.woocommerce-cart .quantity,
body.page-template-template-yaroo-cart-left .yaroo-cart-qty-box,
body.page-template-template-yaroo-cart-left-php .yaroo-cart-qty-box,
body.page-koszyk .yaroo-cart-qty-box,
body[class*="koszyk"] .yaroo-cart-qty-box,
body.woocommerce-cart .yaroo-cart-qty-box {
    position: relative !important;
    z-index: 21 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    overflow: visible !important;
}

body.page-template-template-yaroo-cart-left input.qty,
body.page-template-template-yaroo-cart-left-php input.qty,
body.page-koszyk input.qty,
body[class*="koszyk"] input.qty,
body.woocommerce-cart input.qty,
body.page-template-template-yaroo-cart-left .product-quantity input[type="number"],
body.page-template-template-yaroo-cart-left-php .product-quantity input[type="number"],
body.page-koszyk .product-quantity input[type="number"],
body[class*="koszyk"] .product-quantity input[type="number"],
body.woocommerce-cart .product-quantity input[type="number"] {
    position: relative !important;
    z-index: 22 !important;
    display: inline-flex !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 0.25rem !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 11px !important;
    background: #1a1a20 !important;
    color: #fff !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    line-height: 32px !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    appearance: textfield;
}

body.page-template-template-yaroo-cart-left input.qty::-webkit-outer-spin-button,
body.page-template-template-yaroo-cart-left input.qty::-webkit-inner-spin-button,
body.page-template-template-yaroo-cart-left-php input.qty::-webkit-outer-spin-button,
body.page-template-template-yaroo-cart-left-php input.qty::-webkit-inner-spin-button,
body.page-koszyk input.qty::-webkit-outer-spin-button,
body.page-koszyk input.qty::-webkit-inner-spin-button,
body[class*="koszyk"] input.qty::-webkit-outer-spin-button,
body[class*="koszyk"] input.qty::-webkit-inner-spin-button,
body.woocommerce-cart input.qty::-webkit-outer-spin-button,
body.woocommerce-cart input.qty::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

body.page-template-template-yaroo-cart-left .quantity .plus,
body.page-template-template-yaroo-cart-left .quantity .minus,
body.page-template-template-yaroo-cart-left-php .quantity .plus,
body.page-template-template-yaroo-cart-left-php .quantity .minus,
body.page-koszyk .quantity .plus,
body.page-koszyk .quantity .minus,
body[class*="koszyk"] .quantity .plus,
body[class*="koszyk"] .quantity .minus,
body.woocommerce-cart .quantity .plus,
body.woocommerce-cart .quantity .minus {
    position: relative !important;
    z-index: 22 !important;
    flex: 0 0 auto !important;
    width: 28px !important;
    height: 32px !important;
    margin: 0 0.2rem !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 10px !important;
    background: #1a1a20 !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

body.page-template-template-yaroo-cart-left .yaroo-cart-qty-actions .remove,
body.page-template-template-yaroo-cart-left-php .yaroo-cart-qty-actions .remove,
body.page-koszyk .yaroo-cart-qty-actions .remove,
body[class*="koszyk"] .yaroo-cart-qty-actions .remove,
body.woocommerce-cart .yaroo-cart-qty-actions .remove {
    position: relative !important;
    z-index: 30 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 68px !important;
    max-width: none !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 0.82rem !important;
    border: 1px solid rgba(255,92,70,0.26) !important;
    border-radius: 999px !important;
    background: #1a1a20 !important;
    color: #ffb0a5 !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    opacity: 1 !important;
    transform: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    box-shadow: 0 0 0 6px #101014 !important;
}

body.page-template-template-yaroo-cart-left .yaroo-cart-qty-actions .remove:hover,
body.page-template-template-yaroo-cart-left-php .yaroo-cart-qty-actions .remove:hover,
body.page-koszyk .yaroo-cart-qty-actions .remove:hover,
body[class*="koszyk"] .yaroo-cart-qty-actions .remove:hover,
body.woocommerce-cart .yaroo-cart-qty-actions .remove:hover {
    border-color: rgba(255,92,70,0.55) !important;
    background: rgba(255,70,45,0.18) !important;
    color: #fff !important;
}

body.page-template-template-yaroo-cart-left .product-remove:empty,
body.page-template-template-yaroo-cart-left-php .product-remove:empty,
body.page-koszyk .product-remove:empty,
body[class*="koszyk"] .product-remove:empty,
body.woocommerce-cart .product-remove:empty,
body.page-template-template-yaroo-cart-left th.product-remove,
body.page-template-template-yaroo-cart-left-php th.product-remove,
body.page-koszyk th.product-remove,
body[class*="koszyk"] th.product-remove,
body.woocommerce-cart th.product-remove {
    display: none !important;
}

@media (max-width: 700px) {
    body.page-template-template-yaroo-cart-left .product-quantity,
    body.page-template-template-yaroo-cart-left-php .product-quantity,
    body.page-koszyk .product-quantity,
    body[class*="koszyk"] .product-quantity,
    body.woocommerce-cart .product-quantity {
        min-width: 0 !important;
        white-space: normal !important;
    }

    body.page-template-template-yaroo-cart-left .yaroo-cart-qty-actions,
    body.page-template-template-yaroo-cart-left-php .yaroo-cart-qty-actions,
    body.page-koszyk .yaroo-cart-qty-actions,
    body[class*="koszyk"] .yaroo-cart-qty-actions,
    body.woocommerce-cart .yaroo-cart-qty-actions {
        gap: 0.65rem !important;
        min-width: 126px !important;
    }
}

/* Popup akceptacji dla produktów z kategorii „pojazdy” przed przejściem do zamówienia. */
body.yaroo-vehicle-cart-modal-open {
    overflow: hidden !important;
}

.yaroo-vehicle-cart-modal[hidden] {
    display: none !important;
}

.yaroo-vehicle-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

.yaroo-vehicle-cart-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.yaroo-vehicle-cart-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.yaroo-vehicle-cart-modal__panel {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: min(720px, calc(100vh - 2rem));
    overflow: auto;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid rgba(255,122,0,0.28);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 12%, rgba(255,122,0,0.20), transparent 34%),
        linear-gradient(135deg, rgba(24,24,30,0.98), rgba(13,13,17,0.98));
    box-shadow: 0 28px 90px rgba(0,0,0,0.56);
    transform: translateY(12px) scale(0.98);
    transition: transform .18s ease;
}

.yaroo-vehicle-cart-modal.is-open .yaroo-vehicle-cart-modal__panel {
    transform: translateY(0) scale(1);
}

.yaroo-vehicle-cart-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.yaroo-vehicle-cart-modal__close:hover,
.yaroo-vehicle-cart-modal__close:focus-visible {
    border-color: rgba(255,122,0,0.46);
    background: rgba(255,122,0,0.09);
    color: var(--orange-2, #ff9a3d);
    outline: none;
}

.yaroo-vehicle-cart-modal__kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.65rem;
    padding: 0.32rem 0.62rem;
    border: 1px solid rgba(255,122,0,0.24);
    border-radius: 999px;
    background: rgba(255,122,0,0.09);
    color: var(--orange-2, #ff9a3d);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.12em;
}

.yaroo-vehicle-cart-modal__title {
    max-width: calc(100% - 2.7rem);
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: clamp(1.45rem, 4vw, 2.15rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.yaroo-vehicle-cart-modal__description {
    margin: 0;
    color: rgba(255,255,255,0.82);
    font-size: 0.98rem;
    line-height: 1.72;
}

.yaroo-vehicle-cart-modal__contact {
    color: var(--orange-2, #ff9a3d);
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.yaroo-vehicle-cart-modal__contact:hover,
.yaroo-vehicle-cart-modal__contact:focus-visible {
    color: #fff;
    outline: none;
}

.yaroo-vehicle-cart-modal__accept {
    display: flex;
    align-items: flex-start;
    gap: 0.78rem;
    margin-top: 1.25rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    background: rgba(255,255,255,0.045);
    color: #fff;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
}

.yaroo-vehicle-cart-modal__checkbox {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 0.05rem;
    accent-color: var(--orange, #ff7a00);
    cursor: pointer;
}

.yaroo-vehicle-cart-modal__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.yaroo-vehicle-cart-modal__button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.05rem;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}

.yaroo-vehicle-cart-modal__button--secondary {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #fff;
}

.yaroo-vehicle-cart-modal__button--secondary:hover,
.yaroo-vehicle-cart-modal__button--secondary:focus-visible {
    border-color: rgba(255,255,255,0.24);
    background: rgba(255,255,255,0.07);
    outline: none;
}

.yaroo-vehicle-cart-modal__button--primary {
    border: 1px solid rgba(255,122,0,0.36);
    background: linear-gradient(135deg, var(--orange, #ff7a00), var(--orange-2, #ff9a3d));
    color: #fff;
    box-shadow: 0 14px 34px rgba(255,122,0,0.23);
}

.yaroo-vehicle-cart-modal__button--primary:not(:disabled):hover,
.yaroo-vehicle-cart-modal__button--primary:not(:disabled):focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(255,122,0,0.32);
    outline: none;
}

.yaroo-vehicle-cart-modal__button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 560px) {
    .yaroo-vehicle-cart-modal__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .yaroo-vehicle-cart-modal__button {
        width: 100%;
    }
}

.yaroo-vehicle-cart-modal__notice {
    margin: 0;
}

.yaroo-vehicle-cart-modal__notice + .yaroo-vehicle-cart-modal__notice {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
