/* Cart Table */

.woocommerce-cart .site-main.container {
    max-width: none;
    padding: 0;
}

.woocommerce-shipping-destination {
    display: none;
}

/* Jeśli potrzebujesz container tylko dla zawartości koszyka */
.cart-content .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.cart-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Dwie kolumny na desktop, lewa szersza */
    gap: 40px;
    padding: 20px;
}

.woocommerce-cart-form {
    margin-bottom: 40px;
}

.woocommerce-cart-form table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-cart-form th {
    font-family: var(--title-font-family);
    font-size: 26px;
    font-weight: 400;
    text-align: left;
    padding: 15px 10px;
    border-bottom: 1px solid var(--wc-border);
}

.woocommerce-cart-form td {
    padding: 20px 10px;
    border-bottom: 1px solid var(--wc-border);
}

/* Product Image */
.product-thumbnail img {
    width: 100px;
    height: auto;
	mix-blend-mode: multiply;
}

/* Product Title */
.product-name a {
    font-family: var(--body-font-family);
    font-weight: 600;
    font-size: 18px;
    color: var(--wc-text);
    text-decoration: none;
}

/* Quantity Input */
.quantity input {
    width: 70px;
    padding: 8px;
    border: 1px solid var(--wc-border);
    background: #fff;
    font-family: var(--body-font-family);
}

.quantity input:focus {
    outline: none;
}

/* Remove Item Button */
.remove {
    color: #999;
    text-decoration: none;
}

/* Cart Totals - podstawowe style */
.cart-collaterals {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
}

.cart_totals {
    background: var(--wc-background-dark);
    padding: 20px;
    color: #fff;
}

.cart_totals h2 {
    font-family: var(--title-font-family);
    font-size: 30px;
    margin-bottom: 20px;
    font-weight: 400;
}

.cart_totals table {
    width: 100%;
    margin-bottom: 20px;
}

.cart_totals th {
    text-align: left;
    padding: 15px 0;
    font-weight: 400;
    font-family: var(--body-font-family);
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart_totals td {
    text-align: right;
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.bs-update-button {
    background-color: var(--wc-primary);
    color: #fff;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    font-family: var(--body-font-family);
    font-weight: 300;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.bs-update-button:hover {
    background-color: var(--wc-primary-hover);
}

/* Style dla danych rezerwacji w koszyku */
.rental-data-container {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    font-size: 0.9em;
}

.rental-period {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.rental-dates {
    display: block;
    color: #333;
}

.price-per-day {
    margin-top: 5px;
    font-size: 0.85em;
    color: #777;
}

/* Responsywne style dla mobilnych urządzeń */
@media (max-width: 768px) {
    .rental-data-container {
        padding: 6px 8px;
    }
    
    table.shop_table_responsive tr td.product-name {
        padding-bottom: 15px;
    }
}

/* Przyciski w podsumowaniu */
.wc-proceed-to-checkout {
    margin-top: 30px;
}

.wc-proceed-to-checkout .button {
    background-color: var(--wc-primary);
    color: #fff;
    padding: 15px 30px;
    border: 1px solid var(--wc-primary);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    font-weight: 300;
}

.wc-proceed-to-checkout .button:hover {
    background-color: transparent;
    border: 1px solid var(--wc-background);
    color: #fff;
}

.checkout-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.bs-coupon-button {
    background-color: var(--wc-primary-hover);
    color: #fff;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    font-family: var(--body-font-family);
    font-weight: 300;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.bs-input-text {
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    font-family: var(--body-font-family);
    text-transform: uppercase;
}

.bs-input-text:focus {
    outline: none;
}

.woocommerce-shipping-methods {
    list-style: none;
}

.coupon-title {
    font-family: var(--title-font-family);
    font-size: 25px;
    font-weight: 300;
    text-transform: uppercase;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--wc-border);
}



/* Responsywność dla sekcji podsumowania */
@media (max-width: 992px) {
    .cart-content-wrapper {
        grid-template-columns: 1fr; /* Jedna kolumna na mobile */
        gap: 20px;
    }

    .cart-collaterals {
        max-width: 100%;
        margin: 0;
        order: 2; /* Podsumowanie na końcu */
    }

    .woocommerce-cart-form {
        order: 1; /* Formularz koszyka na początku */
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {

    .cart_totals h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .wc-proceed-to-checkout {
        margin-top: 20px;
    }

    .wc-proceed-to-checkout .button {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Poprawka dla układu tabeli na mobile */
    .cart_totals table {
        margin-bottom: 15px;
    }

    .cart_totals tr:last-child th,
    .cart_totals tr:last-child td {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Ukryj nagłówki tabeli na mobile */
    .woocommerce-cart-form thead {
        display: none;
    }

    /* Zmień strukturę tabeli na mobile */
    .woocommerce-cart-form table,
    .woocommerce-cart-form tbody,
    .woocommerce-cart-form tr,
    .woocommerce-cart-form td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* Style dla każdego wiersza produktu */
    .woocommerce-cart-form__cart-item {
        position: relative;
        padding: 20px 0;
        border-bottom: 1px solid var(--wc-border);
    }

    /* Układ komórek w wierszu */
    .woocommerce-cart-form td {
        padding: 5px 0;
        border: none;
        text-align: right;
    }

    /* Dodaj etykiety przed wartościami */
    .woocommerce-cart-form td::before {
        content: attr(data-title);
        float: left;
        font-weight: 500;
        color: #1D1D1B;
    }

    /* Specjalne styles dla obrazka produktu */
    .product-thumbnail {
        text-align: center !important;
        padding: 10px 0;
    }

    .product-thumbnail::before {
        display: none;
    }

    /* Style dla nazwy produktu */
    .product-name {
        text-align: left !important;
    }

    .product-name::before {
        display: none;
    }

    /* Przycisk usuwania */
    .product-remove {
        position: absolute;
        top: 10px;
        right: 0;
        padding: 0 !important;
    }

    .product-remove::before {
        display: none;
    }

    /* Input ilości */
    .quantity input {
        width: 60px;
        padding: 5px;
        margin-left: 10px;
    }

    /* Przyciski aktualizacji i kuponu */
    .actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 20px 0 !important;
    }

    .actions::before {
        display: none;
    }

    .coupon {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .coupon label {
        display: none;
    }

    .coupon input {
        width: 100% !important;
        margin: 0 !important;
    }

    .coupon button,
    .actions button.update-cart {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Układ cen */
    .product-price,
    .product-subtotal {
        text-align: right;
    }
}




/* Empty Cart Styles */
.cart-empty-content {
    padding: 80px 0;
}

.cart-empty-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.woocommerce-info {
    font-family: var(--title-font-family);
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--wc-text);
}

.return-to-shop {
    margin-top: 40px;
}

.return-to-shop .button {
    background-color: var(--wc-primary);
    color: #fff;
    padding: 15px 30px;
    border: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.return-to-shop .button:hover {
    background-color: var(--wc-primary-hover);
}

/* Responsywność dla pustego koszyka */
@media (max-width: 768px) {
    .cart-empty-content {
        padding: 40px 0;
    }

    .woocommerce-info {
        font-size: 20px;
    }

    .return-to-shop .button {
        width: 100%;
        text-align: center;
    }
}

/* Nadpisanie domyślnych stylów WooCommerce dla komunikatu o pustym koszyku */
.woocommerce-cart .woocommerce-info {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.woocommerce-cart .woocommerce-info::before {
    display: none;
}



.rental-period {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.rental-dates {
    display: block;
    color: #333;
}

.price-per-day {
    margin-top: 5px;
    font-size: 0.85em;
    color: #777;
}

