/**
 * WPConsent — Code Samurai brand overrides
 * Targets #wpconsent-root (live host) + #wpconsent-container.
 * Uses !important so values beat WPConsent admin inline vars.
 * @see https://wpconsent.com/docs/how-to-customize-the-wpconsent-banner-with-css-variables/
 * @see https://wpconsent.com/docs/how-to-customize-the-wpconsent-banner-with-css/
 */

:root {
    --wpconsent-floating-button-bg: #1a1a1a !important;
    --wpconsent-floating-button-color: #ffffff !important;
}

:root,
#wpconsent-root,
#wpconsent-container {
    --wpconsent-background: #1a1a1a !important;
    --wpconsent-text: rgba(255, 255, 255, 0.85) !important;
    --wpconsent-border: rgba(255, 255, 255, 0.12) !important;
    --wpconsent-outline-color: rgba(255, 255, 255, 0.12) !important;
    --wpconsent-border-radius: 24px !important;
    --wpconsent-padding: 24px 28px !important;
    --wpconsent-shadow: 0 20px 50px rgba(0, 0, 0, 0.55) !important;
    --wpconsent-font-size: 14px !important;
    --wpconsent-title-size: 18px !important;
    --wpconsent-line-height: 1.55 !important;
    --wpconsent-close-color: rgba(255, 255, 255, 0.7) !important;
    --wpconsent-focus-outline-color: #a81010 !important;

    --wpconsent-accept-bg: #a81010 !important;
    --wpconsent-accept-color: #ffffff !important;

    --wpconsent-cancel-bg: transparent !important;
    --wpconsent-cancel-color: #ffffff !important;

    --wpconsent-preferences-bg: rgba(255, 255, 255, 0.08) !important;
    --wpconsent-preferences-color: #ffffff !important;
}

#wpconsent-container::part(wpconsent-banner),
#wpconsent-root::part(wpconsent-banner) {
    font-family: Inter, system-ui, sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

#wpconsent-container::part(wpconsent-banner-body),
#wpconsent-container::part(wpconsent-preferences-title),
#wpconsent-container::part(wpconsent-preferences-description),
#wpconsent-root::part(wpconsent-banner-body),
#wpconsent-root::part(wpconsent-preferences-title),
#wpconsent-root::part(wpconsent-preferences-description) {
    font-family: Inter, system-ui, sans-serif;
}

#wpconsent-container::part(wpconsent-button-accept),
#wpconsent-container::part(wpconsent-button-cancel),
#wpconsent-container::part(wpconsent-button-preferences),
#wpconsent-container::part(wpconsent-preferences-accept-button),
#wpconsent-container::part(wpconsent-preferences-save-button),
#wpconsent-container::part(wpconsent-preferences-cancel-button),
#wpconsent-root::part(wpconsent-button-accept),
#wpconsent-root::part(wpconsent-button-cancel),
#wpconsent-root::part(wpconsent-button-preferences),
#wpconsent-root::part(wpconsent-preferences-accept-button),
#wpconsent-root::part(wpconsent-preferences-save-button),
#wpconsent-root::part(wpconsent-preferences-cancel-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    border-radius: 9999px;
    padding: 0 20px;
    min-height: 40px;
    box-sizing: border-box;
    vertical-align: middle;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#wpconsent-container::part(wpconsent-button-accept),
#wpconsent-container::part(wpconsent-preferences-accept-button),
#wpconsent-root::part(wpconsent-button-accept),
#wpconsent-root::part(wpconsent-preferences-accept-button) {
    background-color: #a81010;
    color: #ffffff;
    border: 1px solid #a81010;
    box-shadow: 0 4px 14px rgba(168, 16, 16, 0.35);
}

#wpconsent-container::part(wpconsent-button-accept):hover,
#wpconsent-container::part(wpconsent-preferences-accept-button):hover,
#wpconsent-root::part(wpconsent-button-accept):hover,
#wpconsent-root::part(wpconsent-preferences-accept-button):hover {
    background-color: #c41a1a;
    border-color: #c41a1a;
}

#wpconsent-container::part(wpconsent-button-cancel),
#wpconsent-container::part(wpconsent-preferences-cancel-button),
#wpconsent-root::part(wpconsent-button-cancel),
#wpconsent-root::part(wpconsent-preferences-cancel-button) {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

#wpconsent-container::part(wpconsent-button-cancel):hover,
#wpconsent-container::part(wpconsent-preferences-cancel-button):hover,
#wpconsent-root::part(wpconsent-button-cancel):hover,
#wpconsent-root::part(wpconsent-preferences-cancel-button):hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.4);
}

#wpconsent-container::part(wpconsent-button-preferences),
#wpconsent-container::part(wpconsent-preferences-save-button),
#wpconsent-root::part(wpconsent-button-preferences),
#wpconsent-root::part(wpconsent-preferences-save-button) {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

#wpconsent-container::part(wpconsent-button-preferences):hover,
#wpconsent-container::part(wpconsent-preferences-save-button):hover,
#wpconsent-root::part(wpconsent-button-preferences):hover,
#wpconsent-root::part(wpconsent-preferences-save-button):hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

#wpconsent-container::part(wpconsent-preferences-content),
#wpconsent-root::part(wpconsent-preferences-content) {
    font-family: Inter, system-ui, sans-serif;
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

#wpconsent-container::part(wpconsent-preferences-title),
#wpconsent-root::part(wpconsent-preferences-title) {
    color: #ffffff;
    font-weight: 600;
}

#wpconsent-container::part(wpconsent-settings-button),
#wpconsent-root::part(wpconsent-settings-button) {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
