.ccw-root {
    position: fixed;
    right: var(--ccw-right);
    bottom: var(--ccw-bottom);
    z-index: 2147483000;
    font-family: inherit;
}

.ccw-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--ccw-color);
    color: var(--ccw-text);
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ccw-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,.22);
}

.ccw-icon {
    display: inline-flex;
    font-size: 23px;
    line-height: 1;
}

.ccw-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: min(var(--ccw-width), calc(100vw - 32px));
    height: var(--ccw-height);
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0,0,0,.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.98);
    transform-origin: bottom right;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.ccw-root.ccw-open .ccw-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ccw-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 10px 0 16px;
    background: var(--ccw-color);
    color: var(--ccw-text);
}

.ccw-title {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
}

.ccw-minimize,
.ccw-close {
    width: 34px;
    height: 34px;
    margin-left: 2px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
}

.ccw-minimize:hover,
.ccw-close:hover {
    background: rgba(255,255,255,.16);
}

.ccw-body {
    flex: 1 1 auto;
    min-height: 0;
    background: #fff;
}

.ccw-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 600px) {
    .ccw-root {
        right: var(--ccw-mobile-right);
        bottom: var(--ccw-mobile-bottom);
    }

    .ccw-panel {
        right: 0;
        bottom: calc(100% + 10px);
        width: min(100vw - 20px, 430px);
        height: var(--ccw-mobile-height);
        max-height: calc(100vh - 90px);
        border-radius: 14px;
    }

    .ccw-toggle {
        min-height: 52px;
        padding: 0 16px;
    }
}

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

.ccw-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}
