.iceq-consent { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; background: rgb(0 0 0 / .5); }
.iceq-consent[hidden], .iceq-consent-manage[hidden], .iceq-consent [hidden] { display: none !important; }
.iceq-consent__panel { display: flex; flex-direction: column; width: min(760px, 100%); max-height: calc(100dvh - 40px); padding: 0; overflow: hidden; border: 1px solid rgb(0 0 0 / .175); border-radius: 6px; background: #fff; color: #212529; box-shadow: 0 8px 24px rgb(0 0 0 / .15); }
.iceq-consent .modal-header { display: flex; align-items: center; padding: 16px; border-bottom: 1px solid #dee2e6; background: #fff; }
.iceq-consent .modal-title { margin: 0; color: #212529; font-size: 1.25rem; font-weight: 600; line-height: 1.5; }
.iceq-consent .modal-body { padding: 16px; overflow-y: auto; }
.iceq-consent p { margin: 0; line-height: 1.55; }
.iceq-consent a { color: #0d6efd; }
.iceq-consent__choices { margin-top: 16px; border-top: 1px solid #dee2e6; padding-top: 12px; }
.iceq-consent__choices label { display: flex; align-items: center; gap: 8px; padding: 7px 0; }
.iceq-consent__choices input { width: 18px; height: 18px; margin: 0; accent-color: #0d6efd; }
.iceq-consent__actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid #dee2e6; background: #fff; }
.iceq-consent button, .iceq-consent-manage { min-height: 44px; padding: 8px 16px; border: 1px solid #6c757d; border-radius: 4px; background: #fff; color: #495057; box-shadow: none; font: inherit; font-weight: 500; cursor: pointer; transform: none; }
.iceq-consent button:hover { background: #e9ecef; color: #212529; transform: none; }
.iceq-consent button.is-primary { border-color: #0d6efd; background: #0d6efd; color: #fff; }
.iceq-consent button.is-primary:hover { border-color: #0a58ca; background: #0b5ed7; }
.iceq-consent button:focus-visible, .iceq-consent-manage:focus-visible { outline: 3px solid #86b7fe; outline-offset: 2px; }
.iceq-consent-manage { position: fixed; z-index: 99999; left: 16px; bottom: 16px; display: grid; place-items: center; box-sizing: border-box; width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 20px; }
.iceq-consent-manage__icon { display: block; width: 24px; height: 24px; flex: none; }
@media (max-width: 1359px) {
    .iceq-consent-manage { position: static; margin: 20px auto calc(74px + env(safe-area-inset-bottom)); }
}
@media (max-width: 700px) {
    .iceq-consent { padding: 12px; }
    .iceq-consent__panel { max-height: calc(100dvh - 24px); }
    .iceq-consent__actions { display: grid; grid-template-columns: 1fr; }
    .iceq-consent button { width: 100%; }
}
@media(prefers-reduced-motion:reduce){.iceq-consent *{scroll-behavior:auto!important}}

/* The initial notice must leave forms reachable before any optional choice. */
.iceq-consent--notice { inset: auto 0 0; background: transparent; place-items: end center; pointer-events: none; }
.iceq-consent--notice .iceq-consent__panel { pointer-events: auto; max-height: min(48dvh, 440px); }

/* Equal visibility for acceptance and refusal, and permanent privacy access. */
.iceq-privacy-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 0; font-size: 1rem; }
.iceq-privacy-links a, .iceq-privacy-links button { display: inline-flex; align-items: center; min-height: 44px; color: #1b4d3e; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.iceq-privacy-links button { border: 0; background: transparent; padding: 0; cursor: pointer; }
/* This icon button keeps its own layout inside the footer's privacy links. */
.iceq-privacy-links .iceq-consent-manage { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #1b4d3e; border-radius: 50%; background: #fff; line-height: 1; text-decoration: none; }
.iceq-privacy-notice { flex: 1 0 100%; grid-column: 1 / -1; padding: 16px; border: 1px solid #d6e2db; border-radius: 8px; background: #f2f6f3; color: #233c33; font-size: 1rem; line-height: 1.6; }
.iceq-privacy-notice a { color: #1b4d3e; text-decoration: underline; }
.iceq-privacy-links :is(a,button):focus-visible { outline: 3px solid #8b5d12; outline-offset: 3px; }

body.iceq-privacy-open { overflow: hidden; }
.iceq-privacy-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #d6e2db; border-radius: 18px; color: #233c33; background: #fff; box-shadow: 0 24px 90px #10281b55; }
.iceq-privacy-dialog[open] { display: flex; flex-direction: column; }
.iceq-privacy-dialog::backdrop { background: #10251cc4; backdrop-filter: blur(3px); }
.iceq-privacy-dialog__header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-bottom: 1px solid #dbe5df; background: #f2f7f3; }
.iceq-privacy-dialog__header p { margin: 0 0 6px; color: #596f60; font-size: .8125rem; font-weight: 650; }
.iceq-privacy-dialog__header h2 { margin: 0; color: #1b4d3e; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.25; }
.iceq-privacy-dialog button { min-height: 44px; padding: 10px 16px; border: 1px solid #1b4d3e; border-radius: 8px; color: #1b4d3e; background: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.iceq-privacy-dialog button:hover { background: #e8f1eb; }
.iceq-privacy-dialog .iceq-privacy-dialog__close { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; padding: 0; border-color: #bccfc2; font-family: Arial,sans-serif; font-size: 28px; line-height: 1; }
.iceq-privacy-dialog__content { min-height: 120px; padding: 24px 28px; overflow: auto; overscroll-behavior: contain; font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.iceq-privacy-dialog__content p { margin: 0 0 1em; }
.iceq-privacy-dialog__content :is(h1,h2,h3,h4,h5,h6) { margin: 1.25em 0 .6em; color: #1b4d3e; font-size: 1.125rem; line-height: 1.4; }
.iceq-privacy-dialog__content :is(ul,ol) { padding-left: 24px; }
.iceq-privacy-dialog__content a { color: #1b4d3e; text-decoration: underline; text-underline-offset: 3px; }
.iceq-privacy-dialog__content table { width: 100%; border-collapse: collapse; }
.iceq-privacy-dialog__content :is(th,td) { padding: 10px; border: 1px solid #d6e2db; text-align: left; vertical-align: top; }
.iceq-privacy-dialog__footer { display: flex; flex-shrink: 0; justify-content: flex-end; padding: 16px 28px; border-top: 1px solid #dbe5df; }
.iceq-privacy-dialog :is(a,button,[tabindex]):focus-visible { outline: 3px solid #8b5d12; outline-offset: 3px; }
@media(max-width:600px) {
    .iceq-privacy-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; }
    .iceq-privacy-dialog__header, .iceq-privacy-dialog__content { padding: 20px 16px; }
    .iceq-privacy-dialog__footer { padding: 14px 16px; }
    .iceq-privacy-dialog__footer button { width: 100%; }
}
