body {
    font-family: Arial, sans-serif;
}

.hidden {
    display: none !important;
}

.consent-banner,
.consent-settings-dialog {
    position: fixed;
    inset: auto 1rem 1rem 1rem;
    z-index: 50;
    display: flex;
    justify-content: center;
}

.consent-settings-dialog {
    inset: 1rem;
    align-items: center;
    background: rgba(15, 23, 42, 0.45);
}

.consent-panel {
    width: min(100%, 42rem);
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
    padding: 1.5rem;
}

.consent-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.consent-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.consent-description {
    margin: 0.75rem 0 0;
    color: #475569;
    line-height: 1.6;
}

.consent-options {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.consent-option {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    padding: 1rem;
    align-items: flex-start;
}

.consent-option span {
    display: block;
}

.consent-option strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #0f172a;
}

.consent-option input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
}

.consent-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.consent-button,
.consent-close {
    border-radius: 9999px;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
}

.consent-button {
    padding: 0.8rem 1.1rem;
    font-weight: 600;
}

.consent-button-primary {
    background: #0284c7;
    color: #ffffff;
}

.consent-button-secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.consent-close {
    min-width: 2.5rem;
    min-height: 2.5rem;
    background: transparent;
    color: #475569;
    font-size: 1.5rem;
}

.consent-button:focus-visible,
.consent-close:focus-visible,
#manage-consent-button:focus-visible,
#privacy-link:focus-visible,
#policy-footer-link:focus-visible,
#back-link:focus-visible {
    outline: 3px solid #0ea5e9;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .consent-panel {
        padding: 1rem;
    }

    .consent-option {
        flex-direction: column;
    }

    .consent-actions {
        flex-direction: column;
    }

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    transform: translateY(-200%);
    z-index: 100;
    border-radius: 9999px;
    background: #0f172a;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}
