/*
 * Вікно заявки — редизайн 03.09 (куратор, на прохання Андрія).
 *
 * Класи `.blocker`, `.modal`, `.ex_modal` лишились ті самі, що на старому
 * сайті; частина правил свідомо перебиває legacy.css (там .bigtext капсом
 * на всю ширину). Кольори — фірмові з сайту: зелений #83c608, жовтий
 * градієнт #ffc824→#dba400, темний #322e42.
 */

.blocker {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	padding: 24px;
	overflow: auto;
	text-align: center;
	background: rgba(24, 28, 18, 0.6);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	box-sizing: border-box;
}

.blocker[hidden] {
	display: none !important;
}

.blocker::before {
	display: inline-block;
	height: 100%;
	margin-right: -0.05em;
	vertical-align: middle;
	content: "";
}

.blocker .modal {
	position: relative;
	display: inline-block;
	width: 100% !important;
	max-width: 400px !important;
	padding: 20px 22px 16px;
	text-align: left;
	vertical-align: middle;
	background: #fff;
	border-top: 4px solid #ffc824;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
	animation: bestrate-pop 0.18s ease-out;
}

@keyframes bestrate-pop {
	from { transform: translateY(10px); opacity: 0; }
	to   { transform: none;             opacity: 1; }
}

body.bestrate-modal-open {
	overflow: hidden;
}

.bestrate-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 20px;
	line-height: 32px;
	text-align: center;
	color: #7a7f74;
	cursor: pointer;
	background: #f2f4ee;
	border: 0;
	border-radius: 50%;
	transition: background 0.15s, color 0.15s;
}

.bestrate-modal__close:hover {
	color: #322e42;
	background: #e4e8dc;
}

/* ---------- Шапка вікна ---------- */

/* Перебиваємо legacy-«БІГТЕКСТ»: маленький сірий підзаголовок. */
.currorder_wrap .currorder_pretext .bigtext {
	margin: 0 0 2px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: #8a8f84;
	text-transform: none;
	text-align: center;
}

.bestrate-order .title-request {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	color: #322e42;
	text-align: center;
}

/* ---------- Купити / Продати — сегменти ---------- */

.bestrate-order__deal {
	display: flex;
	gap: 8px;
}

.bestrate-order .text-label {
	display: block;
	flex: 1 1 0;
	margin: 0;
	padding: 9px 0;
	font-size: 15px;
	font-weight: 600;
	color: #4a4f44;
	text-align: center;
	cursor: pointer;
	background: #f2f4ee;
	border: 1px solid #dfe4d6;
	border-radius: 10px;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	box-sizing: border-box;
	-webkit-user-select: none;
	user-select: none;
}

.bestrate-order .text-label input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	opacity: 0;
}

.bestrate-order .text-label:has(input:checked) {
	color: #fff;
	background: #83c608;
	border-color: #83c608;
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

/* ---------- Поля ---------- */

.bestrate-order .text-label-get {
	display: block;
	margin: 12px 0 0;
}

.bestrate-order .request-put-get-1 {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #6a6f64;
	text-transform: uppercase;
}

.bestrate-order .input__field {
	display: block;
	width: 100%;
	height: 44px;
	margin: 8px 0 0;
	padding: 10px 14px;
	font-size: 16px;
	color: #322e42;
	background: #fbfcf9;
	border: 1px solid #dfe4d6;
	border-radius: 10px;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}

.bestrate-order .text-label-get .input__field {
	margin-top: 0;
}

.bestrate-order .input__field::placeholder {
	color: #a9aea2;
}

.bestrate-order .input__field:focus {
	outline: none;
	background: #fff;
	border-color: #83c608;
	box-shadow: 0 0 0 3px rgba(131, 198, 8, 0.18);
}

/* ---------- Рядок курсу ---------- */

.bestrate-order .wpapper-block-reques-2 {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 8px 0 0;
	padding: 8px 14px;
	background: #f7f9f2;
	border: 1px dashed #d3dbc2;
	border-radius: 10px;
}

.bestrate-order .request-put-get-2 {
	font-size: 14px;
	color: #6a6f64;
}

.bestrate-order__rate {
	font-size: 18px;
	font-weight: 700;
	color: #322e42;
}

.bestrate-order__total {
	margin-left: auto;
	font-size: 15px;
	font-weight: 700;
	color: #5f9105;
}

/* ---------- Кнопка ---------- */

.bestrate-order__submit {
	width: 100%;
	height: 48px;
	margin-top: 12px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(180deg, #8ed30e 0%, #83c608 55%, #74b007 100%);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 6px 14px rgba(131, 198, 8, 0.35);
	transition: transform 0.1s, box-shadow 0.15s, filter 0.15s;
}

.bestrate-order__submit:hover {
	filter: brightness(1.04);
	box-shadow: 0 8px 18px rgba(131, 198, 8, 0.45);
}

.bestrate-order__submit:active {
	transform: translateY(1px);
	box-shadow: 0 3px 8px rgba(131, 198, 8, 0.35);
}

.bestrate-order__submit[disabled] {
	filter: none;
	opacity: 0.6;
	cursor: default;
	box-shadow: none;
}

.bestrate-order__note {
	margin: 8px 0 0;
	font-size: 13px;
	color: #8a8f84;
	text-align: center;
}

.bestrate-order__note::before {
	content: "⏱ ";
}

.bestrate-order__result {
	margin: 10px 0 0;
	font-size: 15px;
	text-align: center;
}

.bestrate-order__result.is-ok {
	padding: 10px 12px;
	font-weight: 700;
	color: #2c7a0b;
	background: #eef7e3;
	border-radius: 10px;
}

.bestrate-order__result.is-error {
	color: #d63638;
}

/* ---------- Низ вікна: телефони + Telegram ---------- */

.currorder_wrap > .currorder_pretext:last-child {
	margin-top: 12px;
	padding-top: 10px;
	text-align: center;
	border-top: 1px solid #eef0e8;
}

.currorder_wrap > .currorder_pretext:last-child p {
	margin: 0 0 4px;
	font-size: 13px;
	color: #8a8f84;
}

.currorder_wrap .currorder_pretext .tel a {
	display: inline-block;
	margin: 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: #322e42;
	text-decoration: none;
	white-space: nowrap;
}

.currorder_wrap .currorder_pretext .tel a:hover {
	color: #83c608;
}

/* Telegram-плашка: єдина синя картка замість легасі-рамки. */
.currorder_wrap .row.telegram {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	max-width: 260px;
	margin: 10px auto 0;
	padding: 8px 14px;
	text-align: left;
	background: #229ed9 !important;
	border: 0 !important;
	border-radius: 12px;
	transition: background 0.15s;
}

.currorder_wrap .row.telegram:hover {
	background: #1d8dc2 !important;
}

.currorder_wrap .row.telegram [class^="col-"] {
	width: auto;
	padding: 0;
	float: none;
}

.currorder_wrap .row.telegram img {
	display: block;
	width: 38px;
	height: 38px;
	border: 0;
}

.currorder_wrap .row.telegram a {
	color: #fff !important;
	text-decoration: none;
}

.currorder_wrap .row.telegram .telegram_channel {
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: #fff !important;
}

/* Пастка для ботів: людина її не бачить і не сфокусує. */
.bestrate-order__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Мобільний: шторка знизу ---------- */

@media (max-width: 767px) {
	/* По центру екрана (прохання Андрія 04.09), з невеликими полями */
	.blocker {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 14px;
	}

	.blocker::before {
		display: none;
	}

	.blocker .modal {
		max-width: 380px !important;
		max-height: calc(100vh - 28px);
		overflow: auto;
		padding: 18px 16px 14px;
		border-radius: 14px;
	}
}
