.ccm-modal-open {
    overflow: hidden;
}

.ccm-banner[hidden],
.ccm-modal[hidden] {
    display: none !important;
}

.ccm-banner,
.ccm-modal {
    font-family: 'Montserrat', Arial, sans-serif;
}

.ccm-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100000;
    width: min(560px, calc(100vw - 24px));
    padding: 22px;
    border: 1px solid rgba(16, 31, 61, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff8ee 0%, #ffffff 100%);
    box-shadow: 0 22px 70px rgba(18, 31, 58, 0.24);
    color: #1b2940;
}

.ccm-banner__eyebrow,
.ccm-modal__eyebrow {
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b36d1f;
}

.ccm-banner__brand,
.ccm-modal__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ccm-brand__logo {
    width: 72px;
    height: auto;
    flex: 0 0 auto;
}

.ccm-brand__logo--modal {
    width: 84px;
}

.ccm-banner__title,
.ccm-modal__title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.2;
    color: #16243b;
}

.ccm-banner__text {
    margin: 10px 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5872;
}

.ccm-modal__subtitle {
    margin: 6px 0 0;
    color: #5a6781;
    line-height: 1.5;
}

.ccm-banner__actions,
.ccm-embed-placeholder__actions,
.ccm-modal__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ccm-banner__actions {
    margin-top: 18px;
}

.ccm-button,
.ccm-embed-placeholder__button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 11px 16px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.ccm-button:hover,
.ccm-embed-placeholder__button:hover {
    transform: translateY(-1px);
}

.ccm-button--primary,
.ccm-embed-placeholder__button--primary {
    background: #d97706;
    color: #fff;
}

.ccm-button--secondary {
    background: #1f3d7a;
    color: #fff;
}

.ccm-button--ghost,
.ccm-embed-placeholder__button {
    border-color: rgba(22, 36, 59, 0.14);
    background: #fff;
    color: #1b2940;
}

.ccm-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: grid;
    place-items: center;
    padding: 20px;
}

.ccm-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(7, 15, 27, 0.56);
    backdrop-filter: blur(6px);
}

.ccm-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, calc(100vw - 24px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    box-shadow: 0 24px 80px rgba(10, 18, 30, 0.32);
}

.ccm-modal__header,
.ccm-modal__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
}

.ccm-modal__header {
    border-bottom: 1px solid rgba(23, 35, 59, 0.1);
}

.ccm-modal__body {
    display: grid;
    gap: 14px;
    padding: 22px 24px;
}

.ccm-modal__note {
    margin: 2px 0 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: #5a6781;
}

.ccm-modal__note a {
    color: #b36d1f;
    font-weight: 700;
    text-decoration: underline;
}

.ccm-modal__footer {
    border-top: 1px solid rgba(23, 35, 59, 0.1);
}

.ccm-modal__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #39465f;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.ccm-category {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(25, 40, 63, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

.ccm-category--locked {
    align-items: center;
}

.ccm-category__meta h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #15233b;
}

.ccm-category__meta p {
    margin: 0;
    color: #4c5870;
    line-height: 1.55;
}

.ccm-category__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e6f4ea;
    color: #1f6f3d;
    font-weight: 700;
    white-space: nowrap;
}

.ccm-toggle {
    position: relative;
    display: inline-flex;
    width: 54px;
    height: 32px;
    flex: 0 0 auto;
}

.ccm-toggle input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.ccm-toggle__slider {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #c9d1e3;
    transition: background 0.16s ease;
}

.ccm-toggle__slider::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
    transition: transform 0.16s ease;
}

.ccm-toggle input:checked + .ccm-toggle__slider {
    background: #d97706;
}

.ccm-toggle input:checked + .ccm-toggle__slider::after {
    transform: translateX(22px);
}

.ccm-embed-placeholder {
    display: grid;
    gap: 12px;
    place-items: center;
    min-height: 220px;
    padding: 24px;
    border: 1px dashed rgba(21, 35, 59, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, #fffaf3 0%, #fff 100%);
    text-align: center;
    color: #25324b;
}

.ccm-embed-placeholder__title {
    font-size: 1.05rem;
    font-weight: 700;
}

.ccm-embed-placeholder__text {
    max-width: 560px;
    line-height: 1.6;
    color: #53627d;
}

@media (max-width: 700px) {
    .ccm-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        padding: 18px;
    }

    .ccm-category,
    .ccm-modal__header,
    .ccm-modal__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .ccm-banner__brand,
    .ccm-modal__brand {
        align-items: flex-start;
    }

    .ccm-brand__logo {
        width: 58px;
    }

    .ccm-category--locked {
        align-items: stretch;
    }
}