.apz-consent-overlay[hidden] {
    display: none;
}

.apz-consent-banner[hidden] {
    display: none;
}

body.apz-consent-open {
    overflow: hidden;
}

.apz-consent-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 20px;
    width: auto;
    max-width: 1040px;
    margin-inline: auto;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid #dfe5ed;
    border-radius: 12px;
    background: #fff;
    color: #1c2333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.apz-consent-banner-copy {
    flex: 1 1 auto;
    margin: 0;
}

.apz-consent-banner-copy a {
    color: #0057b8;
    text-decoration: underline;
}

.apz-consent-banner-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.apz-consent-banner-actions button {
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid #003366;
    border-radius: 8px;
    background: #fff;
    color: #003366;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.apz-consent-banner-actions button:hover {
    background: #eef4fb;
}

.apz-consent-banner-actions .apz-consent-primary {
    background: #003366;
    color: #fff;
}

.apz-consent-banner-actions .apz-consent-primary:hover {
    background: #0057b8;
}

.apz-consent-banner-actions button:focus-visible,
.apz-consent-banner-copy a:focus-visible {
    outline: 3px solid #e8590c;
    outline-offset: 3px;
}

.apz-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: 20px;
    background: rgba(8, 20, 38, .72);
    backdrop-filter: blur(4px);
}

.apz-consent-dialog {
    width: min(100%, 680px);
    max-height: min(92vh, 760px);
    overflow-y: auto;
    padding: clamp(22px, 5vw, 36px);
    border: 1px solid #dfe5ed;
    border-radius: 16px;
    background: #fff;
    color: #1c2333;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.apz-consent-dialog h2 {
    margin: 0 0 10px;
    color: #003366;
    font-size: clamp(23px, 4vw, 30px);
    line-height: 1.2;
}

.apz-consent-dialog p {
    margin: 0 0 16px;
}

.apz-consent-dialog a {
    color: #0057b8;
    text-decoration: underline;
}

.apz-consent-options {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.apz-consent-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid #dde3ed;
    border-radius: 10px;
    background: #f8fafc;
}

.apz-consent-option input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #0057b8;
    flex: 0 0 auto;
}

.apz-consent-option strong,
.apz-consent-option small {
    display: block;
}

.apz-consent-option small {
    margin-top: 3px;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.45;
}

.apz-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.apz-consent-actions button,
.apz-consent-settings-trigger {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #003366;
    border-radius: 8px;
    background: #fff;
    color: #003366;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.apz-consent-actions button:hover,
.apz-consent-settings-trigger:hover {
    background: #eef4fb;
}

.apz-consent-actions .apz-consent-primary {
    background: #003366;
    color: #fff;
}

.apz-consent-actions .apz-consent-primary:hover {
    background: #0057b8;
}

.apz-consent-actions button:focus-visible,
.apz-consent-settings-trigger:focus-visible,
.apz-consent-option input:focus-visible,
.apz-consent-dialog a:focus-visible {
    outline: 3px solid #e8590c;
    outline-offset: 3px;
}

.apz-consent-settings-trigger {
    min-height: unset;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: inherit;
    text-decoration: underline;
}

.apz-consent-service-notice {
    padding: 18px;
    border: 1px solid #dde3ed;
    border-radius: 8px;
    background: #f8fafc;
    color: #1c2333;
    line-height: 1.5;
}

@media (max-width: 520px) {
    .apz-consent-banner {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        border-radius: 12px 12px 0 0;
    }

    .apz-consent-banner-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .apz-consent-banner-actions .apz-consent-settings-trigger {
        grid-column: 1 / -1;
    }

    .apz-consent-banner-actions button {
        width: 100%;
        padding-inline: 8px;
        font-size: 14px;
    }

    .apz-consent-overlay {
        align-items: end;
        padding: 0;
    }

    .apz-consent-dialog {
        max-height: 94vh;
        padding: 24px 18px;
        border-radius: 16px 16px 0 0;
    }

    .apz-consent-actions {
        display: grid;
    }

    .apz-consent-actions button {
        width: 100%;
    }
}
