/**
 * Advanced Cookie Consent — stiluri banner (front-end).
 * Culorile vin din CSS custom properties setate de banner-engine.js.
 */

.acc-banner,
.acc-banner * {
	box-sizing: border-box;
}

/* Overlay pentru poziția „center" (modal) */
.acc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 999998;
}
.acc-overlay[hidden] { display: none; }
.acc-deletion-form input{
	border: 1px solid #2a2c37 !important;
}
/* Containerul bannerului (card) */
.acc-banner {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	z-index: 999999;
	width: min(680px, calc(100% - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: var(--acc-bg, #fff);
	color: var(--acc-text, #1e1e1e);
	border-radius: 16px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.28);
	font-size: 15px;
	line-height: 1.55;
}
.acc-banner[hidden] { display: none; }

/* Poziții */
.acc-pos-bottom { bottom: 16px; }
.acc-pos-top    { top: 16px; }
.acc-pos-center { top: 50%; transform: translate(-50%, -50%); }

/* Header: logo + close */
.acc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.acc-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999997;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--acc-btn-bg, #2271b1);
	color: var(--acc-btn-text, #fff);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.acc-reopen[hidden] { display: none; }
.acc-reopen-icon {
	display: block;
	width: 26px;
	height: 26px;
	background-color: var(--acc-btn-text, #fff);
	-webkit-mask: url('../cookies-svgrepo-com.svg') center / contain no-repeat;
	mask: url('../cookies-svgrepo-com.svg') center / contain no-repeat;
}
.acc-logo-img { max-height: 40px; width: auto; display: block; }
.acc-logo-text { font-size: 18px; font-weight: 700; }
.acc-close {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
	color: var(--acc-text, #1e1e1e);
	opacity: 0.6;
	padding: 4px 8px;
	border-radius: 5px;
}
.acc-close:hover { opacity: 1; }
.acc-close:focus-visible {
	outline: 2px solid var(--acc-btn-bg, #2271b1);
	border-radius: 4px;
}

/* Corp */
.acc-body { padding: 22px 24px 24px; }

.acc-title {
	margin: 0 0 10px;
	font-size: 1.45em;
	font-weight: 800;
}
.acc-message {
	margin: 0 0 18px;
	color: var(--acc-text, #1e1e1e);
}
.acc-message a { color: var(--acc-btn-bg, #2271b1); }

/* Layer 1 — acțiuni */
.acc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
}
.acc-actions-main {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* Buton „detalii" (gear) — secundar, ca link */
.acc-btn-link {
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--acc-text, #1e1e1e) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 5px 10px;
    background: none !important;
}
.acc-btn-details:hover{
	text-decoration: underline;
}
.acc-btn-link .acc-gear { font-size: 16px; }
.acc-btn-link:focus,
.acc-btn-link:hover { 
    opacity: 1;
    background-color: var(--secondary);
    border-radius: 50px;
    font-size: 14px;
    padding: 5px 10px;
    color: white;
}

/* Butoane principale (pill) */
.acc-btn {
	font: inherit;
	cursor: pointer;
	border: 2px solid var(--acc-btn-bg, #2271b1);
	border-radius: 28px;
	padding: 11px 26px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	transition: opacity 0.15s ease, background 0.15s ease;
}
.acc-btn:hover { opacity: 0.88; }
.acc-btn:focus-visible {
	outline: 3px solid var(--acc-btn-bg, #2271b1);
	outline-offset: 2px;
}

/* Accept & Reject (layer 1) — greutate vizuală EGALĂ (cerință GDPR) */
.acc-btn-accept,
.acc-btn-reject,
.acc-save-prefs {
	background: var(--acc-btn-bg, #2271b1);
	color: var(--acc-btn-text, #fff);
}

/* Outline (Accept toate / Refuză tot din layer 2) — egale între ele */
.acc-btn-outline {
	background: transparent;
	color: var(--acc-text, #1e1e1e);
	border-color: rgba(0, 0, 0, 0.25);
}

/* Sub-tab-uri */
.acc-subtabs {
	display: flex;
	border-bottom: 2px solid rgba(0, 0, 0, 0.08);
	margin-top: 6px;
}
.acc-subtab {
	flex: 1 1 auto;
	background: none!important;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: black !important;
	padding: 14px 10px;
	
    /*border: 1px solid #ccc;*/
    /*border-bottom: 0;*/
    /*border-radius: 5px 5px 0 0;*/
}
.acc-subtab.is-active {
	color: white;
	border-bottom-color: var(--acc-btn-bg, #2271b1);
	background-color: var(--acc-btn-bg, #2271b1)!important;
}
.acc-subtab.is-active:focus{
    color: white;
    background-color: var(--secondary);
}
.acc-subtab:focus-visible {
	outline: 2px solid var(--acc-btn-bg, #2271b1);
	outline-offset: -2px;
}

.acc-subpanel {
	background: #f4f5f6;
	padding: 18px;
	border-radius: 0 0 8px 8px;
}
.acc-subpanel[hidden] { display: none; }
.acc-about p { margin: 0 0 12px; }
.acc-about p:last-child { margin-bottom: 0; }
.acc-about a{
	text-decoration:underline;
}
/* Categorii */
.acc-categories-list {
	display: flex;
	flex-direction: column;
}
.acc-cat {
	padding: 16px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.acc-cat:first-child { padding-top: 0; }
.acc-cat:last-child { border-bottom: none; padding-bottom: 0; }
.acc-cat-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 14px;
}
.acc-cat-name { font-weight: 700; font-size: 1.05em; }
.acc-cat-desc {
	margin: 8px 0 0;
	font-size: 0.92em;
	color: #4b5563;
}

/* Link „Afișați cookie-uri" */
.acc-cookie-toggle {
	background: none !important;
	border: none;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 0.82em;
	color: var(--acc-btn-bg, #2271b1)!important;
	padding: 10px 0 0;
}
.acc-cookie-toggle:focus,
.acc-cookie-toggle:hover{
    background:none;
    text-decoration-style: dotted;
    color: var(--secondary);
    text-decoration-color: var(--secondary);
}
.acc-cookie-table-wrap {
	margin: 12px 0 4px;
	overflow-x: auto;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
}
.acc-cookie-table-wrap[hidden] { display: none; }
.acc-cookie-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85em;
	color: #1e1e1e;
}
.acc-cookie-table th {
	text-align: left;
	font-weight: 700;
	padding: 10px 12px;
	border-bottom: 2px solid rgba(0, 0, 0, 0.12);
	white-space: nowrap;
}
.acc-cookie-table td {
	padding: 9px 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	vertical-align: top;
}
.acc-cookie-table tr:last-child td { border-bottom: none; }
.acc-cookie-table td:first-child { font-family: monospace; white-space: nowrap; }

/* Mobile: tabel pe „carduri" */
@media (max-width: 600px) {
	.acc-cookie-table,
	.acc-cookie-table thead,
	.acc-cookie-table tbody,
	.acc-cookie-table tr,
	.acc-cookie-table td { display: block; width: 100%; }
	.acc-cookie-table thead { display: none; }
	.acc-cookie-table tr { border-bottom: 2px solid rgba(0, 0, 0, 0.12); padding: 6px 0; }
	.acc-cookie-table td { border: none; padding: 4px 12px; }
	.acc-cookie-table td::before {
		content: attr(data-label) ": ";
		font-weight: 700;
	}
	.acc-cookie-table td:first-child { white-space: normal; }
}

/* Switch toggle */
.acc-switch {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 26px;
	flex: 0 0 auto;
}
.acc-switch input { opacity: 0; width: 0; height: 0; }
.acc-slider {
	position: absolute;
	inset: 0;
	background: #c7ccd1;
	border-radius: 26px;
	transition: background 0.2s ease;
}
.acc-slider::before {
	content: "";
	position: absolute;
	height: 20px;
	width: 20px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s ease;
}
.acc-switch input:checked + .acc-slider { background: var(--acc-btn-bg, #2271b1); }
.acc-switch input:checked + .acc-slider::before { transform: translateX(20px); }
.acc-switch input:disabled + .acc-slider { opacity: 0.55; cursor: not-allowed; }
.acc-switch input:focus-visible + .acc-slider {
	outline: 3px solid var(--acc-btn-bg, #2271b1);
	outline-offset: 2px;
}

/* Acțiuni layer 2 */
.acc-layer2-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
	align-items: center;
}
.acc-save-prefs { margin-left: auto; } /* împins la dreapta ca în mockup */

/* Footer / token */
.acc-footer {
	margin-top: 16px;
	font-size: 0.8em;
	opacity: 0.65;
	text-align: right;
}
.acc-token {
	margin-top: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.82em;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	padding: 8px 10px;
}
.acc-token[hidden] { display: none; }
.acc-token-text { flex: 1 1 auto; word-break: break-all; }
.acc-token-copy {
	flex: 0 0 auto;
	cursor: pointer;
	font: inherit;
	font-size: 0.95em;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 6px;
	border: 1px solid var(--acc-btn-bg, #2271b1);
	background: transparent;
	color: var(--acc-btn-bg, #2271b1);
	transition: background 0.15s ease, color 0.15s ease;
}
.acc-token-copy:hover {
	background: var(--acc-btn-bg, #2271b1);
	color: var(--acc-btn-text, #fff);
}

/* Buton flotant de re-deschidere */
.acc-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999997;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background: var(--acc-btn-bg, #2271b1);
	color: var(--acc-btn-text, #fff);
	font-size: 20px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	padding:0;
}
.acc-reopen[hidden] { display: none; }

/* Placeholder embed-uri blocate */
.acc-embed-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 180px;
	padding: 24px;
	text-align: center;
	background: #f3f4f6;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	color: #1e1e1e;
}
.acc-embed-placeholder p { margin: 0; max-width: 420px; }
.acc-embed-unlock {
	font: inherit;
	cursor: pointer;
	border: none;
	border-radius: 28px;
	padding: 9px 20px;
	font-weight: 700;
	background: var(--acc-btn-bg, #2271b1);
	color: var(--acc-btn-text, #fff);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.acc-btn,
	.acc-slider,
	.acc-slider::before { transition: none !important; }
}

/* Mobile */
@media (max-width: 600px) {
	.acc-body { padding: 18px; }
	.acc-actions { flex-direction: column; align-items: stretch; }
	.acc-actions-main { flex-direction: column; }
	.acc-btn { width: 100%; text-align: center; }
	.acc-save-prefs { margin-left: 0; }
}
