:root {
    --zcc-ink: #0f172a;
    --zcc-muted: #64748b;
    --zcc-line: #dbe3ee;
    --zcc-soft: #f8fafc;
    --zcc-blue: #2563eb;
    --zcc-white: #ffffff;
}

.zcc-shell,
.zcc-shell * {
    box-sizing: border-box;
}

.zcc-shell {
    position: relative;
    z-index: 2147482000;
    font-family: inherit;
}

.zcc-banner {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 2147482100;
    width: min(520px, calc(100vw - 44px));
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 16px;
    background: var(--zcc-white);
    color: var(--zcc-ink);
    box-shadow: 0 22px 70px rgba(15, 23, 42, .18);
}

.zcc-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--zcc-blue);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .14em;
}

.zcc-banner h2,
.zcc-panel h2 {
    margin: 0;
    color: var(--zcc-ink);
    font-size: 20px;
    font-weight: 760;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.zcc-banner-copy p {
    margin: 11px 0 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.62;
}

.zcc-inline-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--zcc-ink);
    font-size: 11px;
    font-weight: 760;
    text-underline-offset: 3px;
}

.zcc-banner-actions {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 8px;
    margin-top: 17px;
}

.zcc-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 9px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.zcc-button-light {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
}

.zcc-button-outline {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
}

.zcc-button-primary {
    border: 1px solid #0f172a;
    background: #0f172a;
    color: #fff;
}

.zcc-button:hover,
.zcc-button:focus-visible {
    outline: none;
}

.zcc-button-light:hover,
.zcc-button-light:focus-visible,
.zcc-button-outline:hover,
.zcc-button-outline:focus-visible {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.zcc-button-primary:hover,
.zcc-button-primary:focus-visible {
    border-color: var(--zcc-blue);
    background: var(--zcc-blue);
}

.zcc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147482190;
    background: rgba(15, 23, 42, .27);
    backdrop-filter: blur(2px);
}

.zcc-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2147482200;
    display: flex;
    flex-direction: column;
    width: min(590px, calc(100vw - 46px));
    max-height: 100vh;
    border-right: 1px solid rgba(15, 23, 42, .12);
    border-radius: 0 18px 18px 0;
    background: #fff;
    color: var(--zcc-ink);
    box-shadow: 22px 0 70px rgba(15, 23, 42, .18);
    overflow: hidden;
    transform: translateX(-101%);
    transition: transform .22s ease;
}

.zcc-panel.zcc-visible {
    transform: translateX(0);
}

.zcc-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 23px 24px 18px;
    border-bottom: 1px solid #e8eef5;
}

.zcc-close {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
}

.zcc-close:hover,
.zcc-close:focus-visible {
    background: #eef2f7;
    color: #0f172a;
    outline: none;
}

.zcc-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.zcc-panel-scroll {
    flex: 1;
    overflow: auto;
    padding: 21px 24px 12px;
}

.zcc-panel-intro {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.65;
}

.zcc-category-list {
    margin-top: 21px;
}

.zcc-category {
    padding: 17px 0;
    border-top: 1px solid #e8eef5;
}

.zcc-category:first-child {
    border-top: 0;
}

.zcc-category-copy h3 {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 820;
    line-height: 1.25;
}

.zcc-category-copy p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 11.5px;
    line-height: 1.58;
}

.zcc-required {
    display: inline-flex;
    margin-top: 11px;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 850;
}

.zcc-choice {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    min-width: 240px;
    margin-top: 11px;
    padding: 3px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #f8fafc;
}

.zcc-choice button {
    appearance: none;
    -webkit-appearance: none;
    min-height: 31px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.zcc-choice button.zcc-selected {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .10);
}

.zcc-choice button[data-zcc-value="1"].zcc-selected {
    background: #0f172a;
    color: #fff;
}

.zcc-panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 24px 22px;
    border-top: 1px solid #e8eef5;
    background: #fff;
}

.zcc-reopen {
    appearance: none;
    -webkit-appearance: none;
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 2147482050;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 35px;
    padding: 0 11px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: #475569;
    box-shadow: 0 7px 24px rgba(15, 23, 42, .10);
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.zcc-reopen:hover,
.zcc-reopen:focus-visible {
    border-color: #94a3b8;
    color: #0f172a;
    outline: none;
}

.zcc-reopen svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.zcc-shortcode-link {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

body.zcc-panel-open {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

@media (max-width: 680px) {
    .zcc-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        padding: 18px;
        border-radius: 14px;
    }

    .zcc-banner h2,
    .zcc-panel h2 {
        font-size: 18px;
    }

    .zcc-banner-actions {
        grid-template-columns: 1fr;
    }

    .zcc-panel {
        width: 100%;
        border-right: 0;
        border-radius: 0;
    }

    .zcc-panel-head {
        padding: 19px 18px 15px;
    }

    .zcc-panel-scroll {
        padding: 18px 18px 10px;
    }

    .zcc-panel-actions {
        padding: 12px 18px 18px;
    }

    .zcc-choice {
        width: 100%;
        min-width: 0;
    }

    .zcc-reopen {
        left: 12px;
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zcc-panel,
    .zcc-button {
        transition: none;
    }
}
