.wp50-consent-panel[hidden],
.wp50-consent-panel [hidden],
.wp50-consent-settings[hidden] {
    display: none;
}

.wp50-consent-panel {
    position: fixed;
    z-index: 120;
    inset: auto 1rem 1rem;
    max-width: 36rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1rem 1.15rem;
    border: 1px solid #343434;
    border-radius: 0.5rem;
    background: #fff;
    color: #171717;
    box-shadow: 0 4px 24px #0003;
}

.wp50-consent-panel h2 {
    margin: 0 0 0.45rem;
    font: 700 1.125rem/1.3 system-ui, sans-serif;
}

.wp50-consent-panel p {
    margin: 0 0 0.7rem;
    font: 0.95rem/1.45 system-ui, sans-serif;
}

.wp50-consent-panel a {
    color: #174b73;
    text-decoration: underline;
}

.wp50-consent-current:empty {
    display: none;
}

.wp50-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.wp50-consent-actions button {
    min-height: 44px;
    padding: 0.45rem 0.8rem;
    border: 1px solid #171717;
    border-radius: 0.25rem;
    color: #171717;
    background: #fff;
    cursor: pointer;
    font: 600 0.9rem/1.2 system-ui, sans-serif;
}

.wp50-consent-settings button {
    padding: 0.25rem 0;
    border: 0;
    color: inherit;
    background: none;
    text-decoration: underline;
    font: inherit;
    cursor: pointer;
}

.wp50-consent-settings button:focus-visible,
.wp50-consent-actions button:focus-visible {
    outline: 2px solid #2478ac;
    outline-offset: 2px;
}
