/**
 * Кастомный слой под визуал сайта (тёмно-синий фон + белые плашки).
 * Вкл: Настройки → Фронт → «Кастомные стили».
 * Цель: как на боевой странице цен, но аккуратнее.
 */

:root {
	--abon-blue: #1e3a6e;
	--abon-blue-soft: #2f5696;
	--abon-muted: #7a8699;
	--abon-line: #e8ecf1;
	--abon-card: #ffffff;
}

/* Текст политики на тёмном фоне секции */
.abon-crm-policy {
	font-size: 14px;
	line-height: 1.5;
	max-width: 920px;
	margin: 0 auto 28px;
	text-align: center;
}

.abon-crm-catalog__grid {
	gap: 22px !important;
}

@media (min-width: 992px) {
	.abon-crm-catalog__grid {
		gap: 24px !important;
	}
}

/* Плашка */
.abon-crm-product {
	background: var(--abon-card);
	color: var(--abon-blue);
	border-radius: 14px;
	padding: 22px 18px 14px;
	box-shadow: 0 8px 28px rgba(8, 20, 48, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.abon-crm-product:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(8, 20, 48, 0.24);
}

.abon-crm-product__head {
	min-height: 0;
	margin-bottom: 6px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--abon-line);
	text-align: center;
}
.abon-crm-product__title {
	margin: 0;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--abon-blue);
}
.abon-crm-product__desc {
	margin: 8px 0 0;
	text-align: center;
	font-size: 12px;
	line-height: 1.4;
	color: var(--abon-muted);
	font-weight: 500;
}

/* Строки тарифов */
.abon-crm-product .abonement-table {
	width: 100%;
	border-collapse: collapse;
}
.abon-crm-product .abonement-table td {
	padding: 14px 0;
	vertical-align: middle;
	border-bottom: 1px solid var(--abon-line);
	border-top: 0;
	border-left: 0;
	border-right: 0;
}
.abon-crm-product .abonement-table tr:last-child td {
	border-bottom: 0;
	padding-bottom: 8px;
}
.abon-crm-product .abonement-table td:first-child {
	padding-right: 12px;
	text-align: left;
}
.abon-crm-product .abonement-table td:last-child {
	text-align: right;
	padding-left: 4px;
}

.abon-crm-variant__name {
	color: var(--abon-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}
.abon-crm-variant__price {
	margin-top: 5px;
	color: var(--abon-blue);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* Кнопка «Купить» — outline как на сайте, чуть чище */
.abon-crm-product .abon-crm-buy,
.abon-crm-product .buy-trigger.abon-crm-buy,
.abon-crm-product button.abon-crm-buy {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 96px;
	height: 38px;
	padding: 0 16px !important;
	margin: 0 !important;
	box-sizing: border-box;
	background: #fff !important;
	color: var(--abon-blue) !important;
	border: 1.5px solid var(--abon-blue) !important;
	border-radius: 4px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
	cursor: pointer;
}
.abon-crm-product .abon-crm-buy:hover,
.abon-crm-product .buy-trigger.abon-crm-buy:hover {
	background: var(--abon-blue) !important;
	color: #fff !important;
	border-color: var(--abon-blue) !important;
}

/* Попап */
.abon-crm-popup {
	box-shadow: 0 16px 48px rgba(8, 20, 48, 0.35);
	border-radius: 10px;
}
.abon-crm-buy-info {
	border-bottom: 1px solid var(--abon-line);
}
.abon-crm-buy-info__title {
	color: var(--abon-blue);
}
.abon-crm-buy-info__price {
	color: #333;
}
.abon-crm-field__label {
	color: var(--abon-muted);
}
.abon-crm-popup .abon-crm-input,
.abon-crm-popup .buy-input {
	border: 1px solid #d0d7e2;
	border-radius: 6px;
	background: #fff;
	color: #111;
	appearance: none;
	-webkit-appearance: none;
}
.abon-crm-popup select.abon-crm-input,
.abon-crm-popup select.buy-input.vremya {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
}
.abon-crm-popup .abon-crm-input:focus,
.abon-crm-popup .buy-input:focus {
	outline: none;
	border-color: var(--abon-blue-soft);
	box-shadow: 0 0 0 3px rgba(47, 86, 150, 0.15);
}
.abon-crm-actions button,
.abon-crm-popup .bt_bb_link {
	border: 0;
	border-radius: 6px;
	background-color: var(--abon-blue-soft);
	color: #fff;
	text-decoration: none;
}
.abon-crm-actions .abon-crm-cancel {
	background-color: #6b7c93;
}
.abon-crm-error {
	color: #b00020;
}

/* Спасибо */
.abon-crm-thanks {
	font-family: "Montserrat", sans-serif;
}
.abon-crm-thanks__badge {
	display: inline-block;
	background: #fff3cd;
	color: #856404;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 4px;
	margin: 0 0 12px;
}
.abon-crm-thanks__title {
	font-size: 28px;
	margin: 0 0 10px;
	color: var(--abon-blue);
}
.abon-crm-thanks__lead {
	font-size: 16px;
	line-height: 1.5;
	margin: 0 0 20px;
	color: #333;
}
.abon-crm-thanks__card {
	border: 1px solid var(--abon-line);
	border-radius: 10px;
	padding: 8px 16px;
	margin-bottom: 16px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(8, 20, 48, 0.08);
}
.abon-crm-thanks__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
}
.abon-crm-thanks__row:last-child {
	border-bottom: 0;
}
.abon-crm-thanks__row span {
	color: var(--abon-muted);
}
.abon-crm-thanks__row strong {
	text-align: right;
	color: var(--abon-blue);
}
.abon-crm-thanks__note {
	background: #eef4fb;
	border-radius: 8px;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.45;
	margin-bottom: 20px;
}
.abon-crm-thanks__actions {
	margin: 24px 0 0;
}
.abon-crm-thanks__btn {
	display: inline-block;
	padding: 10px 20px;
	background: var(--abon-blue-soft);
	color: #fff !important;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
}
.abon-crm-thanks__btn:hover {
	background: var(--abon-blue);
}

@media (max-width: 767px) {
	.abon-crm-product {
		padding: 18px 14px 12px;
		border-radius: 12px;
	}
	.abon-crm-variant__price {
		font-size: 18px;
	}
	.abon-crm-product .abon-crm-buy,
	.abon-crm-product .buy-trigger.abon-crm-buy {
		min-width: 84px;
		height: 36px;
		padding: 0 12px !important;
	}
}
