/* 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 { 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); } }
