/* Edit these variables in your theme to match your brand. */
:root {
    --ccc-ink: #1d2423;
    --ccc-accent: #e9c66b;
    --ccc-surface: #fbfcf8;
    --ccc-border: #c5d0ca;
    --ccc-muted: #637371;
    --ccc-radius: 4px;
}
.ccc-banner[hidden] { display: none !important; }
.ccc-banner, .ccc-dialog { color: var(--ccc-ink); font-family: inherit; box-sizing: border-box; }
.ccc-banner *, .ccc-dialog * { box-sizing: border-box; }
.ccc-banner {
    position: fixed; z-index: 999998; bottom: 18px; left: 50%; transform: translateX(-50%);
    width: min(960px, calc(100% - 32px)); display: flex; align-items: center; gap: 28px;
    padding: 24px 28px; background: var(--ccc-surface);
    border: 1px solid var(--ccc-border); border-radius: var(--ccc-radius);
    box-shadow: 0 12px 48px rgba(0, 0, 0, .18);
}
.ccc-banner__copy { flex: 1; min-width: 0; }
.ccc-banner__title { margin: 0 0 8px; color: var(--ccc-ink); font-size: 19px; line-height: 1.3; font-weight: 700; }
.ccc-banner p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--ccc-muted); }
.ccc-policy-link { color: var(--ccc-ink); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.ccc-banner__buttons { display: grid; grid-template-columns: repeat(2, minmax(115px, 1fr)); gap: 9px; flex: 0 0 260px; }
.ccc-banner__buttons .ccc-button:last-child { grid-column: 1 / -1; }
.ccc-button {
    min-height: 42px; padding: 10px 14px; border-radius: 4px; font: inherit;
    font-size: 13px; font-weight: 700; line-height: 1.3; cursor: pointer;
    transition: opacity .15s ease;
}
/* Keep theme-wide button hover styles from washing out consent controls. */
:is(.ccc-banner, .ccc-dialog) .ccc-button--primary:is(:hover, :focus-visible) {
    background: #f1d68f; border-color: #f1d68f; color: #152125; opacity: 1;
}
:is(.ccc-banner, .ccc-dialog) .ccc-button--secondary:is(:hover, :focus-visible) {
    background: #edf0eb; border-color: #a7b3b4; color: #29434a; opacity: 1;
}
.ccc-button:focus-visible, .ccc-reopen:focus-visible, .ccc-shortcode:focus-visible,
.ccc-dialog__close:focus-visible { outline: 3px solid #e9c66b; outline-offset: 3px; }
.ccc-button--primary { background: var(--ccc-accent); border: 1px solid var(--ccc-accent); color: var(--ccc-ink); }
.ccc-button--secondary { background: var(--ccc-surface); border: 1px solid var(--ccc-border); color: var(--ccc-ink); }
/* Floating control only. The original consent banner and preferences dialog are unchanged. */
#ccc-reopen.ccc-reopen {
    position: fixed; z-index: 999995; left: 16px; bottom: 16px;
    display: grid; place-items: center; box-sizing: border-box;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid #c5d0ca; border-radius: 4px;
    background: #fbfcf8; color: #1d2423;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .10); font: inherit;
    cursor: pointer;
}
#ccc-reopen.ccc-reopen i { display: block; width: 22px; height: 22px; }
#ccc-reopen.ccc-reopen:hover { background: #e9c66b; border-color: #e9c66b; color: #1d2423; }
html.ccc-banner-open #ccc-reopen.ccc-reopen { display: none; }
.ccc-status { padding: 12px; border: 1px solid #d6b569; border-radius: 4px; background: #fff8e6; color: #503d13; font-size: 14px; line-height: 1.5; }
.ccc-status[hidden] { display: none !important; }
.ccc-shortcode { border: 0; background: transparent; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.ccc-dialog {
    width: min(600px, calc(100% - 24px)); max-height: min(88vh, 850px); overflow: auto;
    border: 1px solid var(--ccc-border); border-radius: var(--ccc-radius);
    background: var(--ccc-surface); padding: 25px; box-shadow: 0 24px 80px rgba(0, 0, 0, .20);
}
.ccc-dialog::backdrop { background: rgba(21, 33, 37, .58); }
.ccc-dialog__header { display: flex; align-items: start; gap: 12px; justify-content: space-between; }
.ccc-dialog__header h2 { margin: 0; color: var(--ccc-ink); font-size: 22px; line-height: 1.3; }
.ccc-dialog .ccc-dialog__close {
    display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px;
    padding: 0; background: transparent; border: 0;
    border-radius: 50%; font-size: 20px; line-height: 1; color: var(--ccc-ink); cursor: pointer;
}
/* Match Mentorio's secondary buttons and search-dialog close control. */
.ccc-dialog .ccc-button[data-ccc-action="close"] {
    border-color: #29434a;
    color: #29434a; background: transparent;
}
.ccc-dialog [data-ccc-action="close"] {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.ccc-dialog [data-ccc-action="close"]:hover,
.ccc-dialog [data-ccc-action="close"]:focus-visible {
    border-color: #29434a;
    background: #29434a;
    color: var(--wp--preset--color--white, #fff); opacity: 1;
}
.ccc-dialog [data-ccc-action="close"]:focus-visible {
    outline: 3px solid #a57c22; outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .ccc-dialog [data-ccc-action="close"] { transition: none; }
}
.ccc-dialog__intro { color: var(--ccc-muted); font-size: 14px; line-height: 1.6; margin: 12px 0 20px; }
.ccc-choices { display: grid; margin-bottom: 16px; border-top: 1px solid var(--ccc-border); }
.ccc-choice { display: flex; gap: 15px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ccc-border); padding: 15px 0; cursor: pointer; }
.ccc-choice__copy { display: grid; gap: 5px; min-width: 0; }
.ccc-choice strong { color: var(--ccc-ink); font-size: 15px; }
.ccc-choice__copy > span { color: var(--ccc-muted); font-size: 13px; line-height: 1.45; }
.ccc-choice input { flex: 0 0 auto; width: 19px; height: 19px; accent-color: #29434a; cursor: pointer; }
.ccc-choice input:disabled { cursor: not-allowed; }
.ccc-dialog__buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.ccc-dialog__buttons .ccc-button { padding: 10px 12px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.ccc-dialog__buttons .ccc-button:only-child { grid-column: 1 / -1; }
@media (max-width: 700px) {
    .ccc-banner { display: block; bottom: 10px; width: calc(100% - 20px); padding: 18px; max-height: 85vh; overflow: auto; }
    .ccc-banner__buttons { margin-top: 15px; }
    .ccc-dialog { padding: 18px; }
    .ccc-dialog__buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ccc-dialog__buttons .ccc-button:last-child { grid-column: 1 / -1; }
}

/* Close (×) in the dialog header: small grey circle, the icon is an SVG centred exactly in it. */
.ccc-dialog .ccc-dialog__close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #edf0eb; color: #637371; font-size: 0; line-height: 0; }
.ccc-dialog .ccc-dialog__close i { display: block; width: 12px; height: 12px; }
.ccc-dialog .ccc-dialog__close:hover,
.ccc-dialog .ccc-dialog__close:focus-visible { border: 0; background: #c5d0ca; color: #152125; }

#ccc-reopen.ccc-reopen i { font-size: 22px; line-height: 1; }
.ccc-dialog .ccc-dialog__close i { font-size: 14px; line-height: 1; }
