/* _____CART_____ */

body.woocommerce-cart main {
    display: flex;
    width: 100%;
    gap: 35px;
    padding: 0 15px 25px;
}

body.woocommerce-cart main .container.main-slider{
    display: none;
}

body.woocommerce-cart main article#post-13 {
    width: 100%;
}

body.woocommerce-cart main aside#secondary {
    min-width: 312px;
}

body.woocommerce-cart main .wp-block-woocommerce-cart-order-summary-shipping-block.wc-block-components-totals-wrapper {
    display: none;
}

body.woocommerce-cart main a.components-button.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
    font-size: 13px;
    font-weight: 700;
    background-image: linear-gradient(to right, #03a4db, #0097d5, #0089ce, #007cc6, #006ebd);
    padding: 20px 40px;
    border-radius: 40px;
    text-transform: uppercase;
    color: white;
}


header#masthead {
    z-index: 1000;
}

.second-header {
    background-color: #fff;
}



/* _____CHECKOUT_____ */

.woocommerce-checkout main.main {
    display: flex;
    width: 100%;
    display: flex;
    width: 100%;
    gap: 35px;
    padding: 0 15px 25px;
}

.woocommerce-checkout aside#secondary {
    min-width: 312px;
}

.woocommerce-checkout table.shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents tr:last-child {
    display: none;
}

.woocommerce-checkout header.entry-header h1, .woocommerce-cart header.entry-header h1 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 12px;
}

header ul.sub-menu li a {
	    color: #000 !important;
   -webkit-text-fill-color: #000;
}
/* ___Search___ */

.header-search-wrapper {
    position: relative;
}

.search-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

form.woocommerce-product-search {
    width: 100%;
    display: flex;
}

input#woocommerce-product-search-field-0 {
    display: flex;
    width: 100%;
    padding: 5px;
    padding: 5px;
    border: 1px solid #03a3db;
    border-right: none;
}

.header-search {
    position: absolute;
    top: 50px; /* Настройте, чтобы форма поиска располагалась под иконкой */
    right: 0;
    width: 280px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 9999;
}

form.woocommerce-product-search button {
    cursor: pointer;
    padding: 10px;
    border: none;
    background-image: linear-gradient(to right, #03a4db, #0097d5, #0089ce, #007cc6, #006ebd);
    font-weight: 600;
    color: #fff;
}

.hidden {
    display: none;
}


/* ___ */

.woocommerce-checkout header.entry-header::after {
    content: '';
    display: block;
    width: 180px;
    height: 2px;
    background-image: url('/wp-content/themes/praotech/assets/images/Line 21.png');
    background-size: contain;
    background-position: center;
    margin: 0px auto 20px;
}

.woocommerce-cart header.entry-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-image: url('/wp-content/themes/praotech/assets/images/Line 21.png');
    background-size: contain;
    background-position: center;
    margin: 0px auto 20px;
}

.wc-block-cart-item__quantity .wc-block-components-quantity-selector:after{
    border: none;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    color: #0089ce !important;
    font-size: 24px !important;
}

.wp-block-woocommerce-cart.alignwide .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    width: 40px;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    margin: 0 5px;
    border: none;
    outline: none;
    padding: 0;
}

.wp-block-woocommerce-cart.alignwide .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input:focus {
    box-shadow: none;
}

.wp-block-woocommerce-cart.alignwide .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    padding-bottom: 4px;
}

/* корзина в чекауте */

.custom-cart {
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 40px 50px;
    font-size: 16px;
}

.custom-cart .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.custom-cart .cart-header h2 {
    font-size: 20px;
    font-weight: 600;
}
.custom-cart .clear-cart {
    text-decoration: underline;
    color: #000;
}

.custom-cart .cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.custom-cart .cart-item .product-name {
    flex: 2;
}

.custom-cart .cart-item .quantity-buttons {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.custom-cart .cart-item .quantity-buttons button {
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.custom-cart .cart-item .quantity-buttons input {
    width: 40px;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    margin: 0 5px;
    border: none;
    outline: none;
}

.custom-cart .cart-item .product-price {
    flex: 1;
    text-align: right;
}
.custom-cart .cart-footer {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 27px;
}

.custom-cart .quantity {
    margin: 12px 5px;
}

.cart-footer_recount {
    display: flex;
    width: 100%;
    justify-content: end;
}

.custom-cart .cart-footer .update-cart {
    background-color: transparent !important;
    color: #000 !important;
    font-weight: 400 !important;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 !important;
}

.custom-cart .cart-footer .total-sum {
    font-size: 16px;
    font-weight: 400 !important;
}

.custom-cart .cart-footer .total-sum span.woocommerce-Price-amount.amount {
    padding-left: 10px;
}


/* форма "Дані для замовлення" */
form.checkout.woocommerce-checkout div#customer_details {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.woocommerce-billing-fields h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 37px;
}

.woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.woocommerce-billing-fields__field-wrapper p.form-row  {
    width: 100%;
    padding: 0;
    margin: 0;
}

.woocommerce-additional-fields p#order_comments_field {
    padding: 0;
    margin: 0;
}

.woocommerce-billing-fields__field-wrapper p.form-row label {
    display: none;
}

.woocommerce-billing-fields__field-wrapper p.form-row input, form.checkout.woocommerce-checkout .col-2 .woocommerce-additional-fields__field-wrapper textarea, p#billing_shipping_method_field .select-selected {
    padding: 15px 20px;
    border: 1px solid #E3E2E2;
    border-radius: 7px;
    font-size: 14px;
    color: #5C5B5B;
    width: 100%;
}

form.checkout.woocommerce-checkout .col-2 .woocommerce-additional-fields__field-wrapper label {
    display: none;
}

form.checkout.woocommerce-checkout .col-2 .woocommerce-additional-fields__field-wrapper textarea {
    resize: none;
    width: 100%;
    height: 81px;
}

form.checkout.woocommerce-checkout .col2-set .col-1, form.checkout.woocommerce-checkout .col2-set .col-1, form.checkout.woocommerce-checkout .col2-set .col-2, form.checkout.woocommerce-checkout .col2-set .col-2 {
    float: left;
    width: 100%;
    max-width: 450px;
}

form.checkout.woocommerce-checkout div#customer_details, .woocommerce-billing-fields_props {
    margin-top: 35px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 40px 50px;
    font-size: 16px;
}

/* Убираем стандартные стрелки в Chrome, Safari и Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Убираем стандартные стрелки в Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* Убираем стандартные стрелки в Edge */
input[type="number"]::-ms-clear {
    display: none;
}

.woocommerce-billing-fields_props h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 19px;
}

p.woocommerce-billing-fields_props__subtitle {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 31px;
}

.woocommerce-billing-fields_props .woocommerce-billing-fields__field-wrapper {
    max-width: 450px;
    width: 100%;
}

table.shop_table.woocommerce-checkout-review-order-table, ul.wc_payment_methods.payment_methods.methods, .woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text {
    display: none;
}

div#order_review div#payment {
    background: transparent;
}

div#payment .form-row.place-order {
    padding: 0;
    margin: 0;
}

div#payment .form-row.place-order button#place_order {
    font-size: 13px;
    font-weight: 700;
    background-image: linear-gradient(to right, #03a4db, #0097d5, #0089ce, #007cc6, #006ebd);
    padding: 20px 40px;
    border-radius: 40px;
    text-transform: uppercase;
    color: white;
    float: left;
}

form.checkout.woocommerce-checkout div#order_review {
    margin-top: 24px;
}

main#primary {
    width: 100%;
}

.woocommerce-message {
    border-top-color: #0089ce !important;
}

.woocommerce-message::before {
    color: #0089ce !important;
}


/* Стилизация кастомного селекта */
.custom-select {
    position: relative;
    font-family: Arial, sans-serif;
    width: 100%;
}

.custom-select select {
    display: none; /* Скрываем стандартный селект */
}

.select-selected {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.select-selected:after {
    content: ''; /* Стрелка вниз */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    pointer-events: none;
    width: 12px;
    height: 12px;
    background: url('../images/arrow-down.png') no-repeat center center;
    background-size: contain;
    transition: 0.3s ease all;
}

.select-selected.select-arrow-active:after {
    transform: translateY(-50%) rotate(180deg);
    transition: 0.3s ease all;
}

.select-items {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 99;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-sizing: border-box;
    -webkit-box-shadow: 0px 8px 28px 0px rgba(0,0,0,0.12);
    -moz-box-shadow: 0px 8px 28px 0px rgba(0,0,0,0.12);
    box-shadow: 0px 8px 28px 0px rgba(0,0,0,0.12);
}

.select-items div {
    padding: 10px;
    cursor: pointer;
}

.select-items div:hover {
    background-color: #ddd;
}

.select-hide {
    display: none;
}

.same-as-selected {
    background-color: #ddd;
}

.np-office-field {
    display: none;
}

.col-1 .woocommerce-billing-fields__field-wrapper p#billing_business_name_field, .col-1 .woocommerce-billing-fields__field-wrapper p#billing_ipn_field, .col-1 .woocommerce-billing-fields__field-wrapper p#billing_edrpou_field, .col-1 .woocommerce-billing-fields__field-wrapper .woocommerce-billing-fields__field-wrapper p.form-row{
    display: none;
}

/* ПОРОЖНИЙ КОШИК */

.empty-cart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0 50px;
}

.empty-cart-message {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(to right, #03a4db, #0097d5, #0089ce, #007cc6, #006ebd);
    -webkit-background-clip: text;
    color: transparent;
    margin: 45px 0 20px;
}

.shop-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 40px;
    text-transform: uppercase;
    color: white;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(to right, #03a4db, #0097d5, #0089ce, #007cc6, #006ebd);
    border: none;
    transition: 0.3s ease all;
    border: 4px solid #fff;
}

.shop-button:hover {
    background: linear-gradient(to left, #03a4db, #0097d5, #0089ce, #007cc6, #006ebd);
    border: 4px solid #fff;
    box-shadow: 0 0 8px #0097d5;
}


/* thank you page */

.thankyou-wrapper {
    text-align: center;
    padding: 50px 20px;
    color: #000;
    background: transparent;
}
.thankyou-header {
    font-size: 36px;
    margin-bottom: 20px;
    color: #000;
    background: -webkit-linear-gradient(left, #03a4db, #0097d5, #0089ce, #007cc6, #006ebd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.thankyou-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #000;
    background: -webkit-linear-gradient(left, #03a4db, #0097d5, #0089ce, #007cc6, #006ebd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.thankyou-button {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 30px;
    background: -webkit-linear-gradient(left, #03a4db, #0097d5, #0089ce, #007cc6, #006ebd);
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}
.thankyou-button:hover {
    background: -webkit-linear-gradient(left, #006ebd, #007cc6, #0089ce, #0097d5, #03a4db);
}
.thankyou-details {
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
}

/* Опис товарів */


@media (max-width: 1108px) {
    body.woocommerce-cart main#primary {
        margin: 0;
    }

    /* checkout */
    .woocommerce-checkout main#primary {
        margin-top: 0;
    }
}


@media (max-width: 860px) {
    .woocommerce-checkout main.main {
        flex-direction: column;
        align-items: center;
    }
}


@media (max-width: 768px) {
    body.woocommerce-cart main .sidebar {
        padding: 15px 25px;
    }

    body.woocommerce-cart main {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 35px;
        padding: 0 15px 25px;
    }


    /* checkout */

    .woocommerce-checkout header.entry-header h1, .woocommerce-cart header.entry-header h1 {
        font-size: 20px;
    }

    .woocommerce-billing-fields_props h3 {
        font-size: 16px;
    }

    .woocommerce-billing-fields h3 {
        text-align: center;
    }

    p.woocommerce-billing-fields_props__subtitle {
        font-size: 14px;
    }

    div#payment .form-row.place-order button#place_order {
        padding: 16.8px 20px;
    }

    .custom-cart {
        font-size: 14px;
    }

    form.checkout.woocommerce-checkout div#customer_details, .woocommerce-billing-fields_props, .custom-cart {
        padding: 24px 27px;
    }

    .custom-cart .cart-header h2 {
        font-size: 16px;
    }

    .custom-cart .cart-item .product-name {
        flex: auto;
    }

    .custom-cart .cart-item {
        flex-wrap: wrap;
    }

    .custom-cart .cart-item .product-price {
        order: 2;
        text-align: left;
    }
    
    .cart-item .quantity-block {
        order: 3;
    }
    
    .cart-item .product-name {
        order: 1;
    }

    .woocommerce-checkout aside#secondary {
        min-width: auto;
    }

    .woocommerce-checkout main.main .sidebar {
        padding: 10px 25px 20px;
    }

    .header-search {
        right: -110px;
    }
}