/*
 * WP Octo Consent's own theme, on top of the bundled library's unmodified CSS: every colour
 * here is one of the plugin's own `--wo-*` design tokens (settings/Assets/css/wpocto-ui.css),
 * never a value invented for this one screen.
 */
#cc-main {
    --cc-bg: var(--wo-bg-surface, #ffffff);
    --cc-primary-color: var(--wo-text, #1f2430);
    --cc-secondary-color: var(--wo-text-secondary, #6b7280);
    --cc-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --cc-btn-primary-bg: var(--wo-primary, #7c69ef);
    --cc-btn-primary-border-color: var(--wo-primary, #7c69ef);
    --cc-btn-primary-color: var(--wo-text-inverse, #ffffff);
    --cc-btn-primary-hover-bg: var(--wo-primary-hover, #5b46e0);
    --cc-btn-primary-hover-border-color: var(--wo-primary-hover, #5b46e0);
    --cc-btn-primary-hover-color: var(--wo-text-inverse, #ffffff);

    --cc-btn-secondary-bg: var(--wo-bg-muted, #f3f4f6);
    --cc-btn-secondary-border-color: var(--wo-border, #e5e7eb);
    --cc-btn-secondary-color: var(--wo-text, #1f2430);
    --cc-btn-secondary-hover-bg: var(--wo-bg-subtle, #f9fafb);
    --cc-btn-secondary-hover-border-color: var(--wo-border-strong, #d1d5db);
    --cc-btn-secondary-hover-color: var(--wo-text, #1f2430);

    --cc-toggle-on-bg: var(--wo-primary, #7c69ef);
    --cc-toggle-off-bg: var(--wo-border-strong, #d1d5db);
    --cc-toggle-readonly-bg: var(--wo-bg-muted, #f3f4f6);

    --cc-cookie-category-block-bg: var(--wo-bg-subtle, #f9fafb);
    --cc-cookie-category-block-border: var(--wo-border, #e5e7eb);
    --cc-cookie-category-expanded-block-bg: var(--wo-bg-surface, #ffffff);

    --cc-section-category-border: var(--wo-border, #e5e7eb);
    --cc-separator-border-color: var(--wo-border, #e5e7eb);

    --cc-link-color: var(--wo-link, #5b46e0);

    --cc-footer-bg: var(--wo-bg-subtle, #f9fafb);
    --cc-footer-border-color: var(--wo-border, #e5e7eb);
    --cc-footer-color: var(--wo-text-secondary, #6b7280);

    --cc-modal-border-radius: 12px;
    --cc-btn-border-radius: 8px;
}

.wpocto-consent-preferences-link {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 2147483645;
    background: var(--wo-bg-surface, #ffffff);
    color: var(--wo-text-secondary, #6b7280);
    border: 1px solid var(--wo-border, #e5e7eb);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
}

.wpocto-consent-preferences-link:hover {
    color: var(--wo-text, #1f2430);
    border-color: var(--wo-border-strong, #d1d5db);
}

.wpocto-consent-preferences-link--right {
    left: auto;
    right: 12px;
}

.wpocto-consent-preferences-inline {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.wpocto-consent-embed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 200px;
    padding: 24px;
    text-align: center;
    background: var(--wo-bg-subtle, #f9fafb);
    border: 1px solid var(--wo-border, #e5e7eb);
    border-radius: 8px;
    color: var(--wo-text-secondary, #6b7280);
    font-size: 14px;
}

.wpocto-consent-embed p {
    margin: 0;
}

.wpocto-consent-embed-allow {
    background: var(--wo-primary, #7c69ef);
    color: var(--wo-text-inverse, #ffffff);
    border: 1px solid var(--wo-primary, #7c69ef);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

.wpocto-consent-embed-allow:hover {
    background: var(--wo-primary-hover, #5b46e0);
    border-color: var(--wo-primary-hover, #5b46e0);
}
