/* Duratis Cookie Consent */
:root { --dcc-accent: #E31E24; --dcc-bg: #ffffff; --dcc-fg: #1d2327; --dcc-muted: #50575e; --dcc-line: #dcdcde; }

.dcc-banner, .dcc-modal, .dcc-reopen { font-family: inherit; font-size: 15px; line-height: 1.5; color: var(--dcc-fg); box-sizing: border-box; }
.dcc-banner *, .dcc-modal *, .dcc-reopen * { box-sizing: border-box; }
.dcc-banner[hidden], .dcc-modal[hidden], .dcc-reopen[hidden] { display: none !important; }

/* Bottom bar */
.dcc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000; background: var(--dcc-bg); border-top: 1px solid var(--dcc-line); box-shadow: 0 -4px 24px rgba(0, 0, 0, .12); padding: 18px 16px; }
.dcc-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.dcc-text { flex: 1 1 auto; min-width: 0; }
.dcc-title { margin: 0 0 4px; font-weight: 700; font-size: 16px; }
.dcc-msg { margin: 0; color: var(--dcc-muted); }
.dcc-link { color: var(--dcc-accent); text-decoration: underline; margin-left: 4px; }
.dcc-actions { display: flex; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; }

/* Buttons – Accept and Reject are equally prominent (GDPR / EDPB guidance) */
/* High specificity + !important so theme / Elementor global button styles (e.g. Hello theme's pink #c36) can't override them */
.dcc-banner button.dcc-btn, .dcc-modal button.dcc-btn { appearance: none !important; cursor: pointer; font-family: inherit !important; font-weight: 600 !important; font-size: 14px !important; text-transform: none !important; letter-spacing: normal !important; padding: 11px 22px !important; margin: 0 !important; border-radius: 50px !important; border: 2px solid var(--dcc-accent) !important; line-height: 1.2 !important; white-space: nowrap; box-shadow: none !important; text-decoration: none !important; transition: filter .15s, background-color .15s, color .15s; }
.dcc-banner button.dcc-btn-solid, .dcc-modal button.dcc-btn-solid,
.dcc-banner button.dcc-btn-solid:focus, .dcc-modal button.dcc-btn-solid:focus { background: var(--dcc-accent) !important; color: #fff !important; }
.dcc-banner button.dcc-btn-solid:hover, .dcc-modal button.dcc-btn-solid:hover { background: var(--dcc-accent) !important; color: #fff !important; filter: brightness(1.12); }
.dcc-banner button.dcc-btn-ghost, .dcc-modal button.dcc-btn-ghost,
.dcc-banner button.dcc-btn-ghost:focus, .dcc-modal button.dcc-btn-ghost:focus { background: #fff !important; color: var(--dcc-accent) !important; }
.dcc-banner button.dcc-btn-ghost:hover, .dcc-modal button.dcc-btn-ghost:hover { background: var(--dcc-accent) !important; color: #fff !important; }
.dcc-modal button.dcc-close, .dcc-modal button.dcc-close:hover, .dcc-modal button.dcc-close:focus { background: none !important; border: 0 !important; color: var(--dcc-muted) !important; box-shadow: none !important; padding: 4px 8px !important; }
button.dcc-reopen, button.dcc-reopen:hover, button.dcc-reopen:focus { background: var(--dcc-accent) !important; color: #fff !important; border: 0 !important; padding: 0 !important; border-radius: 50% !important; }
.dcc-btn:focus-visible, .dcc-close:focus-visible, .dcc-reopen:focus-visible, .dcc-switch input:focus-visible + .dcc-slider { outline: 3px solid var(--dcc-accent); outline-offset: 2px; }

/* Settings modal */
html.dcc-locked { overflow: hidden; }
.dcc-modal { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dcc-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.dcc-dialog { position: relative; background: var(--dcc-bg); border-radius: 10px; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px 28px 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); outline: none; }
.dcc-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--dcc-muted); padding: 4px 8px; }
.dcc-modal-title { margin: 0 0 8px; font-size: 20px; line-height: 1.3; color: var(--dcc-fg); }
.dcc-modal-intro { margin: 0 0 16px; color: var(--dcc-muted); }
.dcc-cat { border-top: 1px solid var(--dcc-line); padding: 14px 0; }
.dcc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dcc-cat-name { font-weight: 700; cursor: pointer; }
.dcc-cat-desc { margin: 4px 0 0; color: var(--dcc-muted); font-size: 14px; }
.dcc-always { font-size: 13px; font-weight: 600; color: var(--dcc-accent); }
.dcc-modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--dcc-line); padding-top: 16px; }

/* Toggle switch */
.dcc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
.dcc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.dcc-slider { position: absolute; inset: 0; background: #c3c4c7; border-radius: 24px; transition: background .2s; }
.dcc-slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.dcc-switch input:checked + .dcc-slider { background: var(--dcc-accent); }
.dcc-switch input:checked + .dcc-slider::before { transform: translateX(20px); }

/* Floating re-open button */
.dcc-reopen { position: fixed; left: 16px; bottom: 16px; z-index: 2147482999; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--dcc-accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); opacity: .85; }
.dcc-reopen:hover { opacity: 1; }

/* Mobile */
@media (max-width: 782px) {
	.dcc-inner { flex-direction: column; align-items: stretch; gap: 14px; }
	.dcc-actions { display: grid; grid-template-columns: 1fr 1fr; }
	.dcc-actions .dcc-btn-ghost { grid-column: 1 / -1; order: 3; }
	.dcc-btn { white-space: normal; }
	.dcc-dialog { padding: 22px 18px 18px; }
	.dcc-modal-actions .dcc-btn { flex: 1 1 100%; }
}

@media print { .dcc-banner, .dcc-modal, .dcc-reopen { display: none !important; } }
