.misjapi-consent[hidden], .misjapi-consent-settings[hidden] { display: none; }
.misjapi-consent {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 100;
    box-sizing: border-box;
    width: min(25rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: 1.25rem;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 12px;
    background: white;
    color: var(--wp--preset--color--brand);
    box-shadow: 0 4px 24px rgb(30 23 95 / 12%);
    font-size: 0.875rem;
    line-height: 1.5;
}
.misjapi-consent h2 { margin: 0 1.5rem 0.75rem 0; font-size: 1rem; line-height: 1.4; }
.misjapi-consent p { margin: 0 0 1rem; }
.misjapi-consent-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.misjapi-consent-actions button {
    flex: 1 1 9rem;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--wp--preset--color--brand);
    border-radius: 6px;
    background: white;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.misjapi-consent-actions button:hover { background: var(--wp--preset--color--brand-light); }
.misjapi-consent-dismiss { position: absolute; top: 0.25rem; right: 0.25rem; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 1.5rem; cursor: pointer; }
.misjapi-consent .misjapi-consent-details { margin: 0.75rem 0 0; }
.misjapi-consent-settings { margin: 1rem; text-align: center; }
.misjapi-consent-settings button { min-height: 44px; padding: 0.5rem; border: 0; background: transparent; color: inherit; font: inherit; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.misjapi-consent :is(button, a):focus-visible, .misjapi-consent-settings button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
