.cc-root {
    position: fixed;
    top: 150px;
    right: 16px;
    z-index: 1080;
    max-width: calc(100vw - 24px);
}

.cc-launcher {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 49px;
    padding: 5px 14px 5px 6px;
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    color: #fff !important;
    border: 2px solid #eab308;
    border-radius: 999px;
    box-shadow: 0 5px 19px rgba(127, 29, 29, .28);
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    transition: transform .16s ease, box-shadow .16s ease;
}

.cc-launcher:hover,
.cc-launcher:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 7px 24px rgba(127, 29, 29, .38);
}

.cc-launcher-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    color: #fde68a;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 21px;
    animation: cc-initial-glow 1.1s ease-in-out 3;
}

.cc-launcher-label { white-space: nowrap; }

@keyframes cc-initial-glow {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.12); filter: brightness(1.45); }
}

.cc-teaser {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(325px, calc(100vw - 24px));
    padding: 18px;
    border: 1px solid #f0d38a;
    border-radius: 16px;
    background: #fffdf7;
    color: #334155;
    box-shadow: 0 14px 35px rgba(31, 41, 55, .22);
}

.cc-teaser[hidden] { display: none !important; }

.cc-teaser-title {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-right: 25px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    color: #991b1b;
}

.cc-teaser-title i { color: #d97706; }
.cc-teaser p { margin: 8px 0 14px; font-size: 13px; line-height: 1.5; }

.cc-teaser-close {
    position: absolute;
    right: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fef2f2;
    color: #991b1b;
    cursor: pointer;
}

.cc-teaser-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 9px;
    background: #b91c1c;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
}

.cc-teaser-link:hover { background: #991b1b; }

.cc-dialog {
    width: min(1040px, 96vw);
    height: min(900px, 92dvh);
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
}

.cc-dialog:not([open]) { display: none; }
.cc-dialog[open] { display: flex; flex-direction: column; }
.cc-dialog::backdrop { background: rgba(15, 23, 42, .72); }

.cc-dialog-head {
    flex: 0 0 auto;
    min-height: 60px;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.cc-dialog-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #991b1b;
}

.cc-dialog-head h2 i { margin-right: 6px; color: #d97706; }
.cc-dialog-actions { display: flex; align-items: center; gap: 12px; }
.cc-dialog-actions a { font-size: 12px; font-weight: 700; white-space: nowrap; }

.cc-dialog-actions button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    cursor: pointer;
}

.cc-frame { flex: 1 1 auto; width: 100%; min-height: 0; border: none; }

@media (max-width: 767.98px) {
    .cc-root { right: 10px; }
    .cc-launcher {
        width: 52px;
        height: 52px;
        min-height: 52px;
        padding: 5px;
        justify-content: center;
    }
    .cc-launcher-icon { width: 37px; height: 37px; flex-basis: 37px; }
    .cc-launcher-label { display: none; }
    .cc-teaser { width: min(290px, calc(100vw - 20px)); padding: 15px; }
    .cc-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-launcher-icon { animation: none; }
    .cc-launcher { transition: none; }
}
