:root {
    --mc-consent-ink: #17212b;
    --mc-consent-muted: #5c6672;
    --mc-consent-accent: #d94f4f;
    --mc-consent-accent-dark: #b83737;
    --mc-consent-surface: #ffffff;
    --mc-consent-border: #dfe4e8;
    --mc-consent-focus: #1769aa;
}

[hidden] { display: none !important; }
.mc-consent-locked { overflow: hidden !important; }

.mc-consent-banner,
.mc-consent-modal,
.mc-consent-reopen,
.mc-consent-status {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.mc-consent-banner {
    position: fixed;
    z-index: 2147483000;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px;
    color: var(--mc-consent-ink);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--mc-consent-border);
    border-radius: 18px;
    box-shadow: 0 20px 65px rgba(17, 28, 39, 0.22);
    backdrop-filter: blur(12px);
}

.mc-consent-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--mc-consent-accent-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mc-consent-banner h2,
.mc-consent-modal h2 {
    margin: 0 0 7px;
    color: var(--mc-consent-ink);
    font-size: 1.25rem;
    line-height: 1.2;
}

.mc-consent-banner p,
.mc-consent-modal p {
    margin: 0;
    color: var(--mc-consent-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.mc-consent-banner a {
    display: inline-block;
    margin-top: 8px;
    color: var(--mc-consent-ink);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mc-consent-banner__actions,
.mc-consent-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.mc-consent-banner__actions { justify-content: flex-end; }

.mc-consent-btn,
.mc-consent-close,
.mc-consent-reopen {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.mc-consent-btn {
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 750;
}

.mc-consent-btn--primary {
    color: #fff;
    background: var(--mc-consent-accent);
    border: 1px solid var(--mc-consent-accent);
}

.mc-consent-btn--primary:hover { background: var(--mc-consent-accent-dark); }

.mc-consent-btn--secondary {
    color: var(--mc-consent-ink);
    background: #fff;
    border: 1px solid #aeb8c2;
}

.mc-consent-btn--secondary:hover { background: #f1f4f6; }

.mc-consent-btn--text {
    color: var(--mc-consent-ink);
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mc-consent-modal {
    position: fixed;
    z-index: 2147483100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(12, 18, 24, 0.62);
}

.mc-consent-modal__panel {
    width: min(680px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    padding: 26px;
    color: var(--mc-consent-ink);
    background: var(--mc-consent-surface);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    outline: none;
}

.mc-consent-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.mc-consent-close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: var(--mc-consent-ink);
    background: #f1f4f6;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
}

.mc-consent-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 14px;
    padding: 16px;
    background: #f7f9fa;
    border: 1px solid var(--mc-consent-border);
    border-radius: 12px;
}

.mc-consent-category strong,
.mc-consent-category span { display: block; }
.mc-consent-category strong { margin-bottom: 4px; }
.mc-consent-category > div span { color: var(--mc-consent-muted); font-size: 0.84rem; line-height: 1.45; }

.mc-consent-switch {
    min-width: 116px;
    color: var(--mc-consent-ink);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.mc-consent-switch input {
    width: 20px;
    height: 20px;
    margin: 0 0 6px auto;
    accent-color: var(--mc-consent-accent);
}

.mc-consent-modal__actions {
    align-items: center;
    margin-top: 20px;
}

.mc-consent-reopen {
    position: fixed;
    z-index: 2147482900;
    left: 12px;
    bottom: 12px;
    min-height: 38px;
    padding: 8px 12px;
    color: #fff;
    background: #28333d;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
    font-size: 0.76rem;
    font-weight: 700;
}

.mc-consent-reopen:hover { background: #111820; }

.mc-consent-btn:focus-visible,
.mc-consent-close:focus-visible,
.mc-consent-reopen:focus-visible,
.mc-consent-banner a:focus-visible,
.mc-consent-switch input:focus-visible {
    outline: 3px solid var(--mc-consent-focus);
    outline-offset: 3px;
}

.mc-consent-status {
    position: fixed;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 760px) {
    .mc-consent-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .mc-consent-banner__actions { justify-content: stretch; }
    .mc-consent-banner__actions .mc-consent-btn { flex: 1 1 130px; }
    .mc-consent-modal { padding: 10px; }
    .mc-consent-modal__panel { max-height: calc(100vh - 20px); padding: 20px; }
    .mc-consent-category { grid-template-columns: 1fr; }
    .mc-consent-switch { min-width: 0; }
    .mc-consent-switch input { display: inline-block; margin: 0 8px 0 0; vertical-align: middle; }
    .mc-consent-switch span { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
    .mc-consent-banner,
    .mc-consent-modal__panel { scroll-behavior: auto; }
}

