/*
Theme Name: Medion
Theme URI: https://medion-group.com.ua/
Author: Medion Group
Description: Тема Medion Group: каталог медичного обладнання, запити КП, послуги, рішення та проєкти. Потребує плагіна Medion Core.
Version: 1.0.241
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: medion
*/

/* Основні стилі підключаються з assets/stylesheet/*. Тут — лише доповнення для WordPress. */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; opacity: .7; margin-top: 6px; }

.admin-bar .main-header { top: var(--wp-admin--admin-bar--height, 32px); }

.main-header .top-line .right-info .basket .count:empty { display: none; }

.contact-form .alert-success { color: #3FB9B7; margin-top: 12px; }
.contact-form button[disabled] { opacity: .6; pointer-events: none; }

.ms-empty { padding: 40px 0; font-size: 18px; }

.catalog-loading { opacity: .5; pointer-events: none; transition: opacity .2s; }

.ms-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1000;
	max-width: 360px;
	padding: 16px 20px;
	border-radius: 8px;
	background: #1d2b36;
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s, transform .25s;
}
.ms-toast.show { opacity: 1; transform: none; }
.ms-toast a { color: #3FB9B7; text-decoration: underline; margin-left: 6px; }

.typical-page .inner img { max-width: 100%; height: auto; }

.tech-block__inner.is-collapsed .item.attr-hidden { display: none; }

.error-page { padding: 60px 0 100px; text-align: center; }
.error-page .text { font-size: 20px; margin: 20px 0 40px; }
.error-page .btn-block { display: flex; justify-content: center; }

/* Search must not inherit global `section { padding: 80px 0 }` above the H1. */
section.ms-search-page.typical-page,
section.ms-search-page {
	padding: 0 0 64px;
}
.ms-search-page > .title-block {
	margin-top: 0;
}
.ms-search-page .ms-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	margin: 0 0 32px;
	max-width: 720px;
}
.ms-search-page .ms-search-form__input {
	flex: 1 1 240px;
	min-width: 0;
	height: 56px;
	padding: 0 18px;
	border: 1px solid var(--light, #d9d9d9);
	background: #fff;
	font-size: 16px;
	font-family: var(--font-body, inherit);
	color: var(--black, #231f20);
	box-sizing: border-box;
}
.ms-search-page .ms-search-form__submit {
	flex: 0 0 auto;
	min-width: 140px;
	padding: 16px 24px;
}
.ms-search-hint { color: #5a5b61; font-size: 16px; }
.ms-search-results { list-style: none; padding: 0; margin: 0; }
.ms-search-results__item { padding: 16px 0; border-bottom: 1px solid #e5e5e5; }
.ms-search-results__link {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	color: var(--black);
	text-decoration: none;
}
.ms-search-results__link:hover .ms-search-results__title { color: var(--accent, #3FB9B7); }
/* Product preview: beat `.typical-page .inner img { height:auto }` */
.ms-search-page .ms-search-results__thumb {
	flex: 0 0 112px;
	width: 112px;
	height: 112px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3f4f5;
	border: 1px solid rgba(90, 91, 97, 0.12);
	overflow: hidden;
}
.ms-search-page .ms-search-results__thumb img,
.ms-search-page.typical-page .inner .ms-search-results__thumb img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	display: block;
}
.ms-search-results__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ms-search-results__type {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--accent, #3FB9B7);
}
.ms-search-results__title { font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--black); }
.ms-search-results__excerpt { font-size: 15px; line-height: 1.45; color: #5a5b61; }
@media (max-width: 600px) {
	.ms-search-page .ms-search-results__thumb { flex-basis: 80px; width: 80px; height: 80px; }
	.ms-search-results__title { font-size: 17px; }
}
