/**
 * CLICKaligners Products, Prices & Gallery
 * Package: CLICKALIGNERS Astra Child Theme
 */

/*NEWS & Updates START*/

.news-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-post {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-radius: 20px;
    background-color: #F6F6F6;
    min-height: 120px;

}

.news-post-thumbnail img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    max-width: 100px;
    margin-right: 20px;
    border-radius: 12px;
    width: auto;
}

.news-post-content {
    flex: 1;
    overflow: hidden;
}

.news-post-content h3 a {
    margin-top: 0px;
    color: black !important;
    font-size: 17px;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
}

.news-post-content h3 a:hover {
    color: #2C6AF4 !important;
}

.news-post-content h3 {
    margin-bottom: 0px;
}

.news-post-content {
    display: flex;
    flex-direction: column;
    gap: 0px;
    justify-content: space-between;
    min-height: 100px;

}

.news-post-content .news-post-date {
    color: #777;
    font-size: 0.9em;
    margin-top: auto;
}

.news-post-content .news-post-excerpt {
    text-overflow: ellipsis;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    margin-top: 5px;
}

@media screen and (min-width:1024px) {
    .ast-header-html.inner-link-style-.mobile {
        display: none;
    }
}

@media screen and (max-width:768px) {
    .news-post-content .news-post-excerpt {
        width: 100%;
    }
}


.woocommerce-order-details .wcuf_order_details_ajax_container {
    display: flex !important;
    flex-wrap: wrap;
}

.woocommerce-order-details #wcuf_summary_uploaded_files {
    order: 1 !important;

}

.woocommerce-order-details .wcuf_order_details_ajax_container #wcuf_file_uploads_container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    order: 2 !important;
}

.woocommerce-order-details .wcuf_order_details_ajax_container #wcuf_file_uploads_container #wcuf_upload_field_container_0 {
    margin-bottom: 0;
}


.woocommerce-order-details #wcuf_upload_field_container_2 .wcuf_upload_fields_row_element .wcuf_upload_field_button,
.woocommerce-order-details #wcuf_upload_field_container_0 .wcuf_upload_fields_row_element .wcuf_upload_field_button {
    margin-top: auto !important;
}

.woocommerce-order-details #wcuf_upload_field_container_2 .wcuf_upload_fields_row_element,
.woocommerce-order-details #wcuf_upload_field_container_0 .wcuf_upload_fields_row_element {
    min-height: 450px;
}

@media screen and (max-width:720px) {
    .woocommerce-order-details .wcuf_order_details_ajax_container #wcuf_file_uploads_container {
        flex-wrap: wrap !important;
    }
}


div#upload_row_2 .wcuf_upload_fields_row_element {
    height: 100%;
}

#wcuf_upload_field_button_2 {
    margin-top: auto;
}

/*Single Prod*/
.product-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.product-container .woocommerce-product-gallery {
    width: 30%;
    aspect-ratio: 4/3;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--ast-global-color-0);
    padding: 20px;
    border-radius: 30px;
}

.product-container .product-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-container .button {
    width: fit-content;
}

@media screen and (max-width: 720px) {
    .product-container {
        flex-direction: column;
    }

    .product-container div {
        width: 100% !important;
    }
}


/*GALLERY*/

.product-container {
    margin: 0 auto;
}

.woocommerce-product-gallery__main-image {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-content: center;
    height: 100%;
}

.woocommerce-product-gallery__main-image img {
    width: auto;
    height: 100%;
    border-radius: 5px;
    transition: opacity 0.3s;
    object-fit: contain;
    align-self: center;
}

.image-navigation {
    position: relative;
    top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.image-navigation .dot {
    width: 12px;
    height: 12px;
    background-image: url('https://click.nextaligners.ru/wp-content/uploads/2024/10/radio.svg');
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    filter: grayscale(100%);
}

.image-navigation .dot.active {
    scale: 1.3;
    transition: all ease .5s;
    background-image: url('https://click.nextaligners.ru/wp-content/uploads/2024/10/radio.svg');
    filter: grayscale(0%);
}

/*END GALLERY*/

#toggle-description {
    background: none;
    color: black;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding-inline: 0px;
    margin: 0px;

}

#description {
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 400;

    & .button {
        margin-top: 10px;
        font-family: "Manrope", sans-serif !important;
    }
}

#description.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    /* Отображаем первые 4 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 5 em;
    margin-bottom: 0;
}

#description.expanded {
    max-height: unset;
    margin-bottom: 0;
}



@media screen and (max-width:721px) {
    .product-container .product-description a.button.mobile {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .woocommerce-MyAccount-content .header_with_buy a {
        display: none;
    }
}

@media screen and (min-width:721px) {
    .product-container .product-description a.button.mobile {
        display: none;
    }
}

.header_with_buy {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;

    & .button {
        font-family: "Manrope", sans-serif;
    }
}

.header_with_buy h2 {
    margin: 0px !important;
}


.product-container .product-description {
    justify-content: unset !important;
}


.product-container .woocommerce-product-gallery {
    display: flex;
    flex-direction: column;
}

@media screen and (min-width:528px) and (max-width:720px) {
    .product-container .woocommerce-product-gallery {
        aspect-ratio: 0 !important;
    }
}

/*END Single Prod*/

@media screen and (min-width: 1024px) {

    .ast-page-builder-template .entry-content[ast-blocks-layout]>.inherit-container-width>*,
    .ast-page-builder-template .entry-content[ast-blocks-layout]>*>*,
    .entry-content[ast-blocks-layout]>.wp-block-cover .wp-block-cover__inner-container {
        max-width: unset;
    }

    article.post-14 .woocommerce {
        padding-left: 40px;
        padding-right: 40px;
    }
}


p.order-again {
    display: none;
}



/*Прайсы*/
.materials-pricing-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 75px));
    justify-content: space-between;
    gap: 20px;
}

@media screen and (min-width:1299px) {
    .pricing-table {
        display: flex;
        gap: 20px;
        justify-content: start;
    }

    .material-section {
        width: fit-content;
    }
}



.pricing-header {
    display: none;
}

.pricing-row {
    width: fit-content;
}

.aligners-pricing-table {
    display: grid;
    grid-auto-flow: column;
}

.table-row {
    display: flex;
    flex-direction: column;
}


ul.material-item-list {
    margin: 0;
    padding: 0;
    list-style-type: disc;
}

span.material-name {
    font-size: 14px;
    font-weight: 500;
}

li.material-item::marker {
    color: var(--ast-global-color-0);
    font-size: 13px;
}

.material-section {
    border: 1px var(--ast-global-color-0) solid;
    padding: 15px;
    border-radius: 20px;
}

.material-section .table-row {
    font-size: 14px;
    font-weight: 500;

    & .count {
        color: #00000080;
    }

    & .prod-price {}
}


/*END Прайсы*/
