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

/**
 * ------------------------------------------------------------------------------------------------
 * Основное
 * ------------------------------------------------------------------------------------------------
 */
/* base */
label,
.label {
	display: block;
	font-size: 15px;
	color: var(--wd-text-color);
	margin-bottom: 5px;
}

:is(p, ul, ol) {
	text-wrap: pretty;
}

h1 {
	text-wrap: balance;
}

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

.wd-page-content .wd-page-title .container .title {
	margin: auto;
	text-align: center;
	text-wrap: balance;
}

@media (max-width: 1024.98px) {
	.wd-header-overlap .wd-page-content .wd-page-title {
		padding-block: 110px 30px;
	}
}

/* 404 - скрыть шапку */
.error404 .whb-header {
	display: none;
}

/* cookie */
body .wd-cookies-popup {
	padding-block: 8px;
}

.wd-cookies-popup .cookies-info-text {
	font-size: 13px;
}

@media (min-width: 768px) {
	.wd-cookies-popup .cookies-info-text {
		font-size: 14px;
	}
}

/**
 * ------------------------------------------------------------------------------------------------
 * Хелперы
 * ------------------------------------------------------------------------------------------------
 */
/* утилиты */
.height-full {
	height: 100%;
}

.text-white {
	color: #fff;
}

.img-max-width-none img {
	max-width: none;
}

/* градиенты через custom css */
.gradient-dark-top::after {
	content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
	background-image: linear-gradient(to top, transparent 35%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.75) 100%);
	pointer-events: none;
}

/* градиент для промо баннеров */
.promo-banner-gradient .main-wrapp-img::after {
	content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
	background-image: linear-gradient(to top, transparent 25%, rgba(0, 0, 0, 0.7) 65%, rgba(0, 0, 0, 0.8) 100%);
	pointer-events: none;
}

@media (min-width: 768px) {
	.promo-banner-gradient .main-wrapp-img::after {
		background-image: linear-gradient(to top, transparent 25%, rgba(0, 0, 0, 0.7) 80%, rgba(0, 0, 0, 0.8) 100%);
	}
}

/* для секции с изображением которое выходит за рамки контейнера */
.e-con-inner-relative .e-con-inner {
	position: relative;
}

/**
 * ------------------------------------------------------------------------------------------------
 * Шапка
 * ------------------------------------------------------------------------------------------------
 */
/* отступ справа для текста рядом с лого */
.whb-main-header .wd-header-html:has(.header-logo-text) {
	margin-right: auto;
}

/**
 * ------------------------------------------------------------------------------------------------
 * Подвал
 * ------------------------------------------------------------------------------------------------
 */
.wd-footer {
	position: relative;
	z-index: 1;
}

/**
 * ------------------------------------------------------------------------------------------------
 * Contact form 7
 * ------------------------------------------------------------------------------------------------
 */
.wpcf7 .wpcf7-heading {
	font-size: 22px;
}

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

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

.wpcf7 .wpcf7-acceptance {
	display: block;
}

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

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

.wpcf7-acceptance .wpcf7-list-item input {
	margin-inline-end: 14px;
	transform: scale(1.35);
}

.wpcf7-acceptance .wpcf7-list-item-label {
	line-height: 2;
	font-size: 15px;
}

.wpcf7-acceptance .wpcf7-list-item-label a {
	font-size: 14px;
	text-decoration: underline;
}

.wpcf7-acceptance .wpcf7-list-item-label a:hover {
	font-size: 14px;
	text-decoration: none;
}

.wpcf7 .wpcf7-form-control-wrap + label {
	margin-top: 3px;
}

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

.wpcf7 .wpcf7-important-mark {
	font-size: 14px; 
	margin-bottom: 12px;
}

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

.wpcf7 .wpcf7-submit.width-full {
	width: 100%;
}
    
.wpcf7 .wpcf7-file {
	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;
}

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

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

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

div.wpcf7 .wpcf7-form .wpcf7-submit {
	background-color: transparent;
}

div.wpcf7 .wpcf7-form .wpcf7-submit:disabled:hover {
	background-color: transparent;
}

.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: #f04c4d !important;
}

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

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