:root {
    --cart-gap-h: 100px;
    --cart-gap-v: 40px;
    --cart-totals-max-width: 707px;
    --cart-form-max-width: calc(100% - var(--cart-totals-max-width) - var(--cart-gap-h));
    --cart-item-thumbnail-width: 600px;
}

.gp-cart .woocommerce {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 2260px;
    margin: 0 auto;
}
.gp-cart .woocommerce-form-coupon-toggle {
    width: 100%;
}
.gp-cart .woocommerce-notices-wrapper {
    width: 100%;
}
.gp-cart .woocommerce-message,
.gp-cart .woocommerce-info,
.gp-cart .woocommerce-error {
    width: max-content;
    padding: 8px 16px;
    color: var(--Text-Main, #1C1C1C);
    font-size: 22px;
    line-height: 32px;
    background-color: #fff;
    border: 1px solid var(--Bg-Second, #F3F3F3);
    border-radius: 12px;
    outline: none;
    margin: 0 0 1em;
}
.gp-cart .woocommerce-message {
    border-left: 5px solid #0b944494;
}
.gp-cart .woocommerce-info {
    border-left: 5px solid #1e73be8f;
}
.gp-cart .woocommerce-error {
    border-left: 5px solid #B20200;
}
.gp-cart .woocommerce-message a,
.gp-cart .woocommerce-info a,
.gp-cart .woocommerce-error a {
    color: var(--Text-Main, #1C1C1C) !important;
    font-weight: 600;
}
.gp-cart .woocommerce-message a:hover,
.gp-cart .woocommerce-info a:hover,
.gp-cart .woocommerce-error a:hover {
    color: #000000 !important;
}
.gp-cart .woocommerce-cart-form,
.gp-cart .checkout {
    display: flex;
    align-items: flex-start;
    gap: 0 var(--cart-gap-h);
    width: 100%;
}

.gp-cart .checkout {
    flex-wrap: wrap;
}
.gp-cart .woocommerce-cart-form__contents {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: var(--cart-form-max-width);
    border-collapse: separate;
    border-spacing: 0 24px;
}
.gp-cart .cart-collaterals {
    position: sticky;
    top: calc(15px + var(--header-height));
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
    max-width: var(--cart-totals-max-width);
    padding: 24px 16px;
    border: 1px solid var(--Bg-Second, #F3F3F3);
    border-radius: 12px;
    z-index: 5;
}
.gp-cart .cart-collaterals:empty {
    display: none;
}
.gp-cart .cart-collaterals .cart_totals {
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 1;
}
.gp-cart .cart_item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 48px;
}
.gp-cart .product-contents {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    color: var(--Text-Main, #1C1C1C);
}
.gp-cart .cart-item-head {
    display: flex;
    gap: 16px;
}
.gp-cart .cart-item-head-left-side {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.gp-cart .cart-item-head-right-side {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}
.gp-cart .product-articul,
.gp-cart .product-name {
    color: var(--Text-Third, #BBB);
    font-size: 22px;
    line-height: 32px;
}
.gp-cart .product-name a {
    color: inherit;
    text-decoration: none;
}
.gp-cart .cart_item .product-remove .remove {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
    font-size: 0;
    border-radius: 30px;
    border: 1px solid rgba(243, 243, 243, 0.10) !important;
    background-color: var(--Bg-Second, #F3F3F3) !important;
    backdrop-filter: blur(6px);
    opacity: 1;
    transition: background-color 0.2s ease-in-out;
}
.gp-cart .cart_item .product-remove .remove:hover {
    background-color: rgb(0 0 0 / 30%) !important;
}
.gp-cart .cart_item .product-remove .remove:before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 27px;
    background-color: currentColor;
    -webkit-mask: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"> <path d="M19.7354 6.98438H4.22656" stroke="black" stroke-width="1.3" stroke-linecap="round"/> <path d="M18.214 9.26562L17.7943 15.5595C17.6328 17.9816 17.5521 19.1926 16.763 19.9308C15.9739 20.6691 14.7602 20.6691 12.3328 20.6691H11.6273C9.19985 20.6691 7.98615 20.6691 7.19702 19.9308C6.4079 19.1926 6.32716 17.9816 6.16569 15.5595L5.74609 9.26562" stroke="black" stroke-width="1.3" stroke-linecap="round"/> <path d="M9.39844 5.1605C9.77414 4.09752 10.7879 3.33594 11.9796 3.33594C13.1712 3.33594 14.185 4.09752 14.5607 5.1605" stroke="black" stroke-width="1.3" stroke-linecap="round"/> </svg> ') no-repeat center / contain;
    mask: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"> <path d="M19.7354 6.98438H4.22656" stroke="black" stroke-width="1.3" stroke-linecap="round"/> <path d="M18.214 9.26562L17.7943 15.5595C17.6328 17.9816 17.5521 19.1926 16.763 19.9308C15.9739 20.6691 14.7602 20.6691 12.3328 20.6691H11.6273C9.19985 20.6691 7.98615 20.6691 7.19702 19.9308C6.4079 19.1926 6.32716 17.9816 6.16569 15.5595L5.74609 9.26562" stroke="black" stroke-width="1.3" stroke-linecap="round"/> <path d="M9.39844 5.1605C9.77414 4.09752 10.7879 3.33594 11.9796 3.33594C13.1712 3.33594 14.185 4.09752 14.5607 5.1605" stroke="black" stroke-width="1.3" stroke-linecap="round"/> </svg> ') no-repeat center / contain;
}
.gp-cart .cart_item .product-thumbnail {
    flex: 0 0 auto;
    padding: 0;
}
.gp-cart .cart_item .product-thumbnail a,
.gp-cart .cart_item .product-thumbnail .product-thumbnail-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    width: var(--cart-item-thumbnail-width);
    aspect-ratio: 1.5;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}
.gp-cart .cart_item .product-thumbnail img {
    height: 100% !important;
    width: 100%;
    max-height: unset;
    max-width: unset;
    object-fit: contain;
}
.gp-cart .cart-collaterals .shop_table_responsive > *:not(:last-child):after {
    display: block;
    height: 1px;
    width: 100%;
    margin: 16px 0;
    background-color: var(--Bg-Second, #F3F3F3);
    clear: both;
    content: "";
}
.gp-cart .cart-collaterals .checkout-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    gap: 8px;
    margin: 0 !important;
    padding: 12px 11px !important;
    font-size: 22px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    text-transform: uppercase;
    background-color: var(--Brand-Default, #B20200) !important;
    border-radius: 30px;
}
.gp-cart .cart-item-prices {
    display: flex;
    align-items: center;
    gap: 4px;
}
.gp-cart .product-price {
    color: var(--Text-Third, #BBB);
    font-size: 22px;
    line-height: 32px;
    text-decoration-line: line-through;
}
.gp-cart .product-subtotal {
    color: var(--Text-Main, #1C1C1C);
    font-size: 28px;
    line-height: 36px;
    text-transform: uppercase;
}
.gp-cart .cart-item-meta {
    display: flex;
    align-items: center;
    color: var(--Text-Main, #1C1C1C);
    font-size: 22px;
    line-height: 32px;
}
.gp-cart .cart-item-meta > * {
    display: flex;
    align-items: center;
    gap: 4px;
}
.gp-cart .cart-item-meta p {
    margin: 0;
}
.gp-cart .cart-item-meta > *:not(:last-child):after {
    flex: 0 0 auto;
    display: inline-block;
    height: 32px;
    width: 1px;
    margin: 0 8px;
    background-color: var(--Bg-Second, #F3F3F3);
    border-radius: 10px;
    content: "";
}
.gp-cart .coupon-block-opener-wrapper {
    position: relative;
    margin-bottom: 16px;
}
.gp-cart .coupon-block-opener-wrapper:before {
    display: block;
    height: 1px;
    width: 100%;
    margin: 16px 0;
    background-color: var(--Bg-Second, #F3F3F3);
    clear: both;
    content: "";
}
.gp-cart .coupon-block-opener {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--Brand-Default-Black, #0F0F0F);
    font-size: 18px;
    line-height: 28px;
    cursor: pointer;
}
.gp-cart .coupon-block-opener:before {
    content: "";
    display: inline-block;
    height: 24px;
    width: 24px;
    border: 1px solid #0F0F0F;
}
.gp-cart .coupon-block-opener:after {
    content: "";
    position: absolute;
    left: 4px;
    display: inline-block;
    height: 16px;
    width: 16px;
    background-image: url("/wp-content/themes/generatepress_child/assets/img/icon/icon-pro.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: 0.2s opacity ease-in-out;
}
.gp-cart .coupon-block-opener:not(.active):after {
    opacity: 0;
    pointer-events: none;
}
.gp-cart .coupon-block-opener:not(.active):hover:after {
    opacity: 0.5;
}
.gp-cart .coupon {
    position: relative;
    transition: 0.2s max-height ease-in-out;
    overflow: hidden;
}
.gp-cart .coupon-block-opener-wrapper:not(.active) ~ .coupon {
    max-height: 0px;
}
.gp-cart .coupon-block-opener-wrapper.active ~ .coupon {
    max-height: 100%;
}
.gp-cart .coupon .coupon-label {
    position: absolute;
    top: -4px;
    left: 23px;
    padding: 0 4px;
    color: var(--Text-Second, #585858);
    font-size: 18px;
    line-height: 28px;
    background-color: #fff;
}
.gp-cart .coupon input {
    width: 100%;
    margin-top: 10px;
    padding: 12px 160px 12px 14px;
    color: var(--Text-Second, #585858);
    font-size: 22px;
    line-height: 32px;
    background-color: #fff;
    border: 1px solid var(--Text-Second, #585858);
    border-radius: 30px;
}
.gp-cart .coupon .button {
    position: absolute;
    top: 11px;
    right: 1px;
    height: 56px;
    color: var(--Brand-Default, #B20200);
    text-align: center;
    font-size: 20px;
    line-height: 30px;
    background-color: transparent;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    transition: all 0.2s ease-in-out;
}
.gp-cart .coupon .button:hover {
    color: var(--Brand-Default, #B20200);
    background-color: var(--Bg-Second, #F3F3F3);
}
.gp-cart .cart-discount {
    color: var(--Text-Main, #1C1C1C);
    font-size: 22px;
    line-height: 32px;
}
.gp-cart .cart-discount span[data-title*="Coupon"] {
    float: right;
}
.gp-cart .cart-shipping {
    color: var(--Text-Main, #1C1C1C);
    font-size: 22px;
    line-height: 32px;
}
.gp-cart .cart-total-discounts {
    color: var(--Text-Main, #1C1C1C);
    font-size: 22px;
    line-height: 32px;
}
.gp-cart .total-before-discount strong,
.gp-cart .cart-total-discounts > .discount strong,
.gp-cart .cart-shipping .woocommerce-Price-amount.amount,
.gp-cart .discount > strong {
    float: right;
    font-weight: 400 !important;
}
.gp-cart .cart-total-discounts .woocommerce-Price-amount.amount {
    font-weight: 400 !important;
}
.gp-cart .order-total,
.gp-cart.gp-cart-with-sticky-blocks .cart-collaterals .order-total-price {
    color: var(--Text-Main, #1C1C1C);
    font-size: 46px;
    line-height: 53px;
    text-transform: uppercase;
}
.gp-cart .order-total strong,
.gp-cart .order-total-price strong {
    float: right;
    font-weight: 400;
}
.gp-cart .order-total .includes_tax {
    display: block;
    width: 100%;
    color: var(--Text-Third, #BBB);
    text-transform: none;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

.gp-cart .cart_totals .woocommerce-shipping-destination,
.gp-cart .woocommerce-checkout-review-order-table .cart-subtotal,
.gp-cart .cart_totals .cart-subtotal,
.gp-cart .cart-item-meta .wcpa_cart_price,
.gp-cart .cart-shipping .tax_label,
.gp-cart .cart_item .tax_label,
.gp-cart .woocommerce-notices-wrapper:empty {
    display: none !important;
}

.gp-cart #customer_details,
.gp-cart #order_review {
    float: none;
    flex: 1;
}

.gp-cart form.woocommerce-checkout .woocommerce-NoticeGroup {
    flex: 0 0 100%;
}

.checkout-group-label {
    color: var(--Brand-Default-Black);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
    display: block;
}

.checkout-group-label:not(:first-of-type) {
    padding-top: 40px !important;
}

.woocommerce form .woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce form .woocommerce-shipping-fields .form-row {
    position: relative;
    margin-bottom: 12px;
}

.woocommerce form .woocommerce-billing-fields__field-wrapper .form-row label,
.woocommerce form .woocommerce-shipping-fields .form-row label {
    color: var(--Text-Second, #585858);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    position: absolute;
    left: 26px;
    top: -8px;
    background: white;
    padding: 0px 8px;
    z-index: 1;
}

.woocommerce form .woocommerce-billing-fields__field-wrapper .form-row input,
.woocommerce form .woocommerce-shipping-fields .form-row input,
.woocommerce form .woocommerce-billing-fields__field-wrapper .select2-container .select2-selection,
.woocommerce form .woocommerce-shipping-fields .select2-container .select2-selection {
    border-radius: 30px;
    border: 1px solid #BEBEBE;
    padding-left: 14px;
    color: var(--Text-Second, #585858);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
}

.woocommerce form .woocommerce-billing-fields__field-wrapper .select2-container .select2-selection--single .select2-selection__rendered,
.woocommerce form .woocommerce-shipping-fields .select2-container .select2-selection--single .select2-selection__rendered {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
}

.woocommerce form .woocommerce-billing-fields__field-wrapper .form-row input:focus,
.woocommerce form .woocommerce-shipping-fields .form-row input:focus {
    border: 1px solid var(--Text-Second, #585858);
}

.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: #b20200;
    color: #fff;
}

.woocommerce form .woocommerce-billing-fields > h3,
h3#order_review_heading {
    display: none;
}

#billing_is_business_customer_field label.checkbox {
    position: relative;
    left: auto;
    top: auto;
    padding: 0;
}

#billing_is_business_customer_field input {
    margin-right: 0;
}

.gp-cart .checkout:before,
.gp-cart .checkout:after {
    content: unset;
}
.gp-cart .checkout .col2-set {
    width: 100%;
    max-width: var(--cart-form-max-width);
    margin: 0;
}
.gp-cart .woocommerce-checkout-review-order {
    flex: 0 0 auto;
    width: 100% !important;
    max-width: var(--cart-totals-max-width);
    padding: 24px 16px;
    border-radius: 12px;
    border: 1px solid var(--Bg-Second, #F3F3F3);
}
.gp-cart .shop_table.woocommerce-checkout-review-order-table {
    color: var(--Text-Main, #1C1C1C);
    font-size: 18px;
    line-height: 27px; /* 150% */
}
.gp-cart .shop_table.woocommerce-checkout-review-order-table > *:not(:last-child):after {
    display: block;
    height: 1px;
    width: 100%;
    margin: 16px 0;
    background-color: var(--Bg-Second, #F3F3F3);
    clear: both;
    content: "";
}
.gp-cart .shop_table.woocommerce-checkout-review-order-table .cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.gp-cart .shop_table.woocommerce-checkout-review-order-table .product-total {
    flex: 0 0 auto;
    margin-left: auto;
}
.gp-cart .shop_table.woocommerce-checkout-review-order-table .cart-item-meta {
    font-size: 18px;
    line-height: 28px;
}
.gp-cart .shop_table.woocommerce-checkout-review-order-table .discount {
    color: var(--Brand-Default, #B20200);
}

.woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-checkbox-text {
    color: var(--Text-Second, #585858);
    font-size: 16px;
    line-height: 24px; /* 150% */
}

.gp-cart button#place_order {
    display: flex;
    justify-content: center;
    padding: 12px 11px !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 32px;
    text-transform: uppercase;
    background-color: var(--Brand-Default, #B20200) !important;
    border-radius: 30px;
}

.woocommerce-privacy-policy-text p {
    margin-bottom: 0;
}
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-checkbox-text {
    font-size: 14px;
}

.gp-cart .wc-back-to-shopping {
    padding: 1em 0;
    text-align: center;
}
.gp-cart .back-to-shopping-btn {
    color: var(--Brand-Black-Default, #585858);
    text-decoration: none;
    text-align: center;
    font-size: 22px;
    line-height: 32px;
    letter-spacing: 0.88px;
    text-transform: uppercase;
}

.gp-cart.gp-cart-with-sticky-blocks .cart-collaterals:not(.sticky) .sticky-visible,
.gp-cart:not(.gp-cart-with-sticky-blocks) .cart-collaterals .sticky-visible {
    display: none;
}

@media (max-width: 1920px) {
    :root {
        --cart-gap-h: 80px;
        --cart-totals-max-width: 599px;
        --cart-item-thumbnail-width: 550px;
    }

    .gp-cart .coupon-block-opener,
    .gp-cart .coupon .button,
    .gp-cart .cart-collaterals .checkout-button,
    .gp-cart .order-total .includes_tax,
    .gp-cart .back-to-shopping-btn {
        font-size: 14px !important;
        line-height: 24px !important;
    }
    .gp-cart .woocommerce-message,
    .gp-cart .woocommerce-info,
    .gp-cart .woocommerce-error,
    .gp-cart .coupon input,
    .gp-cart .cart-item-meta,
    .gp-cart .product-articul,
    .gp-cart .product-name,
    .gp-cart .product-price {
        font-size: 16px !important;
        line-height: 24px !important;
        max-width: 100%;
    }
    .gp-cart .cart-discount,
    .gp-cart .cart-shipping,
    .gp-cart .cart-total-discounts,
    .gp-cart .product-subtotal {
        font-size: 18px !important;
        line-height: 28px !important;
    }
    .gp-cart .coupon .button {
        height: 48px;
    }
    .gp-cart .order-total,
    .gp-cart.gp-cart-with-sticky-blocks .cart-collaterals .order-total-price {
        font-size: 28px;
        line-height: 36px;
    }
    .gp-cart .cart_item {
        gap: 32px;
    }
    .gp-cart .cart_item .product-remove .remove {
        height: 34px;
        width: 34px;
    }
    .gp-cart .cart_item .product-remove .remove:before {
        height: 18px;
        width: 18px;
    }

    @media (max-width: 1680px) {
        :root {
            --cart-item-thumbnail-width: 460px;
        }

        @media (max-width: 1440px) {
            :root {
                --cart-gap-h: 60px;
                --cart-totals-max-width: 368px;
            }

            @media (max-width: 1280px) {
                :root {
                    --cart-form-max-width: 100%;
                    --cart-totals-max-width: 100%;
                }

                .gp-cart .woocommerce-cart-form,
                .gp-cart .checkout {
                    flex-direction: column;
                }

                .gp-cart.gp-cart-with-sticky-blocks .cart-collaterals .wc-proceed-to-checkout {
                    position: fixed;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    display: flex;
                    flex-direction: column;
                    padding: 16px 37px;
                    background-color: #fff;
                    border-top: 1px solid rgba(0, 0, 0, 0.15);
                    z-index: 5;
                }
                .gp-cart.gp-cart-with-sticky-blocks .cart-collaterals .order-total-price {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    margin-bottom: 16px;
                }

                @media (max-width: 768px) {
                    :root {
                        --cart-gap-h: 16px;
                        --cart-gap-v: 16px;
                        --cart-item-thumbnail-width: 343px;
                    }

                    .gp-cart .checkout {
                        row-gap: var(--cart-gap-v) 0;
                    }

                    .gp-cart .inside-article {
                        padding: 24px 16px;
                    }
                    .gp-cart .woocommerce-cart-form__contents {
                        gap: 16px;
                    }
                    .gp-cart .cart_item {
                        gap: 16px;
                    }
                    .gp-cart .cart_item .product-remove .remove {
                        height: 40px;
                        width: 40px;
                    }

                    .proceed-to-checkout-sticky-wrapper {
                        display: none !important;
                    }

                    .gp-cart.gp-cart-with-sticky-blocks .cart-collaterals .wc-proceed-to-checkout {
                        padding: 16px;
                    }

                    @media (max-width: 650px) {
                        :root {
                            --cart-item-thumbnail-width: 100%;
                        }

                        .gp-cart .woocommerce-cart-form__contents {
                            gap: 24px;
                        }
                        .gp-cart .cart_item {
                            flex-direction: column;
                        }
                        .gp-cart .cart_item .product-thumbnail {
                            width: 100%;
                        }
                    }
                }
            }
        }
    }
}
