/* Öffentlicher DSGVO-/Cookie-Dialog */

.ewg-consent-root {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
}

.ewg-consent-root.is-open {
    display: flex;
}

.ewg-consent-panel {
    width: min(100%, 36rem);
    max-height: min(90vh, 40rem);
    overflow: auto;
    background: #fff;
    color: #0f172a;
    border-radius: 0.75rem;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
    padding: 1.25rem 1.35rem 1.1rem;
}

.ewg-consent-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
    line-height: 1.3;
}

.ewg-consent-intro {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
}

.ewg-consent-intro p:last-child {
    margin-bottom: 0;
}

.ewg-consent-privacy {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.ewg-consent-cats {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ewg-consent-cat {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 0.85rem;
}

.ewg-consent-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.ewg-consent-cat-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.ewg-consent-cat-text {
    font-size: 0.85rem;
    color: #475569;
    margin: 0;
}

.ewg-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ewg-consent-actions .btn {
    flex: 1 1 auto;
    min-width: 8rem;
}

.ewg-consent-reopen {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1070;
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
}

.ewg-consent-reopen:hover,
.ewg-consent-reopen:focus-visible {
    background: #1e293b;
    color: #fff;
}

.ewg-consent-details[hidden] {
    display: none !important;
}

@media (min-width: 768px) {
    .ewg-consent-root {
        align-items: center;
    }
}
