/**
 * CLICKaligners Base & Global Styles
 * Package: CLICKALIGNERS Astra Child Theme
 */

/* Manrope подключается один раз в functions.php (google-font-manrope) */

html,
body,
button,
input,
select,
textarea,
.woocommerce,
.woocommerce-page,
.case-tabs-container {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Принудительная защита иконок Font Awesome от переопределения шрифтом Manrope */
.fa,
.fas,
.far,
.fal,
.fat,
.fad,
.fab,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
.fa-brands,
[class*="fa-"] {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
}

.fa-light,
.fal {
    font-family: "Font Awesome 6 Pro" !important;
    font-weight: 300 !important;
}

.fa-regular,
.far {
    font-family: "Font Awesome 6 Pro" !important;
    font-weight: 400 !important;
}

.fa-solid,
.fas,
.fa {
    font-family: "Font Awesome 6 Pro" !important;
    font-weight: 900 !important;
}

.fa-thin,
.fat {
    font-family: "Font Awesome 6 Pro" !important;
    font-weight: 100 !important;
}

.fa-duotone,
.fad {
    font-family: "Font Awesome 6 Duotone" !important;
    font-weight: 900 !important;
}

.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

body {
    background-color: #f8fafc !important;
    color: #1e293b;
    padding: 0px !important;
}

*:focus-visible {
    outline: none;
}

.custom-logo-link img {
    width: 100px !important;
}

.ast-modern-checkout .woocommerce #payment ul.payment_methods div.payment_box {
    background-color: var(--ast-global-color-4) !important;
}

@media screen and (max-width:1024px) {
    .ast-mobile-header-logo {
        width: 40px !important;
    }
}

* {
    -webkit-tap-highlight-color: transparent;
}

.ast-payment-option-heading {
    display: none;
}

input.input-checkbox {
    accent-color: var(--ast-global-color-0);
}

ul.wc_payment_methods.payment_methods.methods {
    display: none;
}

.lesson-text video {
    max-width: 100%;
}

/* Скроллбары */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 6px;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

body {
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.ast-builder-layout-element.site-header-focus-item.ast-header-woo-cart {
    padding: 0;
}

.ast-site-header-cart a.cart-container * {
    word-wrap: break-word;
}

#ast-hf-mobile-menu .ast-arrow-svg {
    width: 16px !important;
    height: 16px !important;
    margin: 0px !important;
    top: -5px;
}

.sub-menu .ast-icon.icon-arrow {
    display: none !important;
}

.ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close:focus,
button:focus {
    outline: none !important;
    border-style: none !important;
}

button {
    transition: all .3s;
}

#wcuf_alert_popup,
.woocommerce-message,
.woocommerce-info {
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0px 0px 18px rgba(44, 106, 244, 0.2) !important;
    background: white !important;
}

/* Скрытие уведомлений о добавлении в корзину */
.woocommerce-message:has(.wc-forward) {
    display: none !important;
}

.wcuf_upload_field_button.wcuf_upload_drag_and_drop_area {
    & svg {
        fill: var(--ast-global-color-0);
    }

    & span {
        color: #696969;
    }
}

#OpenComplModalBtn,
#openModalBtn {
    flex: 0 30%;
}

.ast-builder-menu-mobile .main-navigation .main-header-menu {
    text-align: center;
}


@media (min-width: 922px) {
    .ast-container {
        padding-left: 60px;
        padding-right: 60px;
    }

}



.woocommerce ul.products a {
    max-width: 50%;
    /* Укажите желаемую максимальную ширину блока */
    margin: 0 auto;
    /* Центрируем блок по горизонтали */
}

.woocommerce-ordering {
    transition: box-shadow 0.3s ease;
    /* Переход на тень длительностью 0.3 секунды */
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2);
    /* Начальная тень */
}


.ast-icon.icon-cart {
    content: url('https://click.nextaligners.ru/wp-content/uploads/2024/10/CART_bl.svg') !important;
}

.ast-icon.icon-cart {
    height: 32px !important;
    aspect-ratio: 1/1;
}

#phone_nummer img {
    width: 30px !important;
    aspect-ratio: 1/1;
}

.woocommerce-ordering:focus,
/* Элемент в фокусе */
.woocommerce-ordering:hover {
    /* Элемент при наведении курсора */
    box-shadow: 0px 0px 10px rgb(164, 141, 255);
    /* Тень при активации или наведении курсора */

}


/*TOOLTIP*/
/* Стили для контейнера тултипа */
.tooltip-container {
    position: relative;
    display: inline-block;
}

/* Стили для текста тултипа */
.tooltip-content {
    position: absolute;
    bottom: 100%;
    /* Позиционирование тултипа над элементом */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    /* Начальная прозрачность */
    visibility: hidden;
    /* Скрыт по умолчанию */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

/* Треугольник под тултипом */
/* Стили для контейнера иконки */
.tooltip-icon-container {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    /* Отступ от текста */
    cursor: pointer;
}

/* Стили для иконки */
.tooltip-icon-container i {
    color: #0073aa;
    /* Цвет иконки */
    font-size: 16px;

    /* Размер иконки */
    &:before {
        aspect-ratio: 1 / 1;
        padding: 2px;
        background: var(--ast-global-color-0);
        width: 25px;
        display: flex;
        border-radius: 100px;
        color: white;
        align-self: center;
        margin: 0;
        padding: 0;
        justify-content: center;
        align-items: center;
    }
}

.tippy-box[data-theme="image-tooltip"] {
    & .tippy-content {
        padding: 20px;
        min-width: 500px;
        display: flex;
        flex-direction: column;
        gap: 20px;

        & a {
            padding: 10px;
            background: var(--ast-global-color-0);
            border-radius: 99px;
            color: var(--ast-global-color-5);

            &:hover {
                background: var(--ast-global-color-5);
                color: var(--ast-global-color-0);
            }
        }

        & .photos {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 20px;

            & img {
                aspect-ratio: 1/1;
                width: 100%;
                height: auto;
                object-fit: cover;
            }
        }
    }
}

/* Стили для тултипа */
.wcuf_upload_fields_row_element,
.wcuf_checkout_ajax_container {
    overflow: visible !important;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    /* Позиционирование тултипа над иконкой */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    /* Начальная прозрачность */
    visibility: hidden;
    /* Скрыт по умолчанию */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;

}



/* Треугольник под тултипом */
.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/*END TOOLTIP*/

.knowledge-base-content {
    width: 100% !important;
    margin: 0 auto;
}

.knowledge-base-content-crop {
    max-width: 720px;
    margin: 0 auto;
}
