/* =====================================================================
   БЫСТРЫЙ ЗАКАЗ / МОДАЛЬНОЕ ОКНО (cart_fast_order_modal.tpl)
   Вставить в основной CSS сайта. Цвета/радиус/отступы вынесены в
   переменные вверху -- поменяйте значения под свой дизайн, ничего
   больше трогать не нужно. display:none у окна и фона управляется
   существующим JS (fastOrderOpen/fastOrderClose) -- сам факт
   показа/скрытия эта таблица стилей не трогает.
   ===================================================================== */

.fo-overlay,
.fo-modal {
	--fo-accent: #00349a;
	--fo-accent-hover: #e5ebf8;
	--fo-accent-contrast: #ffffff;
	--fo-border: #dfe2e5;
	--fo-text: #23282d;
	--fo-text-muted: #767c82;
	--fo-radius: 14px;
	--fo-danger: #c0392b;
}

.fo-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(20, 22, 24, .55);
	backdrop-filter: blur(2px);
	z-index: 9998;
}

.fo-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 92%;
	max-width: 440px;
	max-height: 88vh;
	overflow-y: auto;
	background: #fff;
	border-radius: var(--fo-radius);
	padding: 28px 26px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
	z-index: 9999;
	font-size: 14px;
	color: var(--fo-text);
	box-sizing: border-box;
}

.fo-modal__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 18px;
}

.fo-modal__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--fo-text);
}

.fo-modal__close {
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	color: var(--fo-text-muted);
	padding: 2px 6px;
	margin: -6px -6px 0 0;
	border-radius: 6px;
	transition: color .15s ease, background-color .15s ease;
}

.fo-modal__close:hover {
	color: var(--fo-text);
	background: rgba(0, 0, 0, .06);
}

.fo-field {
	margin-bottom: 16px;
}

.fo-field__label {
	display: block;
	font-weight: 400!important;
	font-size: 13px!important;
	margin-bottom: 1px;
	color: var(--fo-text);
}

.fo-required {
	color: var(--fo-danger);
}

.fo-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--fo-border);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	color: var(--fo-text);
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.fo-input:focus {
	outline: none;
	border-color: var(--fo-accent);
	box-shadow: 0 0 0 3px rgba(31, 111, 80, .12);
}

.fo-textarea {
	height: 76px;
	resize: vertical;
}

.fo-select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--fo-text-muted) 50%), linear-gradient(135deg, var(--fo-text-muted) 50%, transparent 50%);
	background-position: calc(100% - 20px) center, calc(100% - 15px) center;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 32px;
}

/* Радио доставки/оплаты -- каждый вариант отдельной строкой, компактно. */
.fo-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	padding: 6px 0;
	cursor: pointer;
}

.fo-radio input[type="radio"] {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	accent-color: var(--fo-accent);
	cursor: pointer;
}

.fo-checkbox {
	width: 17px;
	height: 17px;
	accent-color: var(--fo-accent);
	cursor: pointer;
}

.fo-policy {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 300;
	font-size: 13px;
	color: var(--fo-text-muted);
	cursor: pointer;
}

.fo-policy input {
	margin-top: 2px;
	accent-color: var(--fo-accent);
}

.fo-policy a {
	color: var(--fo-accent);
	text-decoration: underline;
	font-size: 13px;
	font-weight: 400;
}

.fo-error {
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(192, 57, 43, .08);
	color: var(--fo-danger);
	font-size: 13px;
	font-weight: 500;
}

.fo-submit {
	display: block;
padding: 10px 25px;
font-family: 'Montserrat';
font-weight: 500!important;
font-size: 14px;
color: #fff;
text-transform: uppercase;
text-decoration: none;
border: 0px;
border-radius: 4px;
cursor: pointer;
	background: var(--fo-accent);
	color: var(--fo-accent-contrast);
	transition: background-color .15s ease, transform .1s ease;
}

.fo-submit:hover {
	background: var(--fo-accent-hover);
}

.fo-submit:active {
	transform: scale(.98);
}

.fo-success {
	text-align: center;
	padding: 24px 4px 6px;
}

.fo-success p {
	margin: 0 0 18px;
	font-size: 15px;
	color: var(--fo-text);
}

/* Мобильные экраны -- чуть меньше внутренние отступы, окно чуть шире
   относительно экрана. */
@media (max-width: 480px) {
	.fo-modal {
		width: 94%;
		padding: 22px 18px;
	}
}
