/**
 * CLICKaligners Checkout & Cart Styles
 * Package: CLICKALIGNERS Astra Child Theme
 */

/*CHEKOUT*/
.ast-checkout-wrap {
    display: none !important;
}

.ast-modern-checkout .ast-two-column-checkout .woocommerce-checkout #ast-order-review-wrapper {
    width: 100% !important;
}

.woocommerce.woocommerce-checkout form #customer_details.col2-set,
.woocommerce-page.woocommerce-checkout form #customer_details.col2-set {
    width: 100%;

}

/*END CHEKOUT*/


.ast-woo-grid-orders-container {
    transition: all 0.5s ease-in-out;
}

.ast-woo-grid-orders-container:hover {
    box-shadow: 0px 0px 10px rgb(166, 189, 199);
}

.woocommerce-table,
.shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents,
.cart_totals,
.shop_table,
.input-text.wooccm-required-field,
.woocommerce-error,
.input-text {
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0px 0px 8px rgba(74, 122, 143, 0.3) !important;
}

.woocommerce-table.woocommerce-table--order-details.shop_table.order_details {
    border-radius: 10px;
    overflow: hidden;
}

.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table,
.wc_payment_methods.payment_methods.methods {
    transition: all 0.5s ease-in-out;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(74, 122, 143, 0.3);
}

#place_order {
    transition: 0.5s all ease-in-out;
}

.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table:hover {
    box-shadow: 0px 0px 10px rgb(166, 189, 199);
}

.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tr td {
    border: 0px;
}

.ast-order-summary>div:nth-child(2) {
    display: none;
}

.menu_toggle {
    background: none;
}

/* Hide billing address on order details section. */
.woocommerce-MyAccount-content .woocommerce-customer-details {
    display: none;
}

.main-header-menu.ast-menu-shadow.ast-nav-menu.ast-account-nav-menu {}

@media screen and (max-width:1024px) {
    #masthead {
        margin: 0px;
        margin-bottom: 0px !important;
    }
}

div#ast-mobile-header {
    margin-top: 0;
    margin: 0px 0px;
}

.ast-account-nav-menu .menu-item.menu-link {
    transition: all 3s ease-in-out;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);
}

.site-primary-header-wrap.ast-builder-grid-row-container.site-header-focus-item.ast-container:focus>* {
    outline: none !important;
}

a:focus {
    outline: none !important;
}

p#aligner_type_field {
    padding: 0;
}


#wcuf_file_uploads_container {
    display: flex;
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
}

.wcuf_upload_fields_row_element {
    margin: 0 !important;
}

.wcuf_single_upload_field_container {
    margin-top: 20px;
    width: 50%;
    border-radius: 10px 0 0 10px;

}

.wcuf_single_upload_field_container#upload_row_3 .wcuf_upload_fields_row_element {
    min-height: unset !important;
}

.wcuf_single_upload_field_container#upload_row_2 {
    border-radius: 0 10px 10px 0;
}

@media screen and (max-width: 700px) {
    .wcuf_single_upload_field_container {
        width: 100%;
    }

    .my-account-links {
        margin: 0 auto;
        flex-basis: 45% !important;
        transition: all 0.3s ease;
    }

    .wcuf_single_upload_field_container {
        border-radius: 10px !important;

    }

    .wcuf_summary_file_list_block {
        width: 100% !important;
        justify-content: center;
        align-content: center;
    }

    .wcuf_file_preview_list_item img {
        width: 20% !important;
    }

    .modal-content {

        width: 100vw;
    }


    #box_btn {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    li.wcuf_file_preview_list_item {
        display: flex;
        flex-direction: column;

    }
}

@media only screen and (max-width: 767px) {

    /*start*/
    #download_table_1 .wcuf_file_preview_list_item {
        flex-basis: 48% !important;
    }

    #download_table_2 li.wcuf_file_preview_list_item {
        justify-content: center !important;
    }

    /*end*/
}

.wd-my-account-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    transition: all .3s ease;
}

.wd-my-account-links i {
    font-size: 25px;
}

.my-account-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-basis: 30%;
    flex: 1 0;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    margin: 5px;
    background-color: #fff;
    /*     box-shadow: 0px 0px 14px 0px rgba(122, 89, 255, 1); */
    transition: 0.5s all ease-in-out;
}

.wd-my-account-links>div {
    flex-basis: 30%;
}

.my-account-links:hover {
    transition: 0.3s all ease-in-out;
    transform: scale(1.05);
    border: 1px solid #2C6AF4;
    margin: 5px;
}

.my-account-links a:hover {
    color: #2C6AF4;
    fill: #2C6AF4;
}

.my-account-links a {
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
    padding: 20px 0 20px 0;
}

#plan_wrapper {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    flex-direction: row;
}

div#box_btn {
    flex-wrap: nowrap;
    flex-direction: column;
    width: 25%;
    gap: 10px;
    justify-content: start;
    order: -1;
}

div#box_btn button {
    flex-basis: 100%;
}

@media (max-width: 768px) {

    /* Для планшетов и мобильных */
    div#box_btn {
        width: 100%;
        /* Занимает всю ширину на мобильных */
    }
}

.plan_row {
    width: 75%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
}

.plan_row:has(.prev) {
    flex-direction: column;
    align-self: center;
    align-items: center !important;

    & .prev {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0px;

        & img {
            border-radius: 20px;
            max-width: 150px;
        }

        & p {
            font-size: 14px;
            margin: 0;
        }
    }
}

.my-label {
    padding-bottom: 20px;
}

.my-icon {
    width: 15%;
    display: block;
    margin: 0 auto;
    padding-top: 20px;
}


/*Shop таблица*/
table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tbody tr:first-child td:first-child {
    background: white !important;
    color: black;
    border-top-left-radius: 20px !important;
}

table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tbody tr:first-child td:last-child {
    background: white !important;
    color: black;
    border-top-right-radius: 20px !important;
}

table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table {
    border-radius: 20px !important;
}

table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table thead {
    background: #F6F6F6;
}

table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tbody tr:last-child td:first-child {
    background: white !important;
    color: black;
    border-bottom-left-radius: 20px !important;
}

table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tbody tr:last-child td:last-child {
    background: white !important;
    color: black;
    border-bottom-right-radius: 20px !important;
}

/* Применить стили ко всем td, кроме первого и последнего в первой строке */
table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tbody tr:first-child td:not(:first-child):not(:last-child),
table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tbody tr:last-child td:not(:first-child):not(:last-child),
table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tbody tr:nth-child(2) td {
    background: #ffffff;
}

table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tbody tr:not(:first-child):not(:last-child) td {
    /* Стили для всех остальных ячеек */
    background: #ffffff;
}

td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions {
    display: table-cell !important;
    width: 10%;
    vertical-align: middle;
}

td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions a {
    display: table-cell !important;
}


table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table {
    background: #F6F6F6;
    padding: 10px;
}

table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table thead {
    color: rgba(0, 0, 0, 0.3);
    !important;
}

@media screen and (max-width: 920px) {
    table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tbody tr:first-child td:first-child {
        width: 100%;
        border-top-right-radius: 20px;
    }

    table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tbody tr td:first-child {
        width: 100%;
        border-radius: 0px;
    }

    table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tbody tr:last-child td:first-child {
        border-bottom-left-radius: 0px !important;

    }

    table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tbody tr:last-child td:last-child {
        border-bottom-left-radius: 20px !important;

    }



    td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions {
        display: table-cell !important;
        width: 10%;
        vertical-align: middle;
    }

    td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions a {
        display: flex !important;
        width: 100%;
    }

}


@media screen and (max-width:1024px) {
    table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tbody .woocommerce-orders-table__row {
        border-radius: 20px;
        box-shadow: 0px 0px 10px rgba(74, 122, 143, 0.3);
    }

    table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table tbody {
        display: flex;
        flex-direction: column;
        gap: 20px;
        background: white;
    }

    table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table {
        padding: 0px;
    }

    td.woocommerce-orders-table__cell {
        background: none !important;
    }


    table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table {
        border: none;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions:last-child {
        border-radius: 20px !important;
    }

}


.modal-content.woocommerce-table {
    width: 60%;
}

#user-review-field {
    height: 40vh;
}

@media screen and (min-width:1024px) {
    table.woocommerce-orders-table {
        font-size: 16px !important;
        font-family: "Manrope", sans-serif;
    }
}


@media screen and (max-width: 921px) {

    .woocommerce-orders-table .woocommerce-orders-table__cell {
        display: flex !important;
        justify-content: space-between !important;
    }

}

/*Shop таблица END*/

#thead_order_table {
    display: table-header-group !important;
}

@media screen(max-width:800px) {
    #thead_order_table {
        display: unset;
    }
}

textarea#billing_wooccm10 {
    resize: vertical;
}

p#billing_wooccm9_field {
    width: 100%;
}

.inline-name {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

ol.wcuf_file_preview_list {
    display: flex !important;
    flex-wrap: wrap;
}


ol.commentlist.notes li:first-child::marker {
    color: var(--ast-global-color-0);
}

ol.commentlist.notes li:first-child p.meta {
    color: var(--ast-global-color-0);
}

.woocommerce-OrderUpdates.commentlist.notes {
    height: 30vh;
    overflow-y: auto;
    overflow: auto;
}



.woocommerce-checkout.woocommerce-order-received .woocommerce-order {
    max-width: 1200px !important;
}

#step {
    max-width: unset;
    max-height: unset;
}

#step_field,
#jaw_field {
    padding: 0px;
    margin-top: 10px;
}


#footer_copy {
    font-family: "Manrope";
    font-weight: 500;
    font-size: 22px;
}




@media screen and (max-width:767px) {
    #colophon {
        padding: 0 !important;

        & .site-below-footer-wrap.ast-builder-grid-row-container.site-footer-focus-item.ast-builder-grid-row-3-equal.ast-builder-grid-row-tablet-3-equal.ast-builder-grid-row-mobile-full.ast-footer-row-stack.ast-footer-row-tablet-stack.ast-footer-row-mobile-inline {
            min-height: 50px !important;
        }
    }

    .ast-builder-footer-grid-columns.site-below-footer-inner-wrap.ast-builder-grid-row {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: space-between;

        & .site-footer-below-section-1 {
            display: flex;

            width: fit-content;
        }

        & .site-footer-below-section-2 {
            display: flex;

            width: fit-content;
        }

        & .site-footer-below-section-3 {
            display: none;
        }



    }

    .site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row {
        padding-right: 15px;
        padding-left: 15px;
    }
}

.site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row {
    padding-right: 0px;
    padding-left: 0px;
}

.woocommerce table.shop_table_responsive tr td::before,
.woocommerce-page table.shop_table_responsive tr td::before {
    text-align: left;
}


/* Стили для черновиков checkout */

div#checkout-drafts-box,
div.draft-edit {
    margin-left: 0 !important;
    max-width: unset !important;
}


.draft-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;

    & div {
        display: flex;
        gap: 10px;
        align-items: center;

        & a.button {
            margin-left: auto;
        }
    }

    & .panel {
        margin-left: auto;
    }
}

@media screen and (max-width:768px) {
    .draft-table {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;

        & .draft_wrapper {
            display: flex;
            gap: 10px;
            flex-direction: column;
            align-items: unset;

        }

        & div[data-draft-id]:not(:last-child) {
            padding-bottom: 15px;
            border-bottom: 1px solid var(--ast-global-color-0);

        }

        & .panel {
            margin-left: unset;

            & a.button {
                margin: unset;
                text-align: center;
                order: unset;
            }
        }
    }
}

/* Стили для черновиков checkout END */

.woocommerce-checkout input[type="number"] {
    max-width: unset;
}

#upper_jaw_count_field {
    padding-left: 0;
}

/* ── Скрытие скрытых полей чекаута и billing_country, shipping_phone ── */
.woocommerce-billing-fields__field-wrapper p#billing_country_field,
#shipping_phone_field,
p#shipping_phone_field,
.woocommerce-shipping-fields #shipping_phone_field {
    display: none !important;
}