/* Nurme Consent Manager — banner styles. Theme-neutral, a11y-first. */

.ncm-root { --ncm-brand: #2c6e49; --ncm-fg: #1a1a1a; --ncm-bg: #ffffff; }
.ncm-root.is-hidden { display: none !important; }

.ncm-root { position: fixed; z-index: 2147483000; box-sizing: border-box; color: var(--ncm-fg); }
.ncm-root *, .ncm-root *::before, .ncm-root *::after { box-sizing: border-box; }

/* Layout: bottom/top bar */
.ncm-layout-bar { left: 0; right: 0; }
.ncm-layout-bar.ncm-pos-bottom { bottom: 0; }
.ncm-layout-bar.ncm-pos-top { top: 0; }
.ncm-layout-bar .ncm-dialog {
	max-width: 1200px; margin: 0 auto; background: var(--ncm-bg);
	padding: 1rem 1.25rem; box-shadow: 0 -2px 16px rgba(0,0,0,.12);
	border-radius: 10px 10px 0 0;
}

/* Layout: center modal */
.ncm-layout-modal { inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.ncm-layout-modal .ncm-dialog { background: var(--ncm-bg); max-width: 480px; width: calc(100% - 2rem); padding: 1.5rem; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.3); }

/* Layout: floating box */
.ncm-layout-box { bottom: 1rem; max-width: 380px; width: calc(100% - 2rem); }
.ncm-layout-box.ncm-pos-left { left: 1rem; } .ncm-layout-box.ncm-pos-right { right: 1rem; }
.ncm-layout-box .ncm-dialog { background: var(--ncm-bg); padding: 1.25rem; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,.2); }

.ncm-title { margin: 0 0 .4rem; font-size: 1.1rem; line-height: 1.3; }
.ncm-desc { margin: 0 0 .9rem; font-size: .9rem; line-height: 1.5; }

.ncm-categories:not([hidden]) { display: grid; gap: .5rem; margin-bottom: .9rem; }
.ncm-cat { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.ncm-cat-input { width: 1.1rem; height: 1.1rem; accent-color: var(--ncm-brand); }

.ncm-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ncm-btn {
	font: inherit; font-size: .9rem; padding: .6rem 1rem; border-radius: 8px;
	cursor: pointer; border: 2px solid var(--ncm-brand); line-height: 1.1; min-height: 44px;
}
/* Reject and Accept share equal visual weight (ePrivacy). */
.ncm-btn-accept { background: var(--ncm-brand); color: #fff; }
.ncm-btn-reject { background: var(--ncm-brand); color: #fff; }
.ncm-btn-customize, .ncm-btn-save { background: transparent; color: var(--ncm-brand); }
.ncm-btn:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

@media (max-width: 640px) {
	.ncm-layout-bar .ncm-dialog { border-radius: 0; }
	.ncm-actions { flex-direction: column; }
	.ncm-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ncm-root { transition: none !important; } }
@media (prefers-color-scheme: dark) {
	.ncm-root { --ncm-fg: #f0f0f0; --ncm-bg: #1e1e1e; }
}

/* Persistent "cookie settings" trigger (withdrawal always available). */
.ncm-settings-tab {
	position: fixed; left: 12px; bottom: 12px; z-index: 2147482000;
	width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
	border: 1px solid rgba(0,0,0,.15); background: #fff; font-size: 20px; line-height: 1;
	box-shadow: 0 2px 10px rgba(0,0,0,.18); padding: 0;
}
.ncm-settings-tab:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .ncm-settings-tab { background: #2a2a2a; border-color: rgba(255,255,255,.2); } }

/* ── "Soe kaart" (Kavand 02): warm cream card, petrol, green leaf ── */
.ncm-layout-box .ncm-dialog {
	background: #f6f2ea; color: #26333a;
	padding: 1.4rem 1.3rem; border-radius: 16px;
	box-shadow: 0 8px 34px rgba(0,48,69,.22); border: 1px solid #e7ddcb;
}
.ncm-leaf {
	display: inline-flex; vertical-align: middle; margin-right: .5rem;
	width: 38px; height: 38px; align-items: center; justify-content: center;
	background: #e8efe6; border-radius: 50%;
}
.ncm-layout-box .ncm-title { display: inline; color: var(--ncm-brand); font-size: 1.15rem; }
.ncm-layout-box .ncm-desc { margin: .7rem 0 1rem; color: #465158; }
.ncm-layout-box .ncm-actions { flex-direction: column; gap: .5rem; }
.ncm-layout-box .ncm-btn { width: 100%; font-weight: 600; }
/* Accept = primary filled petrol; Reject = visible outlined (equal size → GDPR-compliant) */
.ncm-layout-box .ncm-btn-accept  { background: var(--ncm-brand); color: #fff; border-color: var(--ncm-brand); order: 1; }
.ncm-layout-box .ncm-btn-accept:hover { background: #00212f; }
.ncm-layout-box .ncm-btn-reject  { background: #fff; color: var(--ncm-brand); border: 2px solid var(--ncm-brand); order: 2; }
.ncm-layout-box .ncm-btn-save    { background: var(--ncm-brand); color: #fff; border-color: var(--ncm-brand); order: 1; }
/* "Seaded" (customize) = discreet centered link */
.ncm-layout-box .ncm-btn-customize {
	order: 3; background: transparent; border: none; color: #5a6a70;
	text-decoration: underline; min-height: auto; padding: .3rem; font-weight: 500; font-size: .86rem;
}
/* Keep the warm look regardless of OS dark mode (brand consistency). */
@media (prefers-color-scheme: dark) {
	.ncm-layout-box .ncm-dialog { background: #f6f2ea; color: #26333a; }
	.ncm-layout-box .ncm-btn-reject { background: #fff; }
}
