@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: "woodmart-font";
	src: url("//al-f.ru/wp-content/themes/woodmart/fonts/woodmart-font-1-400.woff2?v=7.5.8") format("woff2");
	font-display:swap;
}

:root {
	--wd-text-font: "Roboto", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: rgb(91,91,91);
	--wd-text-font-size: 15px;
	--wd-title-font: "Roboto", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 500;
	--wd-title-color: #242424;
	--wd-entities-title-font: "Roboto", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 400;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Roboto", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Roboto", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 500;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Roboto", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 700;
	--wd-header-el-transform: uppercase;
	--wd-header-el-font-size: 13px;
	--wd-primary-color: rgb(56,56,56);
	--wd-alternative-color: rgb(239,192,27);
	--wd-link-color: #1D599C;
	--wd-link-color-hover: rgb(239,192,27);
	--btn-default-bgcolor: rgb(255,255,255);
	--btn-default-bgcolor-hover: #efefef;
	--btn-accented-bgcolor: rgb(29,89,156);
	--btn-accented-bgcolor-hover: rgb(239,192,27);
	--wd-form-brd-width: 2px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
}
.wd-popup.wd-age-verify {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: url(https://al-f.ru/wp-content/uploads/2021/09/marketplace-promo-popup.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	--wd-popup-width: 800px;
}
.page-title-default {
	background-color: rgb(255,255,255);
	background-image: none;
	background-size: cover;
	background-position: center center;
}
.footer-container {
	background-color: rgb(56,56,56);
	background-image: none;
}
html .wd-nav.wd-nav-main > li > a {
	font-family: "Roboto", Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 15px;
	text-transform: none;
}
.wd-popup.popup-quick-view {
	--wd-popup-width: 920px;
}
.woocommerce-product-gallery {
	--wd-gallery-gap: 5px;
}

@media (max-width: 1024px) {
	:root {
		--wd-text-font-size: 15px;
	}
	.woocommerce-product-gallery {
		--wd-gallery-gap: 5px;
	}

}

@media (max-width: 768.98px) {
	:root {
		--wd-text-font-size: 15px;
	}
	.woocommerce-product-gallery {
		--wd-gallery-gap: 5px;
	}

}
:root{
--wd-container-w: 1222px;
--wd-form-brd-radius: 0px;
--btn-default-color: #333;
--btn-default-color-hover: #333;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 0px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-default-box-shadow-active: none;
--btn-default-bottom: 0px;
--btn-accented-brd-radius: 0px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
--btn-accented-box-shadow-active: none;
--btn-accented-bottom: 0px;
--wd-brd-radius: 0px;
}

@media (min-width: 1239px) {
.platform-Windows .wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}

@media (min-width: 1222px) {
html:not(.platform-Windows) .wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}


/* 1. Общий контейнер групп */
.wapf-image-swatch-wrapper, 
.wapf-field-color-swatch .wapf-field-input {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}
.custom-static-item.mt-30apf {margin-top: -15px !important;}
.wapf-card-img img {width: 30px !important;height: 28px !important;max-width: 30px !important;max-height: 28px !important;object-fit: contain !important;}
.wapf-card-title {font-weight: 400 !important;font-size: 14px !important;}
.wapf-card {background: #1d599c12 !important;border: 2px solid #e9ecef !important;}
.wapf-card:not(.is-qty-select):hover {background:#efc01b38 !important}
.wapf-card.wapf-checked:not(.is-qty-select) {background:#0beb503d !important}

/* Фикс для кружков (цветов): заставляем их всегда стоять в ряд */
.wapf-field-color-swatch .wapf-field-input,
.wapf-swatch-wrapper:not(:has(.is-qty-select)),
.wapf-image-swatch-wrapper:not(:has(.is-qty-select)) {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    display: flex !important;
}

/* 2. БАЗОВЫЕ СТИЛИ СТРОКИ (Для модулей и статических элементов) */
.wapf-swatch, .custom-static-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #efefef !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Исключение для кружков выбора цвета */
.wapf-field-color-swatch .wapf-swatch,
.wapf-swatch:not(.is-qty-select):not(.custom-static-item) {
    width: auto !important;
    border-bottom: none !important;
    flex-direction: column !important;
    gap: 5px !important;
    padding: 5px !important;
}

.qty-swatch-img-wrapper, .wapf-swatch-img, .static-img-wrapper {
    width: 35px !important;
    min-width: 35px !important;
    margin-right: 12px !important;
}

.qty-swatch-img img, .wapf-swatch-img img, .static-img-wrapper img {
    width: 100% !important;
    height: auto !important;
}

/* Сами кружки цветов */
.wapf-swatch-visual, 
.wapf-swatch:not(.is-qty-select) .wapf-swatch-img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    margin: 0 !important;
    border: 1px solid #ddd !important;
}

.qty-swatch-inner, .static-inner {
    display: flex !important;
    flex: 1 !important;
    flex-direction: row !important;
    align-items: center !important;
}

/* 3. ДЕСКТОПНАЯ ЛОГИКА (Переключатель ПЕРЕД ценой + Кружки вровень с заголовком) */
@media (min-width: 769px) {
    /* Выравниваем кружки в одну линию с заголовком "Цвет каркаса" */
    .wapf-field-color-swatch {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 20px !important;
        border-bottom: 1px solid #efefef !important;
        padding-bottom: 15px !important;
        margin-bottom: 15px !important;
    }

    .wapf-field-color-swatch .wapf-field-label {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        font-weight: 600 !important;
    }

    .wapf-field-color-swatch .wapf-field-input {
        margin-top: 0 !important;
    }

    /* Логика для модулей с количеством */
    .qty-swatch-inner, .static-inner {
        display: grid !important;
        grid-template-columns: 1fr auto auto !important; 
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        text-align: left !important;
    }

    .wapf-swatch-label, .static-label {
        display: contents !important;
    }

    .wapf-swatch-label, .static-label-text {
        font-size: 14px !important;
        line-height: 1.4 !important;
        padding-right: 15px !important;
    }

    .wapf-qty.apf-plusmin {
        grid-column: 2 !important;
        order: 2 !important; 
        height: 25px !important;
        width: 85px !important;
        margin: 0 !important;
    }

    .wapf-pricing-hint, .static-price {
        grid-column: 3 !important;
        order: 3 !important;
        font-weight: 700 !important;
        color: #000 !important;
        font-size: 15px !important;
        text-align: right !important;
        white-space: nowrap !important;
        min-width: 85px !important;
    }
}

/* 4. КНОПКИ ПЛЮС/МИНУС */
.wapf-qty.apf-plusmin {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 3px !important;
    background: #fff !important;
}

.wapf-qty.apf-plusmin button {
    width: 25px !important;
    height: 24px !important;
    padding: 0 !important;
    background: #f8f8f8 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wapf-qty.apf-plusmin input[type="number"] {
    width: 20px !important;
    height: 25px !important;
    border: none !important;
    border-left: 1px solid #e1e1e1 !important;
    border-right: 1px solid #e1e1e1 !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

/* 📱 МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width: 768px) {
    .wapf-swatch.is-qty-select, .custom-static-item {
        display: grid !important;
        grid-template-columns: 60px 1fr !important;
        grid-template-rows: auto auto !important;
        column-gap: 12px !important;
        align-items: center !important;
        padding: 8px 0 !important;
    }

    .qty-swatch-img-wrapper, .static-img-wrapper {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        align-self: center !important;
        width: 60px !important;
        min-width: 60px !important;
    }

    .qty-swatch-inner, .static-inner {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto !important;
        align-items: end !important;
    }

    .wapf-swatch-label, .static-label-text {
        grid-column: 1 / span 2 !important;
        grid-row: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 5px !important;
        text-align: left !important;
    }

    .wapf-pricing-hint, .static-price {
        grid-column: 1 !important;
        grid-row: 2 !important;
        color: #000000 !important;
        font-weight: 600 !important;
        text-align: left !important;
    }

    .wapf-qty.apf-plusmin {
        grid-column: 2 !important;
        grid-row: 2 !important;
        height: 30px !important;
        width: 90px !important;
        margin-left: auto !important;
    }
}
