/* Ignáth András – hozzájárulás-kezelő (a TöbbmintEgészség privacy-consent mintájára) */
.iac-banner[hidden], .iac-overlay[hidden], .iac-fab[hidden] { display: none !important; }

.iac-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10000;
    max-width: 980px; margin: 0 auto;
    background: #fff; color: #27272e; border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28); border: 1px solid #e9e1d3;
    font-family: "DM Sans", system-ui, sans-serif; font-size: 15px; line-height: 1.55;
}
.iac-banner-inner { display: flex; gap: 22px; align-items: center; padding: 20px 24px; flex-wrap: wrap; }
.iac-copy { flex: 1 1 380px; min-width: 0; }
.iac-copy h2 { margin: 0 0 6px; font-family: "Playfair Display", serif; font-size: 20px; color: #27272e; }
.iac-copy p { margin: 0; color: #55585c; }
.iac-copy a, .iac-modal a { color: #6d5d35; text-decoration: underline; }

.iac-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.iac-btn {
    appearance: none; cursor: pointer; border: 1.5px solid #CBAF88; background: #fff; color: #27272e;
    border-radius: 8px; padding: 11px 18px; font: 600 14.5px "DM Sans", system-ui, sans-serif;
    transition: background .15s, color .15s;
}
.iac-btn:hover { background: #f6efe3; }
.iac-btn-primary { background: #CBAF88; border-color: #CBAF88; color: #0d0d0d; }
.iac-btn-primary:hover { background: #bd9f75; }
.iac-btn-dark { background: #27272e; border-color: #27272e; color: #fff; }
.iac-btn-dark:hover { background: #3a3a44; }
.iac-btn:focus-visible, .iac-close:focus-visible, .iac-fab:focus-visible { outline: 3px solid #6d5d35; outline-offset: 2px; }

.iac-overlay {
    position: fixed; inset: 0; z-index: 10001; background: rgba(15, 15, 18, .62);
    display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto;
}
.iac-modal {
    background: #fff; color: #27272e; border-radius: 16px; width: 100%; max-width: 620px;
    padding: 26px; box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
    font-family: "DM Sans", system-ui, sans-serif; font-size: 15px; line-height: 1.55;
}
.iac-modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.iac-modal-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.iac-modal-head h2 { margin: 0 0 4px; font-family: "Playfair Display", serif; font-size: 24px; }
.iac-modal-head p { margin: 0; color: #55585c; }
.iac-close { appearance: none; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #27272e; padding: 2px 8px; }

.iac-cats { margin: 18px 0; display: grid; gap: 10px; }
.iac-cat {
    display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
    border: 1px solid #e9e1d3; border-radius: 12px; padding: 14px 16px; background: #fcfaf6;
}
.iac-cat strong { display: block; margin-bottom: 3px; }
.iac-cat p { margin: 0; color: #55585c; font-size: 14px; }
.iac-always { white-space: nowrap; font-size: 13px; font-weight: 700; color: #6d5d35; padding-top: 2px; }

.iac-switch { position: relative; flex: 0 0 auto; width: 48px; height: 28px; margin-top: 2px; cursor: pointer; }
.iac-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.iac-switch span { position: absolute; inset: 0; border-radius: 28px; background: #c9c9ce; transition: background .15s; pointer-events: none; }
.iac-switch span::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.iac-switch input:checked + span { background: #6d5d35; }
.iac-switch input:checked + span::after { transform: translateX(20px); }
.iac-switch input:focus-visible + span { outline: 3px solid #CBAF88; outline-offset: 2px; }

.iac-foot { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.iac-fab {
    position: fixed; left: 16px; bottom: 16px; z-index: 9990; width: 44px; height: 44px; border-radius: 50%;
    border: 0; cursor: pointer; background: #27272e; color: #fff; font-size: 20px; line-height: 44px; padding: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3); opacity: .85;
}
.iac-fab:hover { opacity: 1; }
body.iac-modal-open { overflow: hidden; }

@media (max-width: 600px) {
    .iac-banner { left: 8px; right: 8px; bottom: 8px; }
    .iac-banner-inner { padding: 16px; gap: 14px; }
    .iac-actions { width: 100%; }
    .iac-actions .iac-btn { flex: 1 1 100%; }
    .iac-modal { padding: 20px; }
    .iac-foot .iac-btn { flex: 1 1 100%; }
}

.pv-cookies code { font-size: 13px; background: #f3ece0; padding: 1px 5px; border-radius: 4px; word-break: break-all; color: #27272e; }
