/*
Theme Name: Konte Child Theme
Theme URI: http://konte.uix.store/
Author: UIX Themes
Author URI: http://uix.store
Description: A fully responsive Premium WordPress Theme with a pixel perfect design and extensive functionality
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: konte
Tags: one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Template: konte
*/

/* Global styles */
.no-events {
    pointer-events: none !important;
}

.next-posts-navigation a {
    font-size: 8px !important;
}

.wcus-checkout-fields.wcus-checkout-np-fields {
    display: block !important;
}

.woocommerce .quantity-dropdown .qty-options {
    top: 35px;
}

/* Collection page */

body.post-type-archive {
    li.product {
        .woocommerce-loop-product__title {
            > a {
                min-height: 50px;
                display: block;
            }
        }
    }
}

/* Product page */

.woocommerce div.product.layout-v4 {
    .variations {
        tbody {
            display: flex !important;
            flex-direction: column;
        }

        tr {
            width: 100% !important;
        }
    }

    .summary {
        padding-left: 50px;
    }
}

body.single-product {

    .woocommerce-product-gallery .flex-viewport {
        height: clamp(588px, 77vh, 855px) !important;

        /* min-height: 588px !important; */

        a img {
            object-fit: cover;
            height: clamp(588px, 77vh, 855px) !important;
        }
    }

    .custom-variation-buttons {
        a, button {
            border: 1px solid rgba(0, 0, 0, 0.2);
            padding: 5px 10px;
            margin-right: 10px;
            display: inline-flex;
            transition: .3s all ease-in-out;
            background: transparent;
            color: #000;
            font-weight: 400;
            line-height: 1.5555555556;
            margin-bottom: 10px;

            &.active {
                border: 1px solid rgba(0, 0, 0, 1);
            }

            &:hover {
                border: 1px solid rgba(0, 0, 0, 1);
            }
        }

        &[data-attribute_name="pa_rozmir"] {
            button {
                position: relative;

                &::after {
                    content: "Діаметр: " attr(data-d);
                    visibility: hidden;
                    opacity: 0;
                    transition: opacity 0.2s ease;

                    width: max-content;
                    max-width: 200px;
                    background-color: black;
                    color: #fff;
                    text-align: center;
                    border-radius: 6px;
                    padding: 5px 8px;
                    position: absolute;
                    z-index: 1;
                    top: 150%;
                    left: 50%;
                    transform: translateX(-50%);
                    white-space: nowrap;
                }

                &:hover {
                    &::after {
                        visibility: visible;
                        opacity: 1;
                    }
                }

                &.p-type-diametr {
                    &::after {
                        content: "Діаметр: " attr(data-d);
                    }
                }

                &.p-type-width {
                    &::after {
                        content: "Ширина: " attr(data-w);
                    }
                }

                &.p-type-length {
                    &::after {
                        content: "Довжина: " attr(data-l);
                    }
                }
            }
        }
    }

    table.variations {
        tr:not(:first-child) {
            .label {
                padding-top: 0;
            }
        }
    }

    .single_add_to_cart_button {
        padding: 0 20px;
    }

    .summary.entry-summary {
        > .price {
            font-size: 1.5rem;
        }
    }

    .extra-linked-product {
        .variable-item-contents {
            opacity: 1 !important;

            &::before {
                display: none !important;
            }
        }

        &.active {
            box-shadow: 0 0 0 1px #000 !important;

            .variable-item-span-button {
                color: #000 !important;
                opacity: 1 !important;
            }
        }
    }

    form .woocommerce-Price-amount.amount {
        font-size: 1.5rem;
    }

    .product-type-variable .entry-summary > .price {
        display: none !important;
    }

    .product_title {
        .product-color {
            display: none;
        }
    }

    .variable-item.button-variable-item {
        border-radius: 0 !important;
    }

    .variations {
        td.woo-variation-items-wrapper {
            padding-top: 0;
        }

        th.label {
            padding-bottom: 0;
        }
    }

    .dimmentions-info {
        display: flex;
        align-items: center;
        padding-bottom: 16px;

        .dimmentions-wrap {
            padding-left: 16px;
            display: flex;

            flex-direction: column;
            font-size: 14px;

            max-width: 195px;
            width: 100%;

            > span {
                display: flex;
                position: relative;
                justify-content: space-between;

                &:first-child {
                    > span {
                        &:last-child {
                            &::before {
                                content: '~';
                                font-size: 21px;
                                top: -5px;
                                position: absolute;
                                margin-left: -13px;
                            }
                        }

                    }
                }
            }
        }

        &.pot {
            .dimmentions-wrap {
                max-width: 205px;

                > span {


                    &:first-child {
                        > span {
                            &:last-child {
                                &::before {
                                    display: none;
                                }
                            }

                        }
                    }
                }
            }
        }
    }
}

#primary .sticky-cart-form form.variations_form .variations {
    display: none !important;
}

/* .sticky-cart-form--bottom {
    table.variations tbody {
        display: flex !important;
        flex-direction: row !important;
            th.label {
                padding-bottom: 3px !important;
            }
            tr {
                display: flex !important;
                    flex-direction: column !important;
                    align-items: start !important;
                    justify-content: center !important;
            }
            
        }
        .custom-variation-buttons {
            .variation-btn, a {
                margin-bottom: 10px;
            }
        }
} */


ul.products .product-inner .buttons {
    transform: none !important;
    opacity: 1 !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

ul.products .product-inner .product-summary {
    /* transform: translateY(-40px) !important; */
    transform: translateY(0) !important;
    background-color: #fff !important;
    @media (min-width: 768px) {
        min-height: 145px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

ul.products .product-inner {
    color: #161619 !important;
    background-color: #fff !important;
    box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, .1) !important;
    transition: box-shadow .4s !important;
}

ul.products .single-variation-product .buttons {
    display: flex;
}

ul.products .single-variation-product .buttons form {
    margin-right: auto;
    display: flex;

    button {
        margin-left: 0;
        font-weight: 600;
    }
}

ul.products .single-variation-product .button:nth-of-type(2) {
    margin-left: 14px !important;
}

/* Checkout */

form.checkout.woocommerce-checkout {
    display: flex;

    .col2-set {
        flex: 1;
        max-width: 50%;

        .col-1,
        .col-2 {
            width: 100%;
            max-width: 595px;

            padding: 0 40px 0 15px;

            .input-text {
                border-bottom: 1px solid #000;
                font-size: 18px;
            }
            @media (max-width: 1199.98px) {
                padding: 0 15px 0 15px;
            }

            @media (max-width: 767.98px) {
                max-width: 100%;

                padding: 15px 15px 0 15px;
                .input-text {
                    border-bottom: 1px solid #000;
                    font-size: 14px;
                    padding: 10px 0;
                }
            }
        }
        .col-1 {
            padding-top: 20px;
        }
        @media (max-width: 767.98px) {
            .col-2,.col-1 {
                padding-top: 0;
            }
        }
    }
}

#post-8 .entry-header {
    display: none;
}

body.woocommerce-checkout {
    .container {
        width: 100%;
        padding: 0;
    }

    .header-center-items,
    .header-account,
    .header-search,
    .cart-counter,
    #order_review_heading,
    .woocommerce-shipping-totals.shipping,
    label[for="billing_phone"],
    label[for="billing_email"],
    label[for="order_comments"],
    #shipping_method,
    .cart-subtotal,
    .woocommerce-billing-fields > h3,
    #colophon,
    .items-checkout-header,
    .woocommerce-terms-and-conditions-wrapper,
    .payment_box.payment_method_mono_gateway {
        display: none !important;
    }

    #masthead {
        border-bottom: 1px solid #80808024;
    }

    .header-main {
        height: 60px;
    }

    #content {
        padding: 0;
    }

    .entry-content {
        margin: 0;
    }

    #customer_details {
        max-width: 55%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding-top: 1px;

        @media (max-width: 767.98px) {
            max-width: 100%;
        }

        .woocommerce-input-wrapper {
            margin-right: 0;
        }

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

        .billing-names-wrap {
            display: flex;
            gap: 30px;
            @media (max-width: 1199.98px) {
                gap: 15px;
            }
            .form-row {
                width: 50% !important;
                padding: 0 !important;
                margin: 0 0 15px 0;
            }
        }

        .billing-contact-wrap {
            display: flex;
            gap: 30px;

            @media (max-width: 1199.98px) {
                gap: 15px;
            }

            .form-row {
                width: 50%;
                margin: 0 0 15px 0;
            }
        }

        .wcus-checkout-np-fields {
            > h3 {
                font-size: 18px;
                font-weight: 600;
                margin: 15px 0 25px 0;
                @media (max-width: 767.98px) {
                    font-size: 15px;
                    margin: 15px 0 15px 0;
                }
            }

            > div {
                > p.form-row.form-row-wide.validate-required {
                    display: none;
                }
            }

            .zen-ui-select {
                max-width: 540px;
            }

            .zen-ui-select__value {
                border: none;
                padding: 9px 28px 9px 0px !important;
                border-bottom: 1px solid #000;
            }
            @media (max-width: 767.98px) {
                .zen-ui-select__dropdown {
                    .zen-ui-select__search-input,
                    .zen-ui-select__option {
                        font-size: 14px;
                    }

                }
            }


            /* Custom radio btn */

            .np-mode-radios {
                display: flex;
                gap: 20px;
                margin: 20px 0;
                @media (max-width: 767.98px) {
                    gap: 15px;
                    margin: 15px 0;
                }
            }

            .np-mode-radios input[type="radio"] {
                position: absolute;
                opacity: 0;
                width: 0;
                height: 0;
            }

            .np-mode-radios label {
                position: relative;
                padding-left: 28px;
                cursor: pointer;
                color: #000;
                font-weight: 500;
                line-height: 1.3;
                user-select: none;
                @media (max-width: 767.98px) {
                    font-size: 14px;
                    margin-right: 0 !important;
                }
            }

            .np-mode-radios label::before {
                content: "";
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 18px;
                height: 18px;
                border: 2px solid #000;
                border-radius: 50%;
                background: #fff;
            }

            .np-mode-radios label:has(input[type="radio"]:checked)::after {
                content: "";
                position: absolute;
                left: 4px;
                top: 50%;
                transform: translateY(-50%);
                width: 10px;
                height: 10px;
                border-radius: 50%;
                background: #000;
            }

            .np-mode-radios label.is-active::after {
                content: "";
                position: absolute;
                left: 4px;
                top: 50%;
                transform: translateY(-50%);
                width: 10px;
                height: 10px;
                border-radius: 50%;
                background: #000;
            }
            @media (max-width: 767.98px) {
                .woocommerce-input-wrapper {
                    .zen-ui-select__value-text {
                        font-size: 14px;
                    }
                }
            }
        }

        .woocommerce-shipping-fields {
            margin: 0;
        }

        .woocommerce-checkout-payment {
            border: none;

            .payment_methods,
            .place-order {
                margin: 0;
            }

            .wc_payment_methods li > label {
                display: flex;
                justify-content: space-between;
                @media (max-width: 767.98px) {
                    font-size: 14px;
                }
            }
            @media (max-width: 767.98px) {
                padding-top: 0;
                .payment_methods {
                    padding-bottom: 0;
                }
                .wc_payment_methods li {
                    padding: 15px 0;
                    margin: 0;
                }
            }
        }

        .woocommerce-additional-fields {
            border: none;

            > h3 {
                display: none;
            }
        }
        .form-row {
            > label {
                display: none !important;
            }
        }
        @media (max-width: 767.98px) {
            .form-row {
                &.notes {
                    margin-top: 0;
                    margin-bottom: 0;
                }
            }
        }

    }

    #order_details_jb {
        max-width: 45%;

        background: #F5F5F5;
        margin-top: 0 !important;
        width: 100% !important;
        border-left: solid 1px rgba(0, 0, 0, 0.1);
        border-top: solid 1px rgba(237, 237, 237, 1);
        position: sticky;
        top: 60px;
        height: calc(100vh - 60px);
        overflow: hidden;

        @media (max-width: 767.98px) {
            max-width: 100%;
            border-left: none;
            border-top: solid 1px rgba(0, 0, 0, 0.1);
            border-bottom: solid 1px rgba(0, 0, 0, 0.1);
            position: relative;
            top: unset;
            height: unset;
        }

        #order_review {
            padding: 23px 15px 0 40px;
            max-width: 455px;

            .checkout-total-mobile {
                display: none;
            }

            @media (max-width: 1199.98px) {
                padding: 15px 15px 0 15px;
            }

            @media (max-width: 767.98px) {
                max-width: 100%;
                margin: 0;
                padding: 15px 15px 15px 15px;
                .checkout-total-mobile {
                    display: flex !important;
                    cursor: pointer;
                    font-size: 14px;
                    &::after {
                        content: "";
                        border: solid black;
                        border-radius: 1px;
                        display: inline-block;
                        transform: rotate(45deg);
                        position: relative;
                        transition: .3s all ease-in-out;
                        border-width: 0 1px 1px 0;
                        padding: 3px;
                        width: 5px;
                        height: 5px;
                        top: 7px;
                        right: -7px;
                    }
                    &.opened {
                        &::after {
                            transform: rotate(225deg);
                            top: 10px;
                        }
                    }
                }
                .cart-items-order-review {
                    .cart-items-list-wrap {
                        padding: 20px 0 5px 0;
                    }
                    .cart_item {
                        margin-bottom: 16px;
                        &:last-of-type {
                            margin-bottom: 0;
                        }
                        .product-name {
                            p {
                                font-size: 14px;
                            }
                        }
                        .product-total {
                            font-size: 14px;
                        }
                        .img-and-quantity {
                            margin-right: 10px;
                        }
                    }
                }
            }

            .woocommerce-checkout-review-order-table {
                width: 100%;
                .blockUI.blockOverlay {
                    background: transparent !important;
                }
                > div {
                    &:nth-of-type(2) {
                        max-height: 300px;
                        overflow: scroll;
                        padding-top: 12px;
                    }
                }
                @media (max-width: 767.98px) {
                    display: flex;
                    justify-content: space-between;
                    background: #F5F5F5;
                    > div {
                        &:nth-child(2) {
                            display: none;
                        }
                    }
                }
            }
        }
    }

    &.admin-bar {
        #order_details_jb {
            top: 92px;
            height: calc(100vh - 92px);
            @media (max-width: 767.98px) {
                top: unset;
                height: unset;
            }
        }
    }

    form.woocommerce-checkout {
        position: absolute;
        width: 100%;
        left: 0;
        @media (max-width: 767.98px) {
            flex-direction: column-reverse;
        }

    }


    #order_review {
        @media (max-width: 767.98px) {
            background: #F5F5F5;
        }
        .cart_item {
            margin-bottom: 14px;
            display: flex;
            width: 100%;
            justify-content: space-between;
            position: relative;

            &:last-of-type {
                margin-bottom: 20px;
            }

            .mb-0 {
                margin: 0;
            }

            p {
                font-size: 16px;
            }
        }
    }

    #order_review .cart_item .product-name {
        width: 100%;
        display: flex;
        align-items: center;
    }

    #order_review .cart_item .product-name .img-and-quantity {
        position: relative;
        display: flex;
        margin-right: 17px;
    }

    #order_review .cart_item .product-name .img-and-quantity .product-quantity {
        top: -10px;
        right: -3px;
        position: absolute;
        background: #000;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-style: normal;
        font-weight: 400;
        line-height: 16px;
        text-transform: uppercase;
        color: #fff;
    }

    #order_review .cart_item .product-name img {
        max-width: 64px;
        height: auto;
        border-radius: 4px;
        box-shadow: 0 1px 1.75px 0 rgba(0, 0, 0, .12), 0 -.5px 1.5px 0 rgba(0, 0, 0, .09), 0 3px 4px 0 rgba(0, 0, 0, .03);
        border: 2px solid #fff;
    }

    #order_review .cart_item .product-total {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        font-size: 16px;
    }

    .order-total {
        display: flex;
        justify-content: space-between;
        font-size: 18px;
        font-weight: 600;
        position: relative;
        padding: 20px 0 0 0;
        @media (max-width: 767.98px) {
            font-size: 14px;
            padding: 0;
            > div {
                &:first-of-type {
                    margin-right: 5px;
                }
            }
        }


        &::before {
            content: '';
            background: rgba(0, 0, 0, 0.1);
            width: 100vw;
            height: 1px;
            display: flex;
            position: absolute;
            left: -40px;
            top: 0;
            @media (max-width: 767.98px) {
                display: none;
            }
        }
    }
    .shipping-wrap {
        display: none !important;
    }
}

/* Side cart */
#cart-panel {
    .woocommerce-mini-cart__buttons {
        padding-top: 10px;
        padding-bottom: 15px;
        margin-bottom: 0;
        .button.wc-forward:not(.checkout) {
            display: none;
        }
    }
    .panel-content {
        padding: 0 20px;
        @media (max-width: 767.98px) {
            padding: 0 15px;
        }
    }
    .panel-header {
        padding: 20px;
        box-shadow: 0 6px 10px -6px rgba(0, 0, 0, 0.15);
        @media (max-width: 767.98px) {
            padding: 15px;
        }
    }
    .button-close {
        right: 20px;
        top: 14px;
        @media (max-width: 767.98px) {
            right: 15px;
            top: 9px;
        }
    }
    .go-to-checkout-wrap {
        position: sticky;
        bottom: 0;
        z-index: 1000;
        background: #fff;
        width: calc(100% + 40px);
        box-shadow: 0 -4px 8px -4px rgba(0, 0, 0, 0.2);
        margin-left: -20px;
        padding: 0 20px;
        @media (max-width: 767.98px) {
            padding: 0 15px;
            margin-left: -15px;
            width: calc(100% + 30px);
        }
    }
    ul.woocommerce-mini-cart.cart_list.product_list_widget {
        padding: 15px 0;
        > li {
            &:last-of-type {
                margin-bottom: 0;
            }
        }
    }
    .widget_shopping_cart_content .buttons .button {
        @media (max-width: 767.98px) {
            font-size: 14px;
        }
    }
    .widget_shopping_cart_content .total {
        @media (max-width: 767.98px) {
            margin-top: 0;
            border-top: none;
            padding-top: 15px;
        }
    }
    .widget_shopping_cart_content {
        .woocommerce-mini-cart-item__thumbnail {
            padding-right: 15px;
            img {
                max-width: 64px;
            }
        }
        .woocommerce-mini-cart-item__name {
            font-size: 16px;
            margin-bottom: 0;
        }
    }
}
.admin-bar #cart-panel {
    height: calc(100% - 32px);
    top: 32px;
}

/* Cart */
.woocommerce-cart-form {
    .empty-cart-button,
    td.actions {
        display: none;
    }
}
#main {
    .cart-collaterals {
        border: none;
        margin-top: 0;
        padding: 30px 0 40px 0;
        .cart_totals.calculated_shipping > h2,
        .shop_table.shop_table_responsive:not(.order-total-table),
        tr.cart-subtotal {
            display: none;
        }
    }
}

/* Thx page */
body.woocommerce-order-received {
    .woocommerce-notice--success.woocommerce-thankyou-order-received {
        text-align: center;
        @media (max-width: 767.98px) {
            margin-top: 15px;
            margin-bottom: 15px;
        }
    }
    .woocommerce-order {


        margin-left: 45px;
        margin-right: 45px;
        padding-left: 15px;
        padding-right: 15px;
        width: auto;
        @media (max-width: 767.98px) {
            margin-left: 0;
            margin-right: 0;
        }


        img[alt="plata"] {
            display: none;
        }

        .woocommerce-customer-details {
            display: none;
        }
    }
    .woocommerce-thankyou-order-details {
        display: none !important;
    }
    .woocommerce-table--order-details {
        tfoot {
            tr {
                &:first-of-type {
                    display: none;
                }
                &:nth-of-type(2),
                &:last-of-type {
                    td {
                        text-align: right;
                    }
                }
            }
        }
        td {
            font-size: 15px;
        }
    }
    .order-info-thx-wrap {
        display: flex;
        flex-direction: column-reverse;
        flex-wrap: wrap;
        align-content: center;
        .woocommerce-order-details,
        .woocommerce-np-address {
            flex: 1 1 50%;
            max-width: 50%;
            @media (max-width: 767.98px) {
                max-width: 100%;
                flex: 1 1 100%;
            }
        }
    }
    .order-again {
        text-align: center;
        /*display: none;*/
    }
    .woocommerce-np-address {
        text-align: center;
        h3 {
            font-size: 22px;
            margin: 0;
            @media (max-width: 767.98px) {
                margin-bottom: 10px;
            }
        }
        p {
            margin: 0;
            font-size: 15px;
            font-weight: 400;
            line-height: 28px;
            strong {
                font-size: 14px;
                font-weight: 600;
                text-transform: uppercase;
            }
        }
    }
    .woocommerce-order-details__title {
        font-size: 22px;
        margin: 0;
        padding-top: 25px;
    }
    .woocommerce-table__product-table.product-total,
    .woocommerce-table__product-total.product-total {
        text-align: right;
    }
    .woocommerce table.order_details th {
        font-size: 14px;
    }
}

/* Account area */
body.woocommerce-account {
    .account-section.addresses {
        display: none;
    }
    .woocommerce-EditAccountForm.edit-account {
        display: flex;
        flex-direction: column;
        > p.woocommerce-form-row--first.form-row-first {
            width: 100%;
        }
        > p.woocommerce-form-row--last.form-row-last {
            display: flex;
            width: 100%;
            padding: 0;
            label[for=account_last_name] {
                display: block;
            }
        }
    }
    .woocommerce-columns.woocommerce-columns--addresses.addresses {
        display: flex;
        flex-direction: column-reverse;
    }
    .woocommerce-table--order-details.shop_table.order_details {
        img[alt="plata"] {
            max-width: 130px;
        }
    }
    .woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        > a {
            min-width: 170px;
        }
    }
    .woocommerce-button.button.pay.order-actions-button {
        margin-right: 5px;
    }
    .woocommerce-button button.cancel.order-actions-button {
        margin-left: 5px;
    }
    .woocommerce-orders-table__cell-wcus_shipment,
    .woocommerce-orders-table__header-wcus_shipment {
        display: none !important;
    }
}

body.woocommerce-view-order {
    .woocommerce-customer-details {
        display: none;
    }
}

body.wcboost-wishlist-page {
    .wcboost-wishlist-share.wishlist-share {
        display: flex;
        align-items: center;
    }
    h4.wishlist-share__title {
        margin: 0 10px 0 0;
    }
    .wishlist-share__link {
        display: flex;
        margin: 0;
    }
    .wcboost-wishlist-share-link {
        display: flex;

    }
    .wcboost-wishlist-share-link__icon {
        display: flex;
        margin: 0 10px 0 0;
    }
    .wcboost-wishlist-share-link__text {
        display: flex;
    }
    .wishlist-share__buttons a {
        padding: 0;
    }
}

