/**
 * CLICKaligners Orders (Patients) List & Pagination
 * Package: CLICKALIGNERS Astra Child Theme
 */

/* Скрыть название столбца в thead */
.woocommerce-orders-table thead th.status {
    display: none;
}

/* Установить ширину для колонки с восклицательным знаком */
.woocommerce-orders-table tbody td.order-status .status-exclamation {
    width: 20px;
    /* Задайте желаемую ширину */
}

/* Цвет для восклицательного знака */
.woocommerce-orders-table tbody td.order-status .status-exclamation:before {
    color: #9b51e0;
    /* Замените на нужный вам цвет */
}

.order-status-notification {
    font-size: 2em;
}

.woocommerce-orders-table__cell.woocommerce-orders-table__cell-notify {
    width: 1%;
}

.abtn.button {
    margin: 10px 0px 10px 0 !important;
}

#box_btn {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.woo_table_thead {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--ast-border-color);
    "

}

.noborder td,
th {
    border: 0 !important;
    border-width: 0 !important;
}

.li.wcuf_file_preview_list_item {
    width: 100% !important;
    background: none !important;
}

img.wcuf_file_preview_list_item_image {
    display: !important;
}

.wcuf_alert_popup {
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgb(164, 141, 255);
}

#upload_row_2 .wcuf_file_preview_list_item img {
    text-align: center;
}




#upload_row_3 {
    width: 100%;
    border-radius: 10px;
}

#download_table_1 .wcuf_file_preview_list_item img {
    width: 100% !important;
    object-fit: cover;
    height: 100% !important;
    border-radius: 5px;
}

#download_table_2 .wcuf_file_preview_list_item img {
    width: 100% !important;
    object-fit: cover;
    height: 100% !important;
    border-radius: 5px;
}

#download_table_3 .wcuf_file_preview_list_item img {
    width: 100% !important;
    object-fit: cover;
    height: 100% !important;
    border-radius: 5px;
}

#download_table_4 .wcuf_file_preview_list_item img {
    width: 100% !important;
    object-fit: cover;
    height: 100% !important;
    border-radius: 5px;
}

#download_table_1 .wcuf_preview_file_title {
    display: none;
}

#download_table_2 .wcuf_preview_file_title {
    display: none;
}

#download_table_3 .wcuf_preview_file_title {
    display: none;
}

#download_table_4 .wcuf_preview_file_title {
    display: none;
}

#download_table_1 img.wcuf_file_preview_list_item_image {
    object-fit: cover;
    margin-bottom: auto;
}

#download_table_2 img.wcuf_file_preview_list_item_image {
    object-fit: cover;
    margin-bottom: auto;
}

#download_table_3 img.wcuf_file_preview_list_item_image {
    object-fit: cover;
    margin-bottom: auto;
}

#download_table_4 img.wcuf_file_preview_list_item_image {
    object-fit: cover;
    margin-bottom: auto;
}

.wcuf_file_preview_icon {
    max-width: 60% !important;
    align-self: center;
}

.wcuf_already_uploaded_data_container .wcuf_file_preview_list .wcuf_file_preview_list_item {
    max-width: 170px;
    background: none;
}

.wcuf_already_uploaded_data_container:last-child .wcuf_file_preview_list {
    flex-direction: column;
}

#upload_row_2 .wcuf_file_preview_icon {
    max-width: 100%;
}

.wcuf_bar {
    transition: all .5s ease-in-out;
}


@media screen and (max-width:920px) {
    div#wcuf_summary_uploaded_files {
        & .wcuf_upload_summary_title {
            margin-top: 30px !important;
        }

        & .wcuf_summary_file_list_block {
            padding: 0;
        }

        & .wcuf_summary_file_list_block {
            .wcuf_upload_field_title.wcuf_summary_uploaded_files_title {
                margin: 0;
            }
        }
    }

    table#info_patient {
        & th {
            width: 20%;
            text-align: left;
        }

        & td {
            border-bottom-style: unset;
            text-align: start;
        }
    }
}

table#info_patient {
    & th {
        width: 20%;
        text-align: left;
    }

    & td {
        text-align: right;
        border-bottom-style: unset;
        text-align: start;
        border-style: unset;
    }

    border: 1px solid var(--ast-global-color-0);
}

@media screen and (max-width:920px) {
    table.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table {
        & td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-patient-photo {
            &:before {
                display: none;
            }

            & a {
                width: fit-content;
            }
        }
    }
}

@media screen and (min-width:1024px) {
    td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-patient-photo {
        padding: 0 !important;
    }
}





#download_table_1 .wcuf_single_file_name_in_multiple_list {
    display: none;
}

#billing_wooccm10_field {
    width: 100%;
}

#billing_wooccm10 {
    height: 20vh;
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    .eael-lr-form-wrapper input[type="checkbox"] {
        --active: var(--ast-global-color-0);
    }
}

.dashicons-visibility::before {
    color: var(--ast-global-color-0);
    transition: all .5s ease;
}



#slb_viewer_wrap .slb_theme_slb_default .slb_container {
    border-radius: 10px;
    box-shadow: 0px 0px 20px 0px rgb(164, 141, 255);
}

.download_small_button {
    padding: 10px !important;
    margin: 20px 0 !important;
}

.ast-modern-checkout .woocommerce #payment ul.payment_methods div.payment_box {
    background-color: unset;
}

.woocommerce .woocommerce-notices-wrapper {
    padding: 0 !important;
    max-width: unset !important;
}

.page-id-14 #ast-mobile-header,
.knowledge_base-template-default.single #ast-mobile-header {
    padding: 0px 20px;
}

.checkout.woocommerce-checkout {
    padding: 0px !important;
    max-width: unset !important;
}


.woocommerce-MyAccount-navigation-link--payment-methods svg {
    display: none;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--payment-methods a:before {
    font-family: "Font Awesome 5 free";
    content: '\f09d';
    font-size: 17px;
}

#stripe-payment-data fieldset,
#stripe-card-element {
    border: 0px;
    margin: 10px 0;
}

#stripe-payment-data fieldset label {
    opacity: 1;
    margin: 0;
    padding: 0;
}

#upload_row_1 .wcuf_file_preview_list .wcuf_file_preview_list_item,
#upload_row_2 .wcuf_file_preview_list .wcuf_file_preview_list_item,
#upload_row_3 .wcuf_file_preview_list .wcuf_file_preview_list_item {
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
}

img.wcuf_file_preview_list_item_image {
    height: auto !important;
    width: 100% !important;

    border-radius: 0px;
    margin: 0;
    padding: 0;
}

.wcuf_image_preview_container {
    border-radius: 5px;
    overflow: hidden;
    min-height: 120px;
    max-height: 170px;
    width: 170px !important;
    height: 170px;
    width: fit-content;

    & img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        margin-top: 0 !important;
    }
}

.woocommerce-table__line-item.order_item {
    display: none;
}

#ast-apply-coupon {
    padding: 20px;
    align-self: center;
    text-align: center;
    cursor: pointer;
}

.attachment-woocommerce_thumbnail {
    border-radius: 5px;
}






@media only screen and (max-width: 768px) {
    .product-item {
        flex-basis: 100%;
        margin-bottom: 10px !important;
    }
}

/* Legacy navigation link hover - disabled to prevent conflict with modern sidebar */
/*
	.woocommerce-MyAccount-navigation-link{
		transition: all 0.3s ease;
		margin-bottom:10px;
	}
	.woocommerce-MyAccount-navigation-link:hover {
		transform: translateX(-5px);
	}
	*/

/* Стили для .WidgetBranding__ViralFrameContainer-sc-1kw6nk1-0 внутри iframe */
#hubspot-conversations-iframe .WidgetBranding__ViralFrameContainer-sc-1kw6nk1-0 {
    /* Ваши стили здесь */
    background-color: #f0f0f0;
    padding: 10px;
}

@font-face {
    font-family: '29LTBukraSemiWide';
    src: url('https://click.nextaligners.ru/wp-content/uploads/2024/01/29LTBukraSemiWide-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

.product-item a {
    width: 100%;
}


@font-face {
    font-family: 'Geometria';
    font-weight: 600;
}

.product-row.additionals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.product-item.additionals .BottomBlock {
    min-height: unset;
}

@media (max-width: 1024px) {
    .product-row.additionals {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        margin-bottom: 30px;
    }
}

@media (max-width: 640px) {
    .product-row,
    .product-row.additionals {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .product-item.additionals {
        margin-bottom: 0 !important;
    }
}




#billing_order_select_field {
    width: 100%;
    order: 20;
}


.woocommerce-orders-table__cell.woocommerce-orders-table__cell-notify::before {
    content: attr(data-title) "" !important;
}

span.select2-selection.select2-selection--single {
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0px 0px 8px rgba(166, 189, 199, 0.3) !important;
}



.al_box {
    background: none !important;
    font-family: 'Geometria', sans-serif !important;
    font-size: 25px !important;
    color: black;
}

#existing_order_field,
#existing_order_1622_field,
#selected_jaw_field {

    padding: 0;
    width: 100%;
}

#selected_jaw_field {
    margin-top: 7px;
}

.TopBlock.treatment-plans {
    background-image: url('https://click.nextaligners.ru/wp-content/uploads/2024/03/TopBlock-product.png');
}

.woocommerce-orders-table__header-product-name,
.woocommerce-orders-table__header-product-name+.woocommerce-orders-table__header {
    width: 20%;
}

.woocommerce-orders-table__header .nobr {
    color: #000000B3;
    font-weight: 500;
}

h1.orders_headers_1 {
    font-family: "Manrope", Manrope, sans-serif !important;

    font-size: 25px;
}



/* 	ПАГИНАЦИЯ */

.Pagination {
    text-align: center;
}

.Pagination ul {
    list-style: none;
    padding-left: 0;
}

.Pagination ul li {
    display: inline;
}

.Pagination ul li .page-numbers {
    padding: 10px;
    background: var(--ast-global-color-0) !important;
    border-radius: 5px;
    color: white;
    transition: all .5s;
    font-family: 'Manrope', sans-serif;
}

.Pagination ul li .page-numbers:hover {
    background: white !important;
    color: var(--ast-global-color-0);
    border: 1px solid var(--ast-global-color-0);
    transition: all .5s;
}

.Pagination ul li .page-numbers.current {
    background: white !important;
    color: var(--ast-global-color-0);
    border: 1px solid var(--ast-global-color-0);
    transition: all .5s;
}



/* END ПАГИНАЦИЯ */


@media screen and (max-width: 920px) {
    .woocommerce-order-details .product-item {
        width: 100% !important;
    }

    #post-15 {
        margin-top: 15px !important;
    }
}


/* 	Окно для мой аккаунт */

.My-account__wrapper {
    width: 100%;
    max-width: unset !important;
    display: flex;
    gap: 40px;
    margin: 0px !important;
    flex-wrap: nowrap;
    min-height: calc(100vh - 130px);
}



.ast-builder-footer-grid-columns.site-below-footer-inner-wrap.ast-builder-grid-row {
    grid-column-gap: 10px !important;
}

.site-footer-below-section-2.site-footer-section.site-footer-section-2 {
    white-space: nowrap;
}

@media screen and (max-width: 920px) {
    .My-account__wrapper {
        flex-direction: column;
    }

    #footer_copy {
        font-size: 12px;
    }

    .My-account__sidebar,
    .click-sidebar-panel {
        width: 100% !important;
        position: static !important;
        top: auto !important;
    }

    .My-account__main-content {
        width: 100% !important;
    }
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .My-account__wrapper {
        flex-direction: column;
    }

    .My-account__sidebar,
    .click-sidebar-panel {
        width: 100% !important;
        position: static !important;
        top: auto !important;
    }

    .My-account__main-content {
        width: 100% !important;
    }
}



/*Стили для фото пациента Orders*/

a.patient-photo_orders img {
    max-width: 40px;
    width: 100%;
    border-radius: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

a.patient-photo_orders {
    display: flex;
    width: 100%;
    justify-content: center;
}



/* ── Orders (Пациенты) List Page ── */
.click-orders-header-row {
    margin-bottom: 24px;
}

.click-orders-heading {
    font-family: 'Manrope', sans-serif !important;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.click-orders-card-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
}

.click-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
    border: none !important;
}

.click-orders-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.click-orders-table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 14px;
    vertical-align: middle;
}

.click-orders-table tbody tr:hover td {
    background-color: #f8fafc;
}

.click-orders-table tbody tr:last-child td {
    border-bottom: none;
}

.click-order-number-link {
    font-weight: 700;
    color: #0f172a !important;
    text-decoration: none !important;
}

.click-order-number-link:hover {
    color: var(--ast-global-color-0) !important;
}

.click-order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: #f1f5f9;
    color: #475569;
}

.click-order-status-badge.status-in-development,
.click-order-status-badge.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.click-order-status-badge.status-on-hold {
    background: #fef3c7;
    color: #92400e;
}

.click-order-status-badge.status-prod-aligners,
.click-order-status-badge.status-in-production,
.click-order-status-badge.status-completed {
    background: #dcfce7;
    color: #166534;
}

.click-order-status-badge.status-reject,
.click-order-status-badge.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.click-order-status-badge.status-dilivery {
    background: #e0f2fe;
    color: #0369a1;
}

.click-btn-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9 !important;
    color: #1e293b !important;
    padding: 7px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
}

.click-btn-open:hover {
    background: #2a2e39 !important;
    color: #ffffff !important;
    border-color: #2a2e39 !important;
}

.click-pagination {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.click-pagination ul.page-numbers {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.click-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.click-pagination .page-numbers.current {
    color: #ffffff;
}
