/* Super Magazin – consimtamant cookie-uri */
#smc-root, .smc-embed {
	--smc-orange: #fb5800;
	--smc-orange-2: #ff8a00;
	--smc-navy: #0f1726;
	--smc-cream: #fff4ec;
	--smc-line: #f3e3d8;
	--smc-text: #2b2f36;
	--smc-muted: #5b6170;
	font-family: inherit;
	color: var(--smc-text);
}
#smc-root *, #smc-root *::before, #smc-root *::after, .smc-embed, .smc-embed * { box-sizing: border-box; }
#smc-root [hidden] { display: none !important; }

/* Butoane: "Accept" si "Refuz" au aceeasi marime si vizibilitate */
.smc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	margin: 0;
	border: 1.5px solid transparent;
	border-radius: 10px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: none;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.smc-btn--accept { background: var(--smc-orange); color: #fff; }
.smc-btn--accept:hover, .smc-btn--accept:focus-visible { background: #e04e00; color: #fff; }
.smc-btn--reject { background: var(--smc-navy); color: #fff; }
.smc-btn--reject:hover, .smc-btn--reject:focus-visible { background: #24304a; color: #fff; }
.smc-btn--ghost { background: #fff; color: var(--smc-navy); border-color: #d9dce2; }
.smc-btn--ghost:hover, .smc-btn--ghost:focus-visible { border-color: var(--smc-orange); color: var(--smc-orange); }
#smc-root button:focus-visible, #smc-root a:focus-visible, #smc-root summary:focus-visible, #smc-root input:focus-visible + .smc-switch__ui {
	outline: 3px solid rgba(251, 88, 0, .35);
	outline-offset: 2px;
}

/* ---------- Banner ---------- */
.smc-banner {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 2147483000;
	width: min(460px, calc(100vw - 40px));
	padding: 22px 22px 20px;
	background: #fff;
	border: 1px solid var(--smc-line);
	border-radius: 18px;
	box-shadow: 0 18px 48px rgba(15, 23, 38, .18);
	animation: smc-in .35s ease;
}
@keyframes smc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.smc-banner__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	color: var(--smc-navy);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
}
.smc-banner__title::before {
	content: "";
	flex: 0 0 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--smc-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FB5800' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9 4 4 0 0 1-4-4 4 4 0 0 1-5-5z'/%3E%3Ccircle cx='8.5' cy='10.5' r='.8' fill='%23FB5800'/%3E%3Ccircle cx='15.5' cy='15' r='.8' fill='%23FB5800'/%3E%3Ccircle cx='10' cy='15.5' r='.8' fill='%23FB5800'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
}
.smc-banner__text {
	margin: 0 0 16px;
	color: var(--smc-muted);
	font-size: 14px;
	line-height: 1.55;
}
.smc-banner__text a, .smc-modal__intro a { color: var(--smc-orange); font-weight: 600; text-decoration: underline; }
.smc-banner__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.smc-banner__actions .smc-btn--ghost { grid-column: 1 / -1; }

/* ---------- Fereastra de preferinte ---------- */
.smc-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.smc-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 38, .55); }
.smc-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(620px, 100%);
	max-height: min(88vh, 760px);
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(15, 23, 38, .28);
	outline: none;
	overflow: hidden;
	animation: smc-in .25s ease;
}
.smc-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	background: var(--smc-cream);
	border-bottom: 1px solid #ffe0cc;
}
.smc-modal__title { margin: 0; color: var(--smc-navy); font-size: 19px; font-weight: 800; }
.smc-modal__close {
	width: 40px; height: 40px; padding: 0; margin: 0;
	border: 1px solid #ffd9c2; border-radius: 50%;
	background: #fff; color: var(--smc-navy);
	font-size: 24px; line-height: 1; cursor: pointer;
}
.smc-modal__body { padding: 18px 20px 8px; overflow-y: auto; }
.smc-modal__intro { margin: 0 0 14px; color: var(--smc-muted); font-size: 14px; line-height: 1.55; }
.smc-modal__foot {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	padding: 14px 20px 18px;
	border-top: 1px solid var(--smc-line);
	background: #fff;
}

.smc-cat { padding: 14px 0; border-bottom: 1px solid var(--smc-line); }
.smc-cat:last-child { border-bottom: 0; }
.smc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.smc-cat__label { margin: 0; color: var(--smc-navy); font-size: 16px; font-weight: 700; cursor: pointer; }
.smc-cat__desc { margin: 6px 0 0; color: var(--smc-muted); font-size: 14px; line-height: 1.5; }
.smc-cat__desc strong { color: var(--smc-navy); }
.smc-cat__list { margin-top: 8px; font-size: 13px; color: var(--smc-muted); }
.smc-cat__list summary { cursor: pointer; color: var(--smc-orange); font-weight: 600; }
.smc-cat__list ul { margin: 8px 0 0; padding-left: 18px; }
.smc-cat__list li { margin: 4px 0; line-height: 1.45; }
.smc-cat__list code { padding: 1px 5px; border-radius: 4px; background: #f4f5f7; color: var(--smc-navy); font-size: 12px; }

/* comutator */
.smc-switch { position: relative; flex: 0 0 auto; width: 48px; height: 28px; }
.smc-switch input {
	position: absolute; inset: 0; z-index: 1;
	width: 100%; height: 100%; margin: 0;
	opacity: 0; cursor: pointer;
}
.smc-switch input:disabled { cursor: not-allowed; }
.smc-switch__ui {
	position: absolute; inset: 0;
	border-radius: 999px;
	background: #d5d8de;
	transition: background .2s ease;
}
.smc-switch__ui::after {
	content: ""; position: absolute; top: 3px; left: 3px;
	width: 22px; height: 22px; border-radius: 50%;
	background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	transition: transform .2s ease;
}
.smc-switch input:checked + .smc-switch__ui { background: var(--smc-orange); }
.smc-switch input:checked + .smc-switch__ui::after { transform: translateX(20px); }
.smc-switch input:disabled + .smc-switch__ui { background: #ffb98f; }

/* ---------- Buton flotant ---------- */
.smc-float {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482999;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 14px 0 10px;
	margin: 0;
	border: 1px solid #ffd9c2;
	border-radius: 999px;
	background: #fff;
	color: var(--smc-navy);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 6px 18px rgba(15, 23, 38, .12);
	cursor: pointer;
}
.smc-float svg { color: var(--smc-orange); }
.smc-float:hover { border-color: var(--smc-orange); }

/* ---------- Continut extern blocat ---------- */
.smc-embed {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 220px;
	padding: 24px;
	border: 1px dashed #ffc9a8;
	border-radius: 14px;
	background: var(--smc-cream);
	text-align: center;
	color: #0f1726;
	font-size: 14px;
	font-family: inherit;
}
.smc-embed p { margin: 0; max-width: 420px; }

/* ---------- Tabel cookie-uri (shortcode) ---------- */
.smc-table-wrap { overflow-x: auto; }
.smc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.smc-table th, .smc-table td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.smc-table th { background: #fff4ec; color: #0f1726; }

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

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
	.smc-banner {
		left: 10px;
		right: 10px;
		bottom: 72px; /* deasupra barei de navigare de jos a temei */
		width: auto;
		padding: 18px 16px 16px;
		max-height: calc(100vh - 100px);
		overflow-y: auto;
	}
	.smc-banner__title { font-size: 17px; }
	.smc-banner__text { font-size: 13.5px; }
	.smc-float { bottom: 76px; left: 10px; height: 38px; padding: 0 8px; }
	.smc-float span { display: none; }
	.smc-modal { padding: 0; align-items: flex-end; }
	.smc-modal__dialog { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
	.smc-modal__foot { grid-template-columns: 1fr 1fr; }
	.smc-modal__foot .smc-btn--ghost { grid-column: 1 / -1; order: 3; }
}
