/* Cart & checkout — ported from tauria theme (without Klub Čisto). */

.suggested-products {
    margin-top: 40px;
}

.suggested-products h2 {
    font-size: 23px !important;
    font-weight: 600 !important;
}

@media only screen and (min-width: 768px) {
    .custom-cart-wrapper .woocommerce-cart-form {
        display: flex;
        align-items: flex-start;
    }
}

.custom-cart-wrapper .left_shop_table {
    width: auto !important;
    padding: 0;
}

@media only screen and (min-width: 768px) {
    .custom-cart-wrapper .left_shop_table {
        width: 77% !important;
        padding: 0 50px 0 0;
    }
}

.custom-cart-wrapper .left_shop_table table {
    border: none;
}

.custom-cart-wrapper .left_shop_table table .product-price {
    font-weight: 700;
    font-size: 18px;
    text-align: right;
}

.custom-cart-wrapper .left_shop_table table .product-name a {
    color: #4b4a4b;
    font-size: 15px;
}

.custom-cart-wrapper .left_shop_table table .product-name a:hover {
    text-decoration: underline;
}

.custom-cart-wrapper .left_shop_table table img {
    width: 110px;
    height: 110px;
    display: block;
    object-fit: contain;
}

.custom-cart-wrapper .left_shop_table table tr td,
.custom-cart-wrapper .left_shop_table table tr th {
    border: none;
    vertical-align: top;
    padding: 20px 12px;
}

.custom-cart-wrapper .left_shop_table table tr.buttons td,
.custom-cart-wrapper .left_shop_table table tr.buttons th {
    border-bottom: 1px solid #d1d1d1;
    padding: 5px 12px 20px;
}

.custom-cart-wrapper .left_shop_table table thead tr td,
.custom-cart-wrapper .left_shop_table table thead tr th {
    border-bottom: 1px solid #d1d1d1;
}

.custom-cart-wrapper .left_shop_table .cart-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.custom-cart-wrapper .left_shop_table .cart-bottom .button.back::before {
    content: "←";
    display: inline-block;
    margin: 0 10px 0 0;
}

.custom-cart-wrapper .cart-summary-sidebar {
    background-color: #f5f5f5;
    padding: 15px 15px 25px;
    width: auto;
}

@media only screen and (min-width: 768px) {
    .custom-cart-wrapper .cart-summary-sidebar {
        width: 23%;
    }
}

.custom-cart-wrapper .cart-summary-sidebar h3 {
    border-bottom: 1px solid #d1d1d1;
    font-size: 22px;
    font-weight: 400;
    font-family: "Merriweather", serif;
    text-transform: none;
    padding-bottom: 8px;
    margin: 0 0 10px;
}

.custom-cart-wrapper .cart-summary-sidebar .summary-line {
    border-bottom: 1px solid #d1d1d1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-cart-wrapper .cart-summary-sidebar .summary-line span:not(.amount) {
    padding: 8px;
    font-family: "Merriweather", serif;
    font-size: 15px;
}

.custom-cart-wrapper .cart-summary-sidebar .summary-line.total span span {
    font-weight: 700;
}

.custom-cart-wrapper .cart-summary-sidebar .summary-line.no_brd {
    border-bottom: none;
}

.custom-cart-wrapper .cart-summary-sidebar .checkout-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.custom-cart-wrapper .cart-summary-sidebar .toggle-coupon {
    cursor: pointer;
}

.custom-cart-wrapper .cart-summary-sidebar .toggle-coupon .discount-toggle {
    position: relative;
    padding: 7px 30px 7px 5px;
    font-family: "Merriweather", serif;
    font-size: 15px;
}

.custom-cart-wrapper .cart-summary-sidebar .toggle-coupon .discount-toggle::after {
    content: "›";
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
}

.custom-cart-wrapper .cart-summary-sidebar .coupon {
    padding: 0 0 0 5px;
}

.custom-cart-wrapper .cart-summary-sidebar .coupon input {
    height: 32px;
    padding: 0 9px;
    border: 1px solid #c2c2c2;
    outline: none;
    width: 100%;
}

.custom-cart-wrapper .cart-summary-sidebar .coupon button {
    background-color: inherit !important;
    color: #4b4a4b !important;
    padding: 0 !important;
    margin: 10px 0 0 !important;
    font-size: 14px !important;
}

.custom-cart-wrapper .cart-summary-sidebar .button,
.custom-cart-wrapper .cart-summary-sidebar .green-button {
    margin: 20px 0 0;
}

.custom-cart-wrapper .cart-summary-sidebar .leanpay-banner {
    margin: 20px 0 0;
}

.custom-cart-wrapper .cart-summary-sidebar .leanpay-banner img {
    max-width: 100%;
    height: auto;
    display: block;
}

.custom-cart-wrapper .button.green-button,
.woocommerce-cart .button.green-button,
.woocommerce-checkout .button.green-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #009a3b !important;
    border-color: #009a3b !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 18px !important;
    border-radius: 0 !important;
    text-decoration: none;
}

.custom-cart-wrapper .button.green-button:hover,
.woocommerce-cart .button.green-button:hover,
.woocommerce-checkout .button.green-button:hover {
    background-color: #006e2c !important;
    border-color: #006e2c !important;
    color: #fff !important;
}

.custom-cart-wrapper .left_shop_table .cart-bottom .button.green-button {
    background-color: transparent !important;
    color: #009a3b !important;
    border: none !important;
    padding: 7px 15px !important;
}

.custom-cart-wrapper .left_shop_table .cart-bottom .button.green-button:hover {
    color: #006e2c !important;
}

/* Upsell slider */
.cart-upsells-wrap {
    position: relative;
}

.cart-upsells-viewport {
    overflow: hidden;
    width: 100%;
    padding: 20px 12px 0;
    box-sizing: border-box;
}

.cart-upsells-slider {
    --slider-gap: 20px;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
    gap: var(--slider-gap);
    padding: 0 0 15px;
    align-items: stretch;
}

.cart-upsells-slider::-webkit-scrollbar {
    display: none;
}

.cart-upsells-slider.products::before,
.cart-upsells-slider.products::after {
    display: none !important;
}

.cart-upsells-slider .slide-item {
    flex: 0 0 calc((100% - (3 * var(--slider-gap))) / 4);
    min-width: 0;
    box-sizing: border-box;
    display: flex;
}

.cart-upsells-slider .slide-item > .product,
.cart-upsells-slider .slide-item > li.product {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
}

.cart-upsells-slider .price {
    margin-top: auto;
}

.cart-upsells-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    z-index: 10;
    color: #009a3b;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cart-upsells-arrow svg {
    width: 24px;
    height: 24px;
}

.cart-upsells-arrow.prev {
    left: -3rem;
    transform: translateY(-50%) rotate(180deg);
}

.cart-upsells-arrow.next {
    right: -22px;
}

@media (max-width: 1024px) {
    .cart-upsells-slider .slide-item {
        flex: 0 0 calc((100% - var(--slider-gap)) / 2);
    }
}

@media (max-width: 767px) {
    .cart-upsells-viewport {
        padding: 16px 8px 0;
    }

    .cart-upsells-slider .slide-item {
        flex: 0 0 100%;
    }

    .cart-upsells-arrow.prev {
        left: -16px;
    }

    .cart-upsells-arrow.next {
        right: -8px;
    }
}

/* Checkout layout */
body.woocommerce-checkout .woocommerce-checkout .col2-set {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

body.woocommerce-checkout .woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .woocommerce-checkout .col2-set .col-2 {
    float: none;
    width: 100%;
}

@media only screen and (min-width: 992px) {
    body.woocommerce-checkout .woocommerce-checkout .col2-set .col-1 {
        width: calc(58% - 15px);
    }

    body.woocommerce-checkout .woocommerce-checkout .col2-set .col-2 {
        width: calc(42% - 15px);
    }
}

body.woocommerce-checkout .woocommerce-checkout .col-2 > h3 {
    font-family: "Merriweather", serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 15px;
}

body.woocommerce-cart .page-wrapper .container,
body.woocommerce-checkout .page-wrapper .container {
    max-width: 1200px;
}

body.woocommerce-cart .woocommerce .cart-collaterals,
body.woocommerce-cart .cart_totals {
    display: none !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table,
body.woocommerce-checkout .woocommerce-checkout .shop_table {
    background-color: #f5f5f5;
    border: none;
    border-radius: 0;
    padding: 22px 30px;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {
    font-size: 16px;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
    font-size: 14px;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-thumbnail img {
    width: 78px;
    height: 78px;
    object-fit: cover;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tr {
    font-size: 15px;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tr th {
    font-family: "Merriweather", serif;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tr td,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tr th {
    border: none;
    border-bottom: 1px solid #ccc;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr td,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr th {
    font-weight: 400;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr td {
    text-align: right;
}

body.woocommerce-checkout .woocommerce-checkout .select2-container .select2-selection,
body.woocommerce-checkout .woocommerce-checkout textarea {
    border: 1px solid #c2c2c2 !important;
    outline: none;
}

body.woocommerce-checkout .woocommerce-checkout .woocommerce-shipping-fields {
    margin: 30px 0 0;
}

body.woocommerce-checkout .woocommerce-checkout ul.wc-item-meta {
    display: none;
}

body.woocommerce-cart .woocommerce table.shop_table_responsive tr td::before,
body.woocommerce-cart .woocommerce table.shop_table_responsive tr th::before {
    font-weight: 600;
}

@media (max-width: 767px) {
    .custom-cart-wrapper .left_shop_table .cart-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-cart-wrapper .left_shop_table .cart-bottom .right {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}

.custom-cart-wrapper.no-suggested-products .left_shop_table table tr.buttons:last-of-type td,
.custom-cart-wrapper.no-suggested-products .left_shop_table table tr.buttons:last-of-type th {
    border-bottom: none !important;
}

