/* Согласия 152-ФЗ */
.rc152-banner, .rc152-modal, .rc152-float {
	--rc152-bg: #ffffff;
	--rc152-text: #1f2328;
	--rc152-muted: #59636e;
	--rc152-border: #d8dee4;
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--rc152-text);
	box-sizing: border-box;
}
.rc152-banner *, .rc152-modal *, .rc152-float * { box-sizing: border-box; }
.rc152-banner[hidden], .rc152-modal[hidden], .rc152-float[hidden], .rc152-modal__withdraw[hidden] { display: none !important; }

.rc152-banner {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2147483000;
	max-width: 1100px; margin: 0 auto;
	background: var(--rc152-bg); border: 1px solid var(--rc152-border); border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.rc152-banner__inner { display: flex; gap: 16px 24px; align-items: center; padding: 16px 20px; flex-wrap: wrap; }
.rc152-banner__text { margin: 0; flex: 1 1 420px; color: var(--rc152-text); font-size: 14px; }
.rc152-banner__text a, .rc152-modal a { color: var(--rc152-primary); text-decoration: underline; }
.rc152-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.rc152-btn {
	appearance: none; cursor: pointer; border-radius: 8px; padding: 10px 16px; min-height: 40px;
	font: 600 14px/1.2 inherit; font-family: inherit; border: 1px solid var(--rc152-primary);
	transition: filter .15s, background .15s;
}
.rc152-btn--primary { background: var(--rc152-primary); color: #fff; }
.rc152-btn--primary:hover { filter: brightness(1.08); }
.rc152-btn--ghost { background: transparent; color: var(--rc152-primary); }
.rc152-btn--ghost:hover { background: rgba(0,0,0,.04); }
.rc152-btn:focus-visible, .rc152-link:focus-visible, .rc152-float:focus-visible, .rc152-switch input:focus-visible + .rc152-switch__ui {
	outline: 3px solid var(--rc152-primary); outline-offset: 2px;
}

.rc152-modal { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rc152-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.rc152-modal__box {
	position: relative; background: var(--rc152-bg); border-radius: 14px; width: 100%; max-width: 560px;
	max-height: calc(100vh - 32px); overflow: auto; padding: 24px; outline: none;
	box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.rc152-modal__x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--rc152-muted); }
.rc152-modal__title { margin: 0 0 8px; font-size: 20px; line-height: 1.3; color: var(--rc152-text); }
.rc152-modal__lead { margin: 0 0 16px; color: var(--rc152-muted); }
.rc152-cat { border: 1px solid var(--rc152-border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.rc152-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; margin: 0; }
.rc152-cat__name { font-weight: 600; }
.rc152-cat__always { font-size: 12px; color: var(--rc152-muted); white-space: nowrap; }
.rc152-cat__desc { margin: 6px 0 0; font-size: 13px; color: var(--rc152-muted); }
.rc152-modal__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.rc152-modal__withdraw { margin: 12px 0 0; font-size: 13px; }
.rc152-link { background: none; border: 0; padding: 0; color: var(--rc152-muted); text-decoration: underline; cursor: pointer; font: inherit; }

.rc152-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.rc152-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rc152-switch__ui { position: absolute; inset: 0; background: #c2c8cf; border-radius: 24px; transition: background .15s; pointer-events: none; }
.rc152-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .15s; }
.rc152-switch input:checked + .rc152-switch__ui { background: var(--rc152-primary); }
.rc152-switch input:checked + .rc152-switch__ui::after { transform: translateX(20px); }

.rc152-float {
	position: fixed; left: 16px; bottom: 16px; z-index: 2147482999; width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid var(--rc152-border); background: var(--rc152-bg); color: var(--rc152-primary);
	display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.15);
	opacity: .85;
}
.rc152-float:hover { opacity: 1; }

html.rc152-lock, html.rc152-lock body { overflow: hidden; }

/* Чекбоксы согласия в формах */
.rc152-consent-row { margin: 10px 0; }
.rc152-consent-row label { display: inline; font-weight: normal; }
.rc152-consent-row input[type="checkbox"] { margin-right: 6px; }

@media (max-width: 600px) {
	.rc152-banner { left: 8px; right: 8px; bottom: 8px; }
	.rc152-banner__inner { padding: 14px; }
	.rc152-banner__text { flex-basis: 100%; font-size: 13px; }
	.rc152-banner__actions, .rc152-modal__actions { width: 100%; }
	.rc152-banner__actions .rc152-btn, .rc152-modal__actions .rc152-btn { flex: 1 1 100%; }
	.rc152-modal__box { padding: 20px 16px; }
}
