/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/**
 * ------------------------------------------------------------------------------------------------
 * Общее
 * ------------------------------------------------------------------------------------------------
 */
/* плавная прокрутка */
html {
  scroll-behavior: smooth;
}

label,
.label {
	display: block;
	font-size: 14px;
	color: var(--wd-text-color);
	margin-bottom: 2px;
}

/* datepicker */
.air-datepicker-global-container {
	z-index: 1111 !important;
}

.air-datepicker-cell.-current- {
	color: var(--wd-primary-color) !important;
}

.air-datepicker-cell.-selected- {
	color: #fff !important;
	background-color: var(--wd-primary-color) !important;
}

.air-datepicker-cell.-selected-:hover {
	background-color: #8fba58 !important;
	color: #fff !important;
}

/* заголовок страницы */
.wd-page-content .wd-page-title .container {
	flex-direction: column-reverse;
}

.wd-page-content .wd-page-title {
	padding-top: 40px;
}

/* dropdown главного меню */
.whb-main-header .menu-item .wd-dropdown-menu {
	width: 260px;
}

/* высота иконок информационных блоков */
.info-box-wrapper .wd-items-top .box-icon-wrapper {
	margin-top: 2px;
}

/**
 * ------------------------------------------------------------------------------------------------
 * Фиксы
 * ------------------------------------------------------------------------------------------------
 */
/* фикс кнопок */
.btn-color-primary.btn-style-bordered {
	color: var(--e-global-color-c082307);
}

.btn-color-primary.btn-style-bordered:hover {
	color: #fff;
}

.btn-color-primary.btn-size-large {
	font-size: var(--wd-text-font-size);
}

/**
 * ------------------------------------------------------------------------------------------------
 * Каталог
 * ------------------------------------------------------------------------------------------------
 */
/* стили карточки товара */
.wd-product .product-element-top img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

.wd-product .product-element-bottom .wd-entities-title {
	text-align: center;
}

.wd-product.wd-hover-fw-button .product-element-bottom .wrap-price {
	flex-direction: column;
}

.wd-product.wd-hover-fw-button .product-element-bottom .product-btn-detail {
	color: var(--e-global-color-c082307);
	border: 2px solid var(--wd-primary-color);
	border-radius: var(--wd-brd-radius);
	background-color: transparent;
	padding: 5px 20px;
	font-size: 14px;
	width: 100%;
	text-align: center;
}

.wd-product.wd-hover-fw-button .product-element-bottom .product-btn-detail:hover {
	color: #fff;
	background-color: var(--wd-primary-color);
}

/* скрыть список цен на странице категории товара */
.tax-product_cat .shop-price-list {
	display: none;
}

/* правки стилей карточек категорий */
.woocommerce-shop .product-category .wd-cat-wrap {
	padding: 0;
	border-color: var(--wd-primary-color); 
}

.woocommerce-shop .product-category:hover .wd-cat-count > a {
	color: var(--wd-text-color);
}

.woocommerce-shop .product-category .wd-cat-wrap .wd-cat-inner {
	aspect-ratio: 19 / 12;
}

.woocommerce-shop .product-category .wd-cat-wrap .wd-cat-inner::before {
	content: none;
}

.woocommerce-shop .product-category .wd-cat-wrap .wd-cat-inner .wd-cat-content {
	position: absolute !important;
	top: 50% !important;
	inset-inline: 0 !important;
	transform: translateY(-50%) translateZ(0) !important;
}

/* правки стилей списка цен */
.woocommerce-shop .shop-price-list .wd-menu-price .menu-price-title {
	font-size: 18px;
	font-weight: 400;
}

.woocommerce-shop .shop-price-list .wd-menu-price .menu-price-details {
	font-style: normal;
	font-size: 100%;
}

/* стили атрибутов товара */
.single-product .wc-product-attributes {
	padding-left: 0;
}

.single-product .wc-product-attributes li {
	display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--e-global-color-ed9ba71);
    gap: 12px;
}

.single-product .wc-product-attributes li span {
	text-align: end;
}

/**
 * ------------------------------------------------------------------------------------------------
 * Специалисты
 * ------------------------------------------------------------------------------------------------
 */
.personnel-card .wd-post-thumb .wd-post-img img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.personnel-card .wd-post-inner .wd-post-thumb {
	border-radius: 9999px;
	border: 2px solid var(--wd-primary-color);
	padding: 8px;
}

.personnel-card .wd-post-inner .wd-post-thumb img {
	border-radius: 9999px;
}

.personnel-card .wd-post-inner .wd-post-title.wd-entities-title {
	font-size: 20px;
}

.personnel-card .personnel-excerpt {
	font-size: 15px;
	padding-inline: 15px;
	color: var(--wd-text-color);
}

.personnel-card .personnel-excerpt p {
	margin-bottom: 0;
}

.wd-blog-element .wd-posts:has(.personnel-card) .wd-post:hover .wd-post-img {
	transform: scale(1);
	opacity: 0.8;
}

.wd-blog-element .wd-posts:has(.personnel-card) {
	row-gap: 60px;
}

@media (min-width: 500px) {
	.wd-blog-element .wd-posts:has(.personnel-card) {
		--wd-col-sm: 2 !important;
	} 
}

@media (min-width: 1024px) {
	.wd-blog-element .wd-posts:has(.personnel-card) {
		column-gap: 120px;
	}
	
	.wd-posts.wd-grid-g:has(> .personnel-card:nth-child(3n + 1):last-child) > .personnel-card:last-child {
		grid-column: 2;
	}
}

/**
 * ------------------------------------------------------------------------------------------------
 * Шапка
 * ------------------------------------------------------------------------------------------------
 */
.whb-main-header .whb-top-bar .container {
	max-width: 100%;
}

.whb-main-header .whb-top-bar .social-links-header-custom .elementor-element {
	min-width: 26px;
}

.whb-main-header .whb-top-bar .whb-top-bar-inner {
	max-width: 100%;
	justify-content: center;
	flex-wrap: wrap;
}

@media (max-width: 1024px) {
    :root {
        --wd-top-bar-sm-h: 150px !important;
    }
}

@media (max-width: 480px) {
    :root {
        --wd-top-bar-sm-h: 240px !important;
    }
}

.whb-main-header .whb-top-bar.whb-flex-flex-middle .whb-col-center {
	flex: none;
}

.whb-main-header .whb-header-bottom .whb-col-mobile {
	justify-content: space-between;
}

.whb-main-header .whb-top-bar-inner .whb-col-mobile {
	justify-content: center;
	flex-wrap: wrap;
}

.whb-main-header .whb-general-header-inner {
	border-top: 1px solid var(--e-global-color-0d57f44);
}

@media (max-width: 1024px) {
    .whb-main-header .whb-general-header-inner {
        flex-direction: column;
		justify-content: center;
    }
	
	.whb-main-header .whb-general-header-inner .whb-mobile-left {
		justify-content: center;
		margin-left: 0;
		flex: none;
	}
	
	.whb-main-header .whb-general-header-inner .whb-mobile-right {
		justify-content: center;
		margin-right: 0;
		flex: none;
	}
	
	.whb-main-header .whb-general-header-inner .whb-mobile-left .wd-header-html {
		padding-inline: 0;
	}
}

/**
 * ------------------------------------------------------------------------------------------------
 * Подвал
 * ------------------------------------------------------------------------------------------------
 */
.wd-footer:has(.main-footer) {
	border-top: 1px solid var(--e-global-color-0d57f44);
}

@media screen and (min-width: 576px) {
	.main-footer:not(:has(.footer-column-4)) .footer-column-1 ul.menu {
		column-count: 2;
	}
}

@media screen and (max-width: 1024px) {
	.main-footer .footer-sidebar:has(> :nth-child(3):not(:nth-child(4))) .footer-column-1 {
		--wd-col-md: 12 !important;
	}
	
	.main-footer .footer-sidebar:has(> :nth-child(3):not(:nth-child(4))) .footer-column-2,
	.main-footer .footer-sidebar:has(> :nth-child(3):not(:nth-child(4))) .footer-column-3 {
		--wd-col-md: 6 !important;
	}
	
	.main-footer .footer-sidebar {
		row-gap: 45px !important;
	}
}

/* копирайт */
@media screen and (max-width: 576px) {
	.wd-copyrights .wd-info-box {
		flex-direction: column-reverse;
	}
}

.wd-footer .wd-copyrights {
	padding-block: 0;
	border-top: 0;
}

.wd-footer .wd-copyrights .wd-col-start {
	border-top: 1px solid var(--e-global-color-0d57f44);
	padding-block: 20px;
}

/**
 * ------------------------------------------------------------------------------------------------
 * Contact form 7
 * ------------------------------------------------------------------------------------------------
 */
.wpcf7 .wpcf7-heading {
	font-size: 20px;
	font-weight: 300;
	color: var(--e-global-color-c52a696);
}

@media screen and (min-width: 768px) {
	.wpcf7 .wpcf7-heading {
		font-size: 26px;
	}
}

@media screen and (min-width: 1024px) {
	.wpcf7 .wpcf7-heading {
		font-size: 30px;
	}
}

.wpcf7 .wpcf7-heading-border {
	font-size: 18px;
	border-bottom: 1px solid var(--e-global-color-ed9ba71);
	margin-bottom: 16px;
	font-weight: 300;
}

.wpcf7 .wpcf7-heading-border p {
	margin-bottom: 0;
}

.wpcf7 .wpcf7-label {
	display: block;
	font-size: 14px;
	margin-left: 5px;
	margin-bottom: 3px;
}

.wpcf7 .form-spacing {
	margin-bottom: 24px;
}

.wpcf7 .form-spacing-medium {
	margin-bottom: 30px;
}


.wpcf7 .form-spacing-large {
	margin-bottom: 36px;
}

.wpcf7 .form-warning {
	position: relative;
	display: block;
	background-color: var(--notices-warning-bg);
    color: var(--notices-warning-color);
	font-size: 14px;
	padding-block: 18px;
    padding-inline: 65px 30px;
	border-radius: var(--wd-brd-radius);
}

.wpcf7 .form-warning::before {
	content: "\f100";
	position: absolute;
    top: calc(50% - 9px);
    left: 24px;
    font-size: 18px;
    line-height: 18px;
    font-family: "woodmart-font";
}

.wpcf7-acceptance .wpcf7-list-item {
	margin-inline-end: 0;
}

.wpcf7-acceptance .wpcf7-list-item > label {
	margin-bottom: 0;
}

.wpcf7-acceptance .wpcf7-list-item input {
	margin-inline: 2px 12px;
	transform: scale(1.15);
}

.wpcf7-acceptance .wpcf7-list-item-label {
	font-size: 14px;
}

.wpcf7 .wpcf7-not-valid-tip {
	font-size: 14px;
    margin-top: 4px;
	color: #f9450e;
}

.wpcf7 .wpcf7-form .wpcf7-not-valid {
	border-color: #f9450e;
}

.wpcf7 .wpcf7-response-output {
	font-size: 14px;
}

.wpcf7 .wpcf7-submit.width-full {
	width: 100%;
}

.wpcf7 p:has(.wpcf7-acceptance) {
	margin-bottom: 0;
}
    
.wpcf7 .wpcf7-file {
	color: #fff;
	font-size: 14px;
}

.wpcf7 .wpcf7-file::file-selector-button {
	background-color: transparent;
	border-radius: 5px;
	border: 2px solid var(--wd-alternative-color);
	padding: 5px 12px;
	cursor: pointer;
	transition: color 0.25s ease-in-out, background 0.25s ease-in-out;
	font-family: Onest, system-ui;
	color: #fff;
}

.wpcf7 .wpcf7-file::file-selector-button:hover {
	background-color: var(--wd-alternative-color);
	color: var(--wd-text-color);
}

.wpcf7 .file-title {
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}

.wpcf7 .file-text {
	color: var(--color-gray-400);
	font-size: 14px;
}

.wpcf7 .wpcf7-form.submitting .wpcf7-submit,
.wpcf7 .wpcf7-form.submitting .wpcf7-submit:hover {
	color: transparent;
	pointer-events: none;
}

.wpcf7 p:has(.wpcf7-submit) {
	position: relative;
}

div.wpcf7 .wpcf7-spinner {
	position: absolute !important;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

div.wpcf7 .wpcf7-spinner::before {
	position: static !important;
	border-left-color: #fff !important;
}

div.wpcf7 p:has(input[type="hidden"]) {
	margin-bottom: 0;
}

.wpcf7 p:has(.label) {
	margin-bottom: 0;
}