@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* === ZMIENNE I GŁÓWNE USTAWIENIA === */
.wp-block-woocommerce-cart {
    --cart-primary-dark: #141f33;
    --cart-primary-orange: #ed4f00;
    --cart-background-light: #f4f5f7;
    --cart-border-color: #e2e8f0;
    --cart-text-dark: #1e293b;
    --cart-text-light: #64748b;

    font-family: 'Inter', sans-serif;
}

/* --- GŁÓWNY UKŁAD KOSZYKA --- */
.wc-block-components-sidebar-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Podział 2/3 na 1/3 */
    gap: 2.5rem;
    align-items: flex-start;
}

/* --- TABELA Z PRODUKTAMI (LEWA STRONA) --- */
.wc-block-cart__main {
    background-color: #ffffff;
    border: 1px solid var(--cart-border-color);
    border-radius: 12px;
    padding: 1rem;
    width: 60% !important;
}

.wc-block-cart-items {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem; /* Odstęp między wierszami */
}

.wc-block-cart-items thead {
    display: none; /* Ukrywamy domyślny nagłówek dla czystszego wyglądu */
}

/* Pojedynczy wiersz produktu */
.wc-block-cart-items__row {
    background-color: #fff;
}
.wc-block-cart-items__row td {
    padding: 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--cart-border-color);
}
.wc-block-cart-items__row:last-child td {
    border-bottom: none;
}

.wc-block-cart-item__image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.wc-block-components-product-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--cart-text-dark);
    text-decoration: none;
}
.wc-block-components-product-name:hover {
    color: var(--cart-primary-orange);
}
.wc-block-components-product-price {
    font-weight: 500;
    color: var(--cart-text-light);
}

/* Ilość i usuwanie */
.wc-block-components-quantity-selector {
    border: 1px solid var(--cart-border-color);
    border-radius: 8px;
}
.wc-block-components-quantity-selector__input {
    border: none !important;
    box-shadow: none !important;
    text-align: center;
}
.wc-block-cart-item__remove-link {
    display: block;
    margin-top: 0.5rem;
    text-align: center;
    color: var(--cart-text-light);
    font-size: 0.8rem;
    text-decoration: none;
}
.wc-block-cart-item__remove-link:hover {
    color: #ef4444; /* Czerwony kolor dla usuwania */
}

/* --- PODSUMOWANIE (PRAWA STRONA) --- */
.wc-block-cart__sidebar {
    background-color: var(--cart-primary-dark); /* Twój ciemnoniebieski kolor */
    color: #fff;
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: 40px; /* "Przyklejone" do góry podczas przewijania */
    width: 100%;
}

.wc-block-cart__totals-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Kupon */
.wc-block-components-totals-coupon .wc-block-components-panel__button {
    color: #fff;
    font-weight: 500;
}
.wc-block-components-panel__button svg {
    fill: #fff;
}

/* Wiersze podsumowania */
.wc-block-components-totals-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1rem;
}
.wc-block-components-totals-item__label {
    color: rgba(255, 255, 255, 0.7);
}
.wc-block-components-totals-item__value {
    font-weight: 600;
}

/* Łącznie */
.wc-block-components-totals-footer-item {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    color: #fff;
}

/* --- PRZYCISK "PRZEJDŹ DO PŁATNOŚCI" --- */
.wc-block-cart__submit-button {
    background-color: var(--cart-primary-orange) !important; /* Twój pomarańczowy kolor */
    color: #fff !important;
    width: 100%;
    text-align: center;
    padding: 1rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
.wc-block-cart__submit-button:hover {
    background-color: #d14600 !important; /* Ciemniejszy pomarańczowy */
    transform: scale(1.02);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .wc-block-components-sidebar-layout {
        grid-template-columns: 1fr; /* Jedna kolumna na mniejszych ekranach */
    }
    .wc-block-cart__sidebar {
        position: static; /* Wyłącz przyklejenie na mobilach */
    }
}

.wc-block-components-totals-coupon .wc-block-components-panel__content {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
}

/* --- Pole do wpisywania kodu kuponu --- */
.wc-block-components-totals-coupon__input .wc-block-components-text-input {
    width: 100%;
}
.wc-block-components-totals-coupon__input input {
    background-color: #fff !important;
    color: #141f33 !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 6px !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500;
}
.wc-block-components-totals-coupon__input input:focus {
    border-color: #ed4f00 !important;
    box-shadow: none !important;
}

/* --- Przycisk "Zastosuj" --- */
.wc-block-components-totals-coupon__button {
    background-color: #141f33 !important; /* Twój pomarańczowy kolor */
    color: #fff !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    transition: background-color 0.2s ease !important;
}
.wc-block-components-totals-coupon__button:hover {
    background-color: #d14600 !important; /* Ciemniejszy pomarańczowy */
}

/* Układ formularza (input + przycisk) */
.wc-block-components-totals-coupon__form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wc-block-components-totals-coupon__form {
    display: flex;
    flex-direction: column; /* Zmiana ułożenia na pionowe */
    gap: 10px; /* Odstęp między polem a przyciskiem */
    align-items: stretch; /* Rozciągnij elementy na pełną szerokość */
}

.wp-block-woocommerce-cart-order-summary-coupon-form-block
{
    background-color: #ed4f00;
    border-radius: 6px ;
}
.wp-block-woocommerce-cart-totals-block
{
    padding:8px !important;
}