/*
 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: 13px;
	color: var(--wd-text-color);
	margin-bottom: 4px;
}

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

/* окно об успешной отправке */
@media (max-width: 550px) {
    .pum-container {
        max-width: 550px !important;
        width: 100% !important;
    }
}

.pum-container .pum-title {
    margin-bottom: 1em;
}

.pum-container .pum-content {
	line-height: 1.6em;
}

.wpcf7 form.sent .wpcf7-response-output {
    display: none;
}

/* 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: var(--wd-primary-color) !important;
	color: #fff !important;
}

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

.text-white {
	color: #fff;
}

.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

.cursor-pointer {
    cursor: pointer;
}

/* подчеркивание для текста у инфобокса если есть ссылка */
.info-box-hover-link:has(a):hover .info-box-content .info-box-inner {
	text-decoration: underline;
}

/* добавляет небольшой отступ для иконки инфобокса */
.info-box-icon-fix .wd-info-box.text-left.box-icon-align-left .box-icon-wrapper.box-with-icon {
	margin-top: 2px;
}

/* уменьшить ширину изображения */
@media (max-width: 768px) {
	.reduce-image-size-tablet {
		max-width: 360px !important;
	}
}

/* стили для обычных таблиц */
.table-decoration {
	overflow: auto;
}

@media (max-width: 768px) {
	.table-decoration {
	    -webkit-mask-image: linear-gradient(to left, transparent 5px, #000 60px);
        mask-image: linear-gradient(to left, transparent 5px, #000 60px);
	}
}

@media (max-width: 576px) {
	.table-decoration tbody tr td:last-child {
		padding-right: 30px;
	}
}

.table-decoration table {
	border-collapse: separate;
	overflow: hidden;
	border: 1px dashed var(--brdcolor-gray-300);
	border-radius: var(--wd-brd-radius);
}

.table-decoration tbody tr:last-child td {
	border-bottom: 0;
}

.table-decoration tbody tr:nth-child(even) {
  	background-color: #F2FBFE;
}

.table-decoration tr td:not(:last-child) {
	border-right: 1px dashed var(--brdcolor-gray-300);
	border-bottom: 1px dashed var(--brdcolor-gray-300);
}

/**
 * ------------------------------------------------------------------------------------------------
 * Статьи
 * ------------------------------------------------------------------------------------------------
 */
/* скрыть центральную кнопку в навигации статей */
.wd-page-nav .back-to-archive {
	display: none;
}

/* */
.archive.category .wd-post-img img {
	aspect-ratio: 1;
	object-fit: cover;
}

/* одинаковая высота для всех блоков контента у карточек */
.wd-posts .wd-post-inner {
	display: flex;
    flex-direction: column;
    height: 100%;
}

.wd-posts .wd-post-inner .wd-post-content {
	flex-grow: 1;
}

.wd-posts .wd-post-inner .wd-post-content .wd-post-read-more {
	margin-top: auto;
}

/**
 * ------------------------------------------------------------------------------------------------
 * Врачи
 * ------------------------------------------------------------------------------------------------
 */
/* aspect 3 / 4 для карточек в архиве */
.post-type-archive-personnel .wd-post-img img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

/* 1 колонка на ширине 420px */
@media (max-width: 420px) {
	.post-type-archive-personnel .wd-posts {
		--wd-col-sm: 1 !important;
	}
}

/**
 * ------------------------------------------------------------------------------------------------
 * Услуги
 * ------------------------------------------------------------------------------------------------
 */
/* aspect 4 / 3 для карточек в архиве */
.post-type-archive-service .wd-post-img img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* 1 колонка на ширине 420px */
@media (max-width: 420px) {
	.post-type-archive-service .wd-posts {
		--wd-col-sm: 1 !important;
	}
}

/* доп. стили для иконки поиска на десктопе */
.whb-header .wd-header-search.wd-design-7.wd-display-dropdown .wd-tools-icon {
	width: 40px;
	height: 40px;
}

.whb-header .wd-header-search.wd-design-7.wd-display-dropdown .wd-tools-icon::before {
	font-size: 16px;
}

/**
 * ------------------------------------------------------------------------------------------------
 * Подвал
 * ------------------------------------------------------------------------------------------------
 */


/**
 * ------------------------------------------------------------------------------------------------
 * Contact form 7
 * ------------------------------------------------------------------------------------------------
 */
.wpcf7 .wpcf7-heading {
	font-size: 22px;
    line-height: 1.3em;
	font-weight: var(--wd-title-font-weight);
	color: var(--wd-title-color);
}

@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-heading-border {
    font-size: 17px;
    border-bottom: 1px solid var(--color-gray-200);
    margin-bottom: 22px;
    font-weight: 500;
    color: var(--wd-title-color);
}

.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;
	margin-bottom: 2px;
	transform: scale(1.35);
}

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

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

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

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

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

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

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

.wpcf7 .privacy-text {
	font-size: 13px;
    color: var(--color-gray-600);
}

.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-primary-color);
	padding: 5px 12px;
	cursor: pointer;
	transition: color 0.25s ease-in-out, background 0.25s ease-in-out;
}

.wpcf7 .wpcf7-file::file-selector-button:hover {
	background-color: var(--wd-primary-color);
	color: #fff;
}

.wpcf7 .file-title {
	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;
	margin-bottom: 0;
}

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

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

div.wpcf7 input[type=number] {
	padding: 0 15px;
	text-align: start;
}

.wpcf7 form.invalid .wpcf7-response-output {
    background-color: #E0B252;
    border-color: #E0B252;
    color: #fff;
	padding: 12px 20px;
	border-radius: var(--wd-brd-radius);
}
