/*
Theme Name: Thaistar
Template: Impreza
Version: 1.0
Author:	Darziyan
Theme URI: http://impreza.us-themes.com/
Author URI: http://us-themes.com/
*/

article .w-vwrapper.usg_vwrapper_1 {
    width: 100%;
}

.l-main .w-image {
    padding: 10px;
    border: 2px solid #2da6c0;
    border-radius: 10px;
}



#shop {
    background: url(//thaistar.ru/wp-content/uploads/2018/12/zz.png);
    background-repeat: repeat;
}

.woocommerce-select:after,
.variations .label {
    display: none
}

.variations .wr-custom-attribute li {
    float: none;
    margin-top: 7px
}

.variations .wr-custom-attribute li > a {
    min-width: 180px
}


.variations .wr-custom-attribute li.selected a {
    background: linear-gradient(135deg, #FC6CAA, #09B1C5);
    border-color: transparent ;
    color: #fff;

}

.descriptsert {
    /* 	min-height:90px */
}

.product > a [itemprop="description"] {
    min-height: 60px;
    line-height: 1.2

}

.woocommerce .products .woocommerce-loop-product__title {
    min-height: 45px;
}

.woocommerce-loop-product__title {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: bold;
}

.tm-epo-style-wrapper.round2 {
    color: #49a2a8;
}

.archive .add_to_cart_button, .products.columns-3 .add_to_cart_button {
    width: 100%;
}

.tm-extra-product-options ul.tmcp-ul-wrap.tm-extra-product-options-radio li.tmcp-field-wrap .tm-label.tc-label {
    color: #49a2a8;
}


.tm-has-options.product {
    position: relative
}

.archive .add_to_cart_button,
.products.columns-3 .add_to_cart_button {
    /* 	position:absolute;
        bottom: 4rem;
        right: 10px; */
}

.ajax_add_to_cart {
}

.single-product {
}

.product-template-default.single-product {

}


.product-template-default.single-product .tm-totals-form-main {
    float: left;
    max-width: 180px;
}


.product-template-default.single-product .single_add_to_cart_button, .product-template-default.single-product .w-btn-wrapper {
    margin-top: 1.5rem;
}

.product-template-default.single-product .woocommerce .product_meta {
    float: none;
    clear: both;
}


.header_hor .ush_menu_1.type_desktop .w-nav-list.level_1 > .menu-item > a {
    text-transform: uppercase;
}

.ivpa_term.ivpa_active.ivpa_clicked {
    background-color: #4ca3aa ;
}

.product > a,
.tm-has-options.tc-init {
    background-color: #F4F4F4;
}

.product > a [itemprop="description"],
.product > a h2,
.tm-has-options.tc-init {
    padding: 0 1rem ;
}

.archive .add_to_cart_button, .products.columns-3 .add_to_cart_button {
    margin-top: 0;
}

.tc-extra-product-options .tcowl-carousel .owl-nav .owl-next {
    background: linear-gradient(135deg, #FC6CAA, #09B1C5);
    color: #fff ;
}

.tc-extra-product-options .tcowl-carousel .owl-nav .owl-prev {
    color: #fff !important;
    background-color: #49a2a8;
}


.products .variations {
    border: 1px solid #eee;
    position: relative;
    margin-bottom: 50px;
}

.products .variations td {
    display: block;
    padding: 10px 20px 18px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.products .variations td:first-child {
    padding-bottom: 0;
    border: none;
}

.products .variations td:last-child {
    padding-top: 5px;
}

.products .variations tr:last-child td {
    border: none;
}

.products .variations td label {
    font-weight: 600;
}

.products .variations td select {
    width: 100%;
}

.products .variations .reset_variations {
    margin: 10px 0 0;
    position: absolute;
    bottom: -35px;
    left: 0;
    right: 0;
}


tr.woocommerce-shipping-totals.shipping {
    display: none
}

.durlst {
    display: flex;
    gap: 1px;
    flex-direction: column
}

.durgr_item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.srduration {
    min-width: 104px;
    background-image: url(./img/clock_color.svg);
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: 100% 50%;
    padding-right: 28px;
}
input[name=attribute_pa_time]>label:before{
    display: inline-block;
    content: "🕐";
}
#cartrigtblk .recordbtn,
#cartrigtblk .single_add_to_cart_button{
    @media screen and (width > 960px) {
        /*min-width: 270px*/
    }
}
.vartime_price {
    font-weight: 500;
    padding-left: 4px;

}
/* Скрыть дублирующую цену под кнопками вариаций */
.woocommerce-variation-price {
    display: none !important;
}
.is_sold_individually form.cart>.single_add_to_cart_button{margin-right: 1rem}

.add_to_cart form.cart{}
/*
.woocommerce-variation-price,
.quantity{display:none!important}
.woocommerce .quantity,
.g-preloader{display:none;}*/



:root {
    --sb-primary: #50a5ac;
    --sb-bg: #f5f7f8;
    --sb-text: #2c3e50;
    --sb-muted: #8c98a4;
}
.service-term-list b{    margin-inline: 1px;}

/* Контейнер MagnificPopup для inline-контента */
#servicebook-popup {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    max-width: 440px;
    margin: 2rem auto;
    color: var(--sb-text);
    font-family: inherit;
    position: relative;

    .sb-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.25rem;

        .sb-step {
            /* Высветляем основной цвет с помощью calc */
            background: hsl(from var(--sb-primary) h s calc(l + 40));
            color: var(--sb-primary);
            width: 2rem;
            height: 2rem;
            border-radius: 50%;
            display: grid;
            place-items: center;
            font-weight: 700;
        }

        h2 { margin: 0; font-size: 1.125rem; }
    }

    .sb-block, .sb-service-details {
        background: var(--sb-bg);
        border-radius: 0.75rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .sb-label {
        display: flex; align-items: center; gap: 0.35rem;
        font-size: 0.75rem; font-weight: 700; color: var(--sb-muted);
        text-transform: uppercase; margin-bottom: 0.5rem;
    }

    .sb-select {
        width: 100%; border: none; background: transparent;
        font-weight: 700; font-size: 0.95rem; outline: none; cursor: pointer;
    }

    .sb-address { font-size: 0.8rem; color: var(--sb-muted); margin-top: 0.25rem; }

    .sb-masters-list {
        display: flex; gap: 0.75rem; overflow-x: auto; padding: 0.5rem 0;
        scrollbar-width: none;
        &::-webkit-scrollbar { display: none; }

        .sb-master-item {
            display: flex; flex-direction: column; align-items: center; gap: 0.35rem; cursor: pointer;

            input { display: none; }

            .sb-avatar {
                width: 52px; height: 52px; border-radius: 50%;
                background-size: cover; background-position: center;
                border: 2px solid transparent; transition: border-color 0.2s;

                &.sb-avatar-any {
                    background: hsl(from var(--sb-primary) h s calc(l + 40));
                    color: var(--sb-primary);
                    display: grid; place-items: center; font-size: 0.7rem; font-weight: 700;
                }
            }

            input:checked + .sb-avatar { border-color: var(--color-content-secondary, #fc6caa); }

            .sb-master-name { font-size: 0.75rem; white-space: nowrap; }
        }
    }

    .sb-selected-master { font-size: 0.8rem; margin-top: 0.5rem; }

    .sb-time-slots {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0.75rem 0 1.25rem;

        .sb-time-slot {
            cursor: pointer;
            input { display: none; }
            span {
                display: flex; justify-content: center; padding: 0.6rem;
                background: var(--sb-bg); border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600;
                transition: background 0.2s, color 0.2s;
            }
            input:checked + span { background: var(--sb-primary); color: #fff; }
        }
    }

    .sb-input {
        width: 100%; padding: 0.875rem 1rem; margin-bottom: 0.75rem; box-sizing: border-box;
        background: var(--sb-bg); border: 1px solid transparent; border-radius: 0.5rem; outline: none;
        &:focus { border-color: var(--sb-primary); background: #fff; }
    }

    .sb-detail-row {
        display: flex; justify-content: space-between; font-size: 0.875rem;
        & + .sb-detail-row { margin-top: 0.5rem; }
        span:first-child { color: var(--sb-muted); }
    }

    .sb-footer {
        .sb-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
        .sb-price { font-size: 1.75rem; color: var(--sb-primary); font-weight: 700; }
        .sb-submit-btn {
            width: 100%; padding: 1rem; background: var(--sb-primary); color: #fff;
            border: none; border-radius: 0.75rem; font-weight: 700; font-size: 1rem; cursor: pointer;
            transition: opacity 0.2s;
            &:hover { opacity: 0.9; }
        }
    }
}

/*
Source - https://stackoverflow.com/a/52708038
Posted by Stakvino, modified by community. See post 'Timeline' for change history
Retrieved 2026-08-09, License - CC BY-SA 4.0
*/

/*
#pa_time{
    height: 44px;
    border: none;
    overflow: hidden;
}
#pa_time::-moz-focus-inner {
    border: 0;
}
#pa_time:focus {
    outline: none;
}
#pa_time option{
    width: 60px;
    font-size: 1.2em;
    padding: 10px 0;
    text-align: center;
    margin-right: 20px;
    display: inline-block;
    cursor: pointer;
    border:rgb(204, 204, 0) solid 1px;
    border-radius: 5px;
    color: rgb(204, 204, 0);
}
*/


@keyframes spin { to { transform: rotate(1turn); } }

/* SVG маски пунктов меню */
.icon-massage .w-nav-title::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m323-488 210 23 16-34-61-33-93-8 6-79 111 8 221 123q17 10 35.5 12.5T802-484L606-680H357l-65-96-110 55 76 183q8 21 25.5 34t39.5 16Zm-9 79q-44-5-78.5-31T184-507L80-760l240-120 80 120h208q16 0 31 6.5t26 17.5l255 256-34 34q-38 38-91 45.5T695-419l-76-41-13 29q-11 23-33 35.5t-48 9.5l-211-23ZM130-121l-22-77 190-50q72-19 153-35.5T599-300q75 0 139.5 30T866-189l-54 59q-51-43-105.5-66.5T599-220q-64 0-141 16.5T319-171l-189 50Z'/%3E%3C/svg%3E");
}

.icon-spa .w-nav-title::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M480-80q-73-9-145-39.5T206.5-207Q150-264 115-351T80-560v-40h40q51 0 105 13t101 39q12-86 54.5-176.5T480-880q57 65 99.5 155.5T634-548q47-26 101-39t105-13h40v40q0 122-35 209t-91.5 144q-56.5 57-128 87.5T480-80Zm-2-82q-11-166-98.5-251T162-518q11 171 101.5 255T478-162Zm2-254q15-22 36.5-45.5T558-502q-2-57-22.5-119T480-742q-35 59-55.5 121T402-502q20 17 42 40.5t36 45.5Zm78 236q37-12 77-35t74.5-62.5q34.5-39.5 59-98.5T798-518q-94 14-165 62.5T524-332q12 32 20.5 70t13.5 82Zm-78-236Zm78 236Zm-80 18Zm46-170ZM480-80Z'/%3E%3C/svg%3E");
}

.icon-hammam .w-nav-title::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M160-80q-33 0-56.5-23.5T80-160v-480q0-33 23.5-56.5T160-720h120v80H160v480h640v-480H680v-80h120q33 0 56.5 23.5T880-640v480q0 33-23.5 56.5T800-80H160Zm57.5-257.5Q200-355 200-380t17.5-42.5Q235-440 260-440t42.5 17.5Q320-405 320-380t-17.5 42.5Q285-320 260-320t-42.5-17.5ZM200-200v-25q0-32 22-53.5t52-21.5q14 0 29.5 6.5T328-276l45 52q6 7 12.5 13t14.5 11H200Zm160-120v-27q0-32 33-52.5t87-20.5q54 0 87 20.5t33 52.5v27H360Zm400 120H560q8-5 14.5-11t12.5-13l45-52q8-10 24.5-17t29.5-7q30 0 52 22t22 53v25ZM437.5-457.5Q420-475 420-500t17.5-42.5Q455-560 480-560t42.5 17.5Q540-525 540-500t-17.5 42.5Q505-440 480-440t-42.5-17.5Zm220 120Q640-355 640-380t17.5-42.5Q675-440 700-440t42.5 17.5Q760-405 760-380t-17.5 42.5Q725-320 700-320t-42.5-17.5ZM331-640q5-18 6.5-27t1.5-20q0-15-7-30.5T308-753q-23-27-34.5-56.5T262-869q0-12 1.5-24.5T268-920h60q-3 19-4.5 30t-1.5 21q0 18 8 37.5t24 39.5q23 30 34 55.5t11 49.5q0 12-1.5 24t-4.5 23h-62Zm121 0q5-18 7-27t2-20q0-15-7.5-30.5T429-753q-23-27-34-56.5T384-869q0-12 1-24.5t4-26.5h60q-3 19-4 30t-1 21q0 18 7.5 37.5T475-792q23 30 34 55.5t11 49.5q0 12-1.5 24t-4.5 23h-62Zm120 0q5-18 6.5-27t1.5-20q0-15-7-30.5T549-753q-23-27-34.5-56.5T503-869q0-12 1.5-24.5T509-920h60q-3 19-4 30t-1 21q0 18 7.5 37.5T595-792q23 30 34 55.5t11 49.5q0 12-1.5 24t-4.5 23h-62Z'/%3E%3C/svg%3E");
}

.icon-gift .w-nav-title::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M160-440v80h640v-80H160Zm0-440h640q33 0 56.5 23.5T880-800v440q0 33-23.5 56.5T800-280H640v200l-160-80-160 80v-200H160q-33 0-56.5-23.5T80-360v-440q0-33 23.5-56.5T160-880Zm0 320h640v-240H160v240Zm0 200v-440 440Z'/%3E%3C/svg%3E");
}

.icon-card .w-nav-title::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M160-280v80h640v-80H160Zm0-440h88q-5-9-6.5-19t-1.5-21q0-50 35-85t85-35q30 0 55.5 15.5T460-826l20 26 20-26q18-24 44-39t56-15q50 0 85 35t35 85q0 11-1.5 21t-6.5 19h88q33 0 56.5 23.5T880-640v440q0 33-23.5 56.5T800-120H160q-33 0-56.5-23.5T80-200v-440q0-33 23.5-56.5T160-720Zm0 320h640v-240H596l84 114-64 46-136-184-136 184-64-46 82-114H160v240Zm228.5-331.5Q400-743 400-760t-11.5-28.5Q377-800 360-800t-28.5 11.5Q320-777 320-760t11.5 28.5Q343-720 360-720t28.5-11.5ZM600-720q17 0 28.5-11.5T640-760q0-17-11.5-28.5T600-800q-17 0-28.5 11.5T560-760q0 17 11.5 28.5T600-720Z'/%3E%3C/svg%3E");
}

.icon-promo .w-nav-title::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M80-160v-640h800v640H80Zm80-80h640v-480H160v480Zm0 0v-480 480Zm160-40h80v-40h40q17 0 28.5-11.5T480-360v-120q0-17-11.5-28.5T440-520H320v-40h160v-80h-80v-40h-80v40h-40q-17 0-28.5 11.5T240-600v120q0 17 11.5 28.5T280-440h120v40H240v80h80v40Zm320-30 80-80H560l80 80Zm-80-250h160l-80-80-80 80Z'/%3E%3C/svg%3E");
}

.icon-contacts .w-nav-title::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M798-120q-125 0-247-54.5T329-329Q229-429 174.5-551T120-798q0-18 12-30t30-12h162q14 0 25 9.5t13 22.5l26 140q2 16-1 27t-11 19l-97 98q20 37 47.5 71.5T387-386q31 31 65 57.5t72 48.5l94-94q9-9 23.5-13.5T670-390l138 28q14 4 23 14.5t9 23.5v162q0 18-12 30t-30 12ZM241-600l66-66-17-94h-89q5 41 14 81t26 79Zm358 358q39 17 79.5 27t81.5 13v-88l-94-19-67 67ZM241-600Zm358 358Z'/%3E%3C/svg%3E");
}

.icon-about .w-nav-title::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M480-680q17 0 28.5-11.5T520-720q0-17-11.5-28.5T480-760q-17 0-28.5 11.5T440-720q0 17 11.5 28.5T480-680Zm-40 320h80v-240h-80v240ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z'/%3E%3C/svg%3E");
}





/* Базовые стили для кнопки-иконки */
.w-btn.bhicononly {
    /*display: inline-flex !important;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Ограничиваем ширину до размера иконки (примерно) */
    /*width: 2cqi;*/
    /*padding-left: 0 !important;*/
    /*padding-right: 0 !important;*/

}

/* Скрываем текст внутри */
.w-btn.bhicononly .w-btn-label {
    opacity: 0;
    max-width: 0;
    display: inline-block;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    margin: 0;
}

/* Состояние при наведении */
.w-btn.bhicononly:hover {
    width: auto; /* Позволяем кнопке расшириться */
    /*padding-left: 1.5em !important;*/
    /*padding-right: 1.5em !important;*/
    flex-shrink: 0 ;
    padding-inline:1cqi;
}

.w-btn.bhicononly:hover .w-btn-label {
    opacity: 1;
    max-width: 300px; /* Достаточное значение для текста */
}

/* Учитываем, что иконка стоит справа (icon_atright) */
.w-btn.bhicononly.icon_atright {
    /*flex-direction: row-reverse;*/

}
.w-btn.bhicononly svg, .w-btn.bhicononly i{    margin-inline:auto; }

.w-btn.bhicononly:hover .w-btn-label {
    margin-inline: 0.6em; /* Отступ от иконки, когда текст виден */
}

.spaitem_footer .w-btn{
    font-size: 13px;
    flex-shrink: 1 ;
    min-width: 0 ;
    overflow: hidden ;
    white-space: nowrap ;
  .w-btn-label {
        /*display: inline-block;*/
        /*max-width: 100%;*/
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
      white-space: nowrap ;
    }}