/*
Theme Name: Berges Home Visual
Theme URI: https://berges.ru/
Description: Визуальная копия главной страницы berges.ru (OpenCart Mahardhi). Каталог и товары — через WooCommerce отдельно.
Author: Migration project
Version: 1.0.11
Text Domain: berges-home
Requires at least: 6.0
Requires PHP: 7.4
*/

/*
 * Визуал = оригинал Mahardhi из assets/.../stylesheet.css.
 * Здесь НИКАКОЙ своей сетки для блоков вёрстки (в т.ч. «Кратко о нас»).
 * Только совместимость с WP.
 */

/* ── Поиск в шапке ── */
.header-search form { width: 100%; }

/* ── CF7 в блоке подписки ── */
.newsletterblock form.wpcf7-form { margin: 0; }

/* Статья Simple Blog: абзацы, картинка, заголовок как на berges.ru */
body.extension-simple_blog-article-view div.article-info .article-image img {
	width: 100%;
	height: auto;
	display: block;
	max-width: 100%;
}
body.extension-simple_blog-article-view div.article-info .article-title h1 {
	font-size: 1.86rem;
	line-height: 1.3;
	font-weight: 500;
	margin: 0 0 20px;
	color: var(--primary-color);
}
body.extension-simple_blog-article-view div.article-info .article-sub-title {
	display: block;
	overflow: hidden;
	width: 100%;
	margin: 0 0 20px;
}
body.extension-simple_blog-article-view div.article-info .article-sub-title span {
	display: inline-block;
	float: none;
	color: #888;
	font-size: 13px;
	padding: 0 12px 0 0;
}
body.extension-simple_blog-article-view div.article-info .article-description {
	font-size: 1rem;
	color: var(--primary-color);
}
body.extension-simple_blog-article-view div.article-info .article-description p {
	margin: 0 0 10px;
}

/*
 * WP/браузерное img{max-width:100%} внутри flex сжимает фото видео
 * и ломает высоту блока «Кратко о нас». Снимаем только это сжатие.
 * Сетка/отступы — из stylesheet.css (.html-video: margin-top:100px; margin-left:-140px; width:auto).
 * overflow-x прячем на уровне body, т.к. картинка шире оставшейся колонки — как на десктопе оригинала.
 */
body.common-home {
	overflow-x: hidden;
}
.module.video-about .promo-video-img > img {
	max-width: none;
	width: auto;
	height: auto;
}

/* Регистрация партнёра: галочка и ссылка на политику кликабельны */
body.account-simpleregister .simpleregister-button-block {
	overflow: visible;
}
body.account-simpleregister .simpleregister-button-right {
	float: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	text-align: left;
}
body.account-simpleregister #agreement_checkbox {
	float: none;
	display: block;
	margin: 0;
	flex: 1 1 260px;
	position: relative;
	z-index: 2;
	pointer-events: auto;
	line-height: 1.45;
}
body.account-simpleregister #agreement_checkbox input[type="checkbox"] {
	position: static !important;
	display: inline-block !important;
	width: 16px;
	height: 16px;
	margin: 0 8px 0 0;
	vertical-align: middle;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	appearance: checkbox;
	-webkit-appearance: checkbox;
	cursor: pointer;
}
body.account-simpleregister #agreement_checkbox label {
	display: inline !important;
	margin: 0;
	padding: 0;
	font-weight: normal;
	cursor: pointer;
	pointer-events: auto;
}
body.account-simpleregister #agreement_checkbox a {
	position: relative;
	z-index: 4;
	pointer-events: auto;
	cursor: pointer;
	color: inherit;
	text-decoration: underline;
}

/* Документы / сертификаты: аккордеон как на berges.ru, без WP-отступов списков */
.yt-accordion.acc-files,
.yt-accordion.accord-files {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}
.yt-accordion.acc-files > .yt-accordion-group,
.yt-accordion.accord-files > .yt-accordion-group {
	list-style: none;
	margin-left: 0;
	margin-right: 0;
	padding: 0;
	background: #fff;
}
.yt-accordion .accordion-heading {
	font-size: 1.33rem;
	font-weight: 500;
	line-height: 1.4;
	margin: 0;
	padding: 15px 30px;
}

/* Рекламация — как на berges.ru/complaint */
#information-complaint .page_title,
#information-complaint h1 {
	font-size: 1.3rem;
	text-transform: uppercase;
	margin: 0 0 20px;
	font-weight: 500;
}
#information-complaint .shop-content {
	margin: 0;
}
#information-complaint .form-horizontal .form-group {
	margin-bottom: 18px;
}
#information-complaint .form-horizontal .control-label {
	padding-top: 8px;
	font-weight: 400;
}
#information-complaint .text-danger {
	margin-top: 6px;
}
#information-complaint .success {
	display: block;
	margin-top: 8px;
	color: #3c763d;
}
#information-complaint input[type="checkbox"] {
	margin: 0 8px 0 0;
	vertical-align: middle;
}
#information-complaint .buttons {
	margin-top: 10px;
}
