/* =========================================================
   MS Cookie Consent — в стила на mariyastateva-2026
   Цветовете падат обратно към точните hex-ове, ако темата
   не дефинира променливите.
   ========================================================= */
.mscc-banner{
	position:fixed;
	right:24px;
	bottom:24px;
	z-index:99999;
	width:min(460px, calc(100vw - 48px));
	font-family:var(--body, 'Manrope', sans-serif);
	opacity:0;
	transform:translateY(16px);
	transition:opacity .32s ease, transform .32s ease;
}
.mscc-banner.is-visible{
	opacity:1;
	transform:translateY(0);
}
.mscc-card{
	position:relative;
	background:var(--white, #FFFFFF);
	border-radius:var(--r-lg, 28px);
	padding:30px 30px 24px;
	box-shadow:0 24px 60px -18px rgba(1,16,47,.38), 0 4px 14px -8px rgba(1,16,47,.2);
	/* Никога по-висока от екрана — при отворени настройки съдържанието скролва вътре. */
	max-height:calc(100vh - 48px);
	overflow-y:auto;
	-webkit-overflow-scrolling:touch;
}
.mscc-title{
	font-family:var(--body, 'Manrope', sans-serif);
	font-weight:700;
	font-size:1.32rem;
	line-height:1.2;
	color:var(--navy, #01102F);
	margin:0 40px 14px 0;
	text-transform:none;
	letter-spacing:0;
}
.mscc-close{
	position:absolute;
	top:22px;
	right:22px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:34px;
	height:34px;
	border:0;
	border-radius:50%;
	background:transparent;
	color:var(--navy, #01102F);
	cursor:pointer;
	transition:background .2s ease;
}
.mscc-close:hover{ background:var(--paper, #F6F8FB); }
.mscc-desc{
	color:var(--ink-soft, #44566B);
	font-size:.94rem;
	line-height:1.62;
	margin:0 0 22px;
}
/* Бутонът „Прочети повече" — само на мобилно (виж media заявката). */
.mscc-more{
	display:none;
	margin:-14px 0 20px;
	padding:0;
	background:none;
	border:0;
	color:var(--gold-dark, #A6802F);
	font-family:inherit;
	font-size:.9rem;
	font-weight:600;
	text-decoration:underline;
	text-underline-offset:3px;
	cursor:pointer;
}

/* ---------- бутони ---------- */
.mscc-actions{
	display:flex;
	flex-wrap:wrap;
	gap:12px;
}
.mscc-btn{
	flex:1 1 auto;
	min-width:120px;
	border:0;
	border-radius:999px;
	padding:14px 24px;
	font-family:inherit;
	font-size:.95rem;
	font-weight:600;
	cursor:pointer;
	transition:background .2s ease, color .2s ease, transform .1s ease;
}
.mscc-btn:active{ transform:translateY(1px); }
.mscc-primary{
	background:var(--gold, #D0A353);
	color:#fff;
}
.mscc-primary:hover{ background:var(--gold-dark, #A6802F); }
.mscc-secondary{
	background:var(--paper, #F6F8FB);
	color:var(--navy, #01102F);
}
.mscc-secondary:hover{ background:#E9EDF2; }

.mscc-save-row{ margin-top:12px; }
.mscc-save-row .mscc-btn{ width:100%; }

/* ---------- линк към политиката ---------- */
.mscc-policy{
	display:block;
	text-align:center;
	margin-top:18px;
	color:var(--navy, #01102F);
	font-size:.9rem;
	font-weight:600;
	text-decoration:underline;
	text-underline-offset:3px;
}
.mscc-policy:hover{ color:var(--gold-dark, #A6802F); }

/* ---------- панел с настройки ---------- */
.mscc-settings{
	margin:4px 0 20px;
	border-top:1px solid #EBEEF3;
}
.mscc-cat{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:16px;
	padding:16px 0;
	border-bottom:1px solid #EBEEF3;
}
label.mscc-cat{ cursor:pointer; }
.mscc-cat-info strong{
	display:block;
	color:var(--navy, #01102F);
	font-size:.98rem;
	font-weight:700;
}
.mscc-cat-info span{
	display:block;
	color:var(--ink-mute, #66788D);
	font-size:.84rem;
	line-height:1.5;
	margin-top:2px;
}
.mscc-always{
	flex:none;
	color:var(--gold-dark, #A6802F);
	font-size:.82rem;
	font-weight:600;
	white-space:nowrap;
}

/* ---------- switch ---------- */
.mscc-switch{ flex:none; position:relative; display:inline-block; width:46px; height:26px; }
.mscc-switch input{ position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.mscc-slider{
	position:absolute;
	inset:0;
	background:#D3D9E1;
	border-radius:999px;
	transition:background .2s ease;
}
.mscc-slider::before{
	content:"";
	position:absolute;
	top:3px;
	left:3px;
	width:20px;
	height:20px;
	background:#fff;
	border-radius:50%;
	box-shadow:0 1px 3px rgba(0,0,0,.25);
	transition:transform .2s ease;
}
.mscc-switch input:checked + .mscc-slider{ background:var(--gold, #D0A353); }
.mscc-switch input:checked + .mscc-slider::before{ transform:translateX(20px); }
.mscc-switch input:focus-visible + .mscc-slider{ outline:2px solid var(--navy, #01102F); outline-offset:2px; }

/* ---------- мобилно ---------- */
@media (max-width:560px){
	.mscc-banner{
		right:12px;
		left:12px;
		bottom:12px;
		width:auto;
	}
	.mscc-card{
		padding:22px 20px 18px;
		border-radius:22px;
		/* Оставяме ~76px горе; при отворени настройки съдържанието скролва вътре. */
		max-height:calc(100vh - 76px);
		max-height:calc(100dvh - 76px);
	}
	.mscc-title{ font-size:1.18rem; margin-bottom:12px; }
	.mscc-desc{ margin-bottom:16px; font-size:.9rem; }
	/* Сгънат текст по подразбиране — до 3 реда, с бутон за разгъване. */
	.mscc-desc:not(.is-expanded){
		display:-webkit-box;
		-webkit-line-clamp:3;
		-webkit-box-orient:vertical;
		overflow:hidden;
	}
	.mscc-more{ display:inline-block; }
	.mscc-actions{ flex-direction:column; }
	.mscc-btn{ width:100%; }
	.mscc-cat{ padding:14px 0; }
}

@media (prefers-reduced-motion:reduce){
	.mscc-banner{ transition:none; }
}
