/* Edit these variables in your theme to match your brand. */
:root {
    --ccc-ink: #082047;
    --ccc-accent: #082047;
    --ccc-surface: #ffffff;
    --ccc-border: #d8dfeb;
    --ccc-muted: #505f74;
    --ccc-radius: 14px;
}
.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: 7px; font: inherit;
    font-size: 13px; font-weight: 700; line-height: 1.3; cursor: pointer;
    transition: opacity .15s ease;
}
.ccc-button:hover { opacity: .84; }
.ccc-button:focus-visible, .ccc-reopen:focus-visible, .ccc-shortcode:focus-visible,
.ccc-dialog__close:focus-visible { outline: 3px solid #fcd000; outline-offset: 3px; }
.ccc-button--primary { background: var(--ccc-accent); border: 1px solid var(--ccc-accent); color: #fff; }
.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 #DCE3EF; border-radius: 9px;
    background: #FFFFFF; color: #082047;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .10); font: inherit;
    cursor: pointer;
}
#ccc-reopen.ccc-reopen svg { display: block; width: 22px; height: 22px; }
#ccc-reopen.ccc-reopen:hover { background: #FCD000; border-color: #FCD000; color: #082047; }
html.ccc-banner-open #ccc-reopen.ccc-reopen { display: none; }
.ccc-status { padding: 12px; border: 1px solid #d6b569; border-radius: 7px; 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(2, 15, 34, .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: var(--wp--preset--color--blue, #102e5c);
    color: var(--wp--preset--color--blue, #102e5c); 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: var(--wp--preset--color--blue, #102e5c);
    background: var(--wp--preset--color--blue, #102e5c);
    color: var(--wp--preset--color--white, #fff); opacity: 1;
}
.ccc-dialog [data-ccc-action="close"]:focus-visible {
    outline: 3px solid var(--wp--preset--color--light-blue, #3f6297); 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: var(--ccc-accent); 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: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: #EEF1F5; color: #536477; font-size: 0; line-height: 0; }
.ccc-dialog .ccc-dialog__close svg { display: block; width: 12px; height: 12px; }
.ccc-dialog .ccc-dialog__close:hover,
.ccc-dialog .ccc-dialog__close:focus-visible { border: 0; background: #DCE3EF; color: #0F1429; }
