/*
 * CookieConsent v3 buttons in the app's button style (.button.h-button.is-primary.is-raised.is-rounded):
 * brand colour, pill shape, the same hover. Loaded after the vendor cookieconsent.css.
 *
 * Accept and Reject both use the PRIMARY variables (equalWeightButtons in cookie-consent.js), so they stay
 * identical: rejecting must look as available as accepting. Do not give them different styles.
 * Settings and "Save preferences" use the secondary variables: same shape, outlined.
 */
#cc-main {
    --cc-btn-primary-bg: var(--brand-primary, #000072);
    --cc-btn-primary-color: #fff;
    --cc-btn-primary-border-color: var(--brand-primary, #000072);
    --cc-btn-primary-hover-bg: var(--brand-primary, #000072);
    --cc-btn-primary-hover-color: #fff;
    --cc-btn-primary-hover-border-color: var(--brand-primary, #000072);

    --cc-btn-secondary-bg: #fff;
    --cc-btn-secondary-color: var(--brand-primary, #000072);
    --cc-btn-secondary-border-color: var(--brand-primary, #000072);
    --cc-btn-secondary-hover-bg: #fff;
    --cc-btn-secondary-hover-color: var(--brand-primary, #000072);
    --cc-btn-secondary-hover-border-color: var(--brand-primary, #000072);
}

/*
 * The pill shape goes on the buttons only. Do not set --cc-btn-border-radius instead: the vendor CSS also reads it
 * for the Settings category blocks (.pm__section, .pm__section-title, .pm__section-desc-wrapper with overflow:hidden),
 * and a pill radius there clips the start and end of every description line.
 */
#cc-main .cm__btn,
#cc-main .pm__btn {
    border-radius: 290486px;
}

/* .pm__close-btn:hover reads the secondary hover variables, which now equal the resting ones: it gets this hover too. */
#cc-main .cm__btn:hover,
#cc-main .pm__btn:hover,
#cc-main .pm__close-btn:hover {
    opacity: .9;
    box-shadow: 0 14px 26px -12px rgb(47 87 163 / 42%), 0 4px 23px 0 rgb(0 0 0 / 12%), 0 8px 10px -5px rgb(47 87 163 / 20%);
}
