/* ============================================
   CRO improvements for /xhose-test/
   - Тест-банер
   - Розширені відгуки з зірочками
   - FAQ блок
   - Sticky button mobile
   - Trust badges
   - Покращений селект
   ============================================ */

/* === Page-wide horizontal overflow guard ===
   Original styles.css has body{min-width:480px} and .main_wrapper{width:480px}
   which forced horizontal scroll on phones <480px. Override here. */
html {
	overflow-x: hidden;
}
body {
	overflow-x: hidden;
	position: relative;
	min-width: 0 !important;
}
.main_wrapper {
	width: 100% !important;
	max-width: 480px !important;
	margin: 0 auto !important;
}
img, video, iframe { max-width: 100%; height: auto; }

/* Anchor target = price_block#order_form. Browser native jump only,
   no scroll-behavior:smooth (iOS Safari interactions are unpredictable). */
#order_form { scroll-margin-top: 8px; }

/* === Price block responsive (original was rigid 170+140+170=480px floats) === */
@media (max-width: 479px) {
	.offer_section.offer1 .price_block {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: stretch;
		justify-content: center;
		gap: 8px;
		padding: 0 8px;
	}
	.offer_section.offer1 .price_item {
		float: none !important;
		width: auto !important;
		flex: 1 1 0;
		min-width: 0;
		height: auto !important;
		padding: 12px 4px !important;
	}
	.offer_section.offer1 .discount_block {
		float: none !important;
		width: auto !important;
		flex: 0 0 110px;
		height: auto !important;
		padding: 14px 0 !important;
		margin: 0 !important;
		display: flex;
		flex-direction: column;
		justify-content: center;
		/* Arrow shape that scales with the actual block height */
		clip-path: polygon(12% 0%, 88% 0%, 100% 50%, 88% 100%, 12% 100%, 0% 50%);
	}
	.offer_section.offer1 .discount_block:before,
	.offer_section.offer1 .discount_block:after { display: none !important; }
	.offer_section.offer1 .price_item .value { font-size: 22px; line-height: 24px; }
	.offer_section.offer1 .price_item.old .value { font-size: 18px; }
	.offer_section.offer1 .discount_block .value { font-size: 22px; line-height: 24px; letter-spacing: 0; }
	.offer_section.offer1 .price_item .text,
	.offer_section.offer1 .discount_block .text { font-size: 11px; line-height: 13px; letter-spacing: 0; }

	/* Original timer_block in header was 400px wide with float items — flex it */
	.offer_section.offer1 .timer_block { width: auto !important; padding: 0 12px; }
	.offer_section.offer1 .timer_item {
		float: none !important;
		display: inline-block;
		vertical-align: top;
		width: 28% !important;
		margin: 0 1% !important;
	}
	.offer_section.offer1 .timer_item:before { display: none !important; }
}

/* === Test banner === */
.test-banner {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: #ffe5b4;
	color: #6b4500;
	font-family: 'AvenirNextCyr', sans-serif;
	font-weight: 700;
	font-size: 12px;
	padding: 6px 12px;
	text-align: center;
	border-bottom: 1px solid #d8a050;
}

/* === Trust badges row під кнопкою замовити === */
.trust-badges {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	max-width: 460px;
	margin: 14px auto 0 auto;
	padding: 0 8px;
}
.trust-badge {
	flex: 1 1 calc(50% - 6px);
	min-width: 130px;
	background: rgba(255,255,255,.95);
	border-radius: 8px;
	padding: 8px 10px;
	font-family: 'AvenirNextCyr', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #2a4a2a;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.trust-badge .ico {
	font-size: 18px;
}

/* === Розширені відгуки === */
.reviews-pro {
	background: #fafafa;
	padding: 28px 14px 24px;
}
.reviews-pro .reviews-pro-title {
	text-align: center;
	font-family: 'AvenirNextCyr', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #222;
	margin: 0 0 6px 0;
}
.reviews-pro .reviews-pro-summary {
	text-align: center;
	font-size: 14px;
	color: #666;
	margin: 0 0 22px 0;
}
.reviews-pro .reviews-pro-summary .stars {
	color: #f0a600;
	font-size: 18px;
	letter-spacing: 1px;
	margin-right: 6px;
}
.review-card {
	background: #fff;
	border-radius: 10px;
	padding: 16px 16px 14px;
	margin: 0 auto 14px auto;
	max-width: 460px;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
	border: 1px solid #ececec;
}
.review-card .rc-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.review-card .rc-photo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 44px;
}
.review-card .rc-name {
	font-weight: 700;
	font-size: 14px;
	color: #222;
	margin: 0;
}
.review-card .rc-meta {
	font-size: 11px;
	color: #888;
	margin: 1px 0 0 0;
}
.review-card .rc-stars {
	color: #f0a600;
	font-size: 14px;
	letter-spacing: 1px;
	margin-left: auto;
}
.review-card .rc-verified {
	display: inline-block;
	background: #e8f5e9;
	color: #2a7a2a;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 10px;
	margin-top: 4px;
	letter-spacing: 0.3px;
}
.review-card .rc-text {
	font-size: 13.5px;
	color: #333;
	line-height: 1.5;
	margin: 8px 0 0 0;
}

/* === FAQ === */
.faq-section {
	background: #fff;
	padding: 28px 14px 24px;
}
.faq-section .faq-title {
	text-align: center;
	font-family: 'AvenirNextCyr', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #222;
	margin: 0 0 6px 0;
}
.faq-section .faq-sub {
	text-align: center;
	font-size: 13px;
	color: #777;
	margin: 0 0 22px 0;
}
.faq-list {
	max-width: 460px;
	margin: 0 auto;
}
.faq-item {
	border-bottom: 1px solid #ececec;
}
.faq-item summary {
	cursor: pointer;
	padding: 14px 12px 14px 36px;
	font-size: 14px;
	font-weight: 600;
	color: #222;
	position: relative;
	list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
	content: '+';
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #f0a600;
	color: #fff;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .2s;
}
.faq-item[open] summary::before {
	content: '−';
}
.faq-item .faq-answer {
	padding: 0 12px 16px 36px;
	font-size: 13.5px;
	color: #555;
	line-height: 1.55;
}

/* === Sticky button (mobile only) === */
.sticky-cta {
	display: none;
}
@media (max-width: 700px) {
	.sticky-cta {
		display: block;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 8000;
		background: rgba(255,255,255,.96);
		backdrop-filter: blur(6px);
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) 12px;
		box-shadow: 0 -2px 10px rgba(0,0,0,.12);
		transform: translateY(0);
		transition: transform .25s ease, opacity .25s ease;
	}
	.sticky-cta.hidden {
		transform: translateY(110%);
		opacity: 0;
		pointer-events: none;
	}
	.sticky-cta a {
		display: block;
		background: #dcb000;
		color: #fff;
		text-align: center;
		padding: 14px 10px;
		font-family: 'AvenirNextCyr', sans-serif;
		font-weight: 700;
		font-size: 17px;
		text-transform: uppercase;
		text-decoration: none;
		border-radius: 8px;
		box-shadow: 0 2px 6px rgba(220,176,0,.4);
		letter-spacing: 0.5px;
	}
	.sticky-cta .sticky-price {
		font-size: 12px;
		opacity: 0.9;
		margin-top: 2px;
		font-weight: 500;
	}
	body {
		padding-bottom: 78px;
	}
}

/* === Countdown timer === */
.countdown-block {
	max-width: 460px;
	margin: 10px auto 0 auto;
	background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
	color: #fff;
	border-radius: 10px;
	padding: 7px 12px 8px;
	text-align: center;
	box-shadow: 0 3px 10px rgba(211,47,47,.22);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}
.countdown-block .cd-label {
	font-family: 'AvenirNextCyr', sans-serif;
	font-size: 12px;
	font-weight: 600;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	opacity: 0.95;
	white-space: nowrap;
}
.countdown-block .cd-timer {
	display: flex;
	justify-content: center;
	gap: 5px;
}
.countdown-block .cd-cell {
	background: rgba(0,0,0,.25);
	border-radius: 5px;
	padding: 3px 7px 4px;
	min-width: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.countdown-block .cd-num {
	font-family: 'AvenirNextCyr', sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
}
.countdown-block .cd-unit {
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	opacity: 0.85;
	margin-top: 1px;
}
@media (max-width: 359px) {
	.countdown-block { flex-direction: column; gap: 5px; }
}

/* Compact the size-note + stock-counter so the whole "pitch + form"
   block fits on one phone screen */
.offer_section .size-note {
	margin: 6px auto 8px auto !important;
	padding: 7px 12px !important;
	font-size: 12px !important;
	line-height: 1.35 !important;
}
.stock-counter {
	margin: 8px auto 0 auto !important;
	padding: 6px 12px 8px !important;
	font-size: 12px !important;
}
.stock-counter b { font-size: 14px !important; }

/* === Social proof toast === */
.social-toast {
	position: fixed;
	left: 12px;
	bottom: 90px;
	z-index: 7000;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(0,0,0,.18);
	padding: 10px 14px 10px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 280px;
	font-family: 'AvenirNextCyr', sans-serif;
	transform: translateX(-120%);
	transition: transform .4s ease;
	border-left: 3px solid #4caf50;
}
.social-toast.show { transform: translateX(0); }
.social-toast .st-ico {
	background: #e8f5e9;
	color: #2a7a2a;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex: 0 0 32px;
}
.social-toast .st-text {
	font-size: 12.5px;
	color: #333;
	line-height: 1.35;
}
.social-toast .st-text b { color: #1b5e20; }
.social-toast .st-time { color: #888; font-size: 11px; }
@media (max-width: 700px) {
	.social-toast { bottom: 100px; max-width: 250px; font-size: 12px; }
}

/* === Stock counter === */
.stock-counter {
	max-width: 460px;
	margin: 12px auto 0 auto;
	background: #fff8e1;
	border: 1px solid #ffe082;
	border-radius: 10px;
	padding: 10px 14px;
	font-family: 'AvenirNextCyr', sans-serif;
	font-size: 13px;
	color: #6b4500;
	text-align: center;
}
.stock-counter b { color: #d32f2f; font-size: 15px; }
.stock-bar {
	height: 6px;
	background: #ffe082;
	border-radius: 3px;
	margin-top: 6px;
	overflow: hidden;
}
.stock-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #ff9800, #d32f2f);
	width: 14%;
	border-radius: 3px;
	transition: width 1s ease;
}

/* === How to order steps === */
.how-section {
	background: #fff;
	padding: 28px 14px 24px;
}
.how-section .how-title {
	text-align: center;
	font-family: 'AvenirNextCyr', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #222;
	margin: 0 0 22px 0;
}
.how-steps {
	max-width: 460px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.how-step {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: #fafafa;
	border-radius: 10px;
	padding: 14px;
	border: 1px solid #ececec;
}
.how-step .hs-num {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #dcb000;
	color: #fff;
	font-family: 'AvenirNextCyr', sans-serif;
	font-weight: 700;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.how-step .hs-content h4 {
	font-family: 'AvenirNextCyr', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #222;
	margin: 4px 0 4px 0;
}
.how-step .hs-content p {
	font-size: 13px;
	color: #555;
	line-height: 1.45;
	margin: 0;
}
