#mo-cc-banner,
#mo-cc-modal {
    font-family: 'Inter', system-ui, sans-serif;
}

#mo-cc-banner[hidden],
#mo-cc-modal[hidden] {
    display: none;
}

.mo-cc-shell {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
}

.mo-cc-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(56, 77, 169, 0.14), transparent 32%),
        rgba(17, 24, 39, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mo-cc-box,
.mo-cc-modal-box {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(248, 250, 252, 0.995) 100%);
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.mo-cc-box::before,
.mo-cc-modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.75rem;
    width: 4.5rem;
    height: 3px;
    background: #384DA9;
    border-radius: 999px;
}

.mo-cc-box {
    max-width: 30rem;
    border-radius: 1.75rem;
    padding: 2rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    animation: moCcSlide 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes moCcSlide {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mo-cc-title {
    color: #111518;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mo-cc-desc,
.mo-cc-modal-intro,
.mo-cc-category p {
    color: #6B7280;
    line-height: 1.65;
}

.mo-cc-desc {
    font-size: 0.9rem;
    margin: 0;
}

.mo-cc-desc a {
    color: #384DA9;
    font-weight: 700;
    text-decoration: none;
}

.mo-cc-desc a:hover {
    text-decoration: underline;
}

.mo-cc-btn {
    width: 100%;
    min-height: 3.2rem;
    padding: 0 1.25rem;
    border-radius: 1rem;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mo-cc-btn:hover {
    transform: translateY(-1px);
}

.mo-cc-btn--primary {
    background: #384DA9;
    color: #fff;
    border: 1px solid #384DA9;
    box-shadow: 0 18px 32px rgba(56, 77, 169, 0.18);
}

.mo-cc-btn--primary:hover {
    background: #2f4191;
    border-color: #2f4191;
}

.mo-cc-btn--outline {
    background: #fff;
    color: #111518;
    border: 1px solid #D1D5DB;
}

.mo-cc-btn--outline:hover {
    border-color: #384DA9;
    color: #384DA9;
}

.mo-cc-link {
    appearance: none;
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.1rem 0;
}

.mo-cc-link:hover {
    color: #384DA9;
}

.mo-cc-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.mo-cc-modal-open {
    overflow: hidden;
}

.mo-cc-modal-box {
    max-width: 34rem;
    max-height: 90vh;
    border-radius: 1.75rem;
    overflow-y: auto;
}

.mo-cc-modal-head,
.mo-cc-modal-foot {
    padding: 1.25rem 1.5rem;
}

.mo-cc-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.mo-cc-modal-title {
    color: #111518;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.mo-cc-modal-close {
    appearance: none;
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.mo-cc-modal-close:hover {
    color: #384DA9;
}

.mo-cc-modal-body {
    padding: 1rem 1.5rem;
}

.mo-cc-modal-intro {
    margin: 0 0 0.45rem;
    font-size: 0.88rem;
}

.mo-cc-category {
    padding: 1rem 0;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.mo-cc-category:first-of-type {
    border-top: none;
    padding-top: 0.25rem;
}

.mo-cc-category-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.mo-cc-category strong {
    display: block;
    color: #111518;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.mo-cc-category p {
    margin: 0;
    font-size: 0.82rem;
}

.mo-cc-always-on {
    flex-shrink: 0;
    color: #384DA9;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mo-cc-toggle {
    position: relative;
    display: inline-block;
    width: 2.75rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.mo-cc-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mo-cc-slider {
    position: absolute;
    inset: 0;
    background: #D1D5DB;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mo-cc-slider::before {
    content: '';
    position: absolute;
    width: 1.1rem;
    height: 1.1rem;
    top: 0.2rem;
    left: 0.2rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease;
}

.mo-cc-toggle input:checked + .mo-cc-slider {
    background: #384DA9;
}

.mo-cc-toggle input:checked + .mo-cc-slider::before {
    transform: translateX(1.25rem);
}

.mo-cc-modal-foot {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

@media (max-width: 640px) {
    .mo-cc-shell {
        padding: 0;
        align-items: flex-end;
    }

    .mo-cc-box {
        max-width: 100%;
        border-radius: 1.5rem 1.5rem 0 0;
        padding: 1.75rem 1.25rem 1.2rem;
    }

    .mo-cc-modal-box {
        max-width: 100%;
        border-radius: 1.5rem;
    }

    .mo-cc-box::before,
    .mo-cc-modal-box::before {
        left: 1.25rem;
    }
}
