.dta-ccw-root,
.dta-ccw-root * {
    box-sizing: border-box;
}

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

.dta-ccw-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: min(var(--dta-ccw-width), calc(100vw - 32px));
    height: min(var(--dta-ccw-height), calc(100vh - 110px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: var(--dta-ccw-radius);
    background: var(--dta-ccw-surface);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.975);
    transform-origin: bottom right;
    pointer-events: none;
    transition:
        opacity .2s ease,
        transform .24s cubic-bezier(.2,.8,.2,1),
        visibility .2s ease;
}

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

.dta-ccw-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 9px 10px 9px 15px;
    background: var(--dta-ccw-primary);
    color: var(--dta-ccw-primary-text);
}

.dta-ccw-header-icon,
.dta-ccw-launcher-icon,
.dta-ccw-shortcode-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dta-ccw-header-icon svg,
.dta-ccw-launcher-icon svg,
.dta-ccw-shortcode-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.dta-ccw-heading {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dta-ccw-heading strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.dta-ccw-heading span {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.25;
    opacity: .82;
}

.dta-ccw-header-btn {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background .16s ease;
}

.dta-ccw-header-btn:hover,
.dta-ccw-header-btn:focus-visible {
    background: rgba(255,255,255,.16);
    outline: none;
}

.dta-ccw-header-btn svg {
    width: 20px;
    height: 20px;
}

.dta-ccw-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: var(--dta-ccw-surface);
}

.dta-ccw-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--dta-ccw-surface);
}

.dta-ccw-loading,
.dta-ccw-error {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    text-align: center;
    background: var(--dta-ccw-surface);
    color: #334155;
}

.dta-ccw-loading[hidden],
.dta-ccw-error[hidden] {
    display: none !important;
}

.dta-ccw-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(15, 23, 42, .14);
    border-top-color: var(--dta-ccw-primary);
    border-radius: 50%;
    animation: dta-ccw-spin .8s linear infinite;
}

@keyframes dta-ccw-spin {
    to { transform: rotate(360deg); }
}

.dta-ccw-error strong {
    color: #0f172a;
    font-size: 15px;
}

.dta-ccw-error span {
    font-size: 13px;
}

.dta-ccw-error button {
    margin-top: 3px;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--dta-ccw-primary);
    color: var(--dta-ccw-primary-text);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.dta-ccw-launcher {
    position: relative;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 19px;
    border: 0;
    border-radius: 999px;
    background: var(--dta-ccw-primary);
    color: var(--dta-ccw-primary-text);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .22);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.dta-ccw-launcher:hover,
.dta-ccw-launcher:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(15, 23, 42, .27);
    outline: none;
}

.dta-ccw-launcher:focus-visible,
.dta-ccw-shortcode-launcher:focus-visible,
.dta-ccw-error button:focus-visible,
.dta-ccw-welcome-close:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .35);
    outline-offset: 3px;
}

.dta-ccw-attention,
.dta-ccw-shortcode-dot {
    position: absolute;
    top: 1px;
    right: 2px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #dc2626;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .16s ease, transform .16s ease;
}

.dta-ccw-root.dta-ccw-has-attention .dta-ccw-attention,
.dta-ccw-shortcode-launcher.dta-ccw-has-attention .dta-ccw-shortcode-dot {
    opacity: 1;
    transform: scale(1);
}

.dta-ccw-welcome {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: min(300px, calc(100vw - 32px));
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 13px 42px 13px 15px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: #fff;
    color: #172033;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .17);
    cursor: pointer;
    font-size: 13px;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .18s ease, transform .18s ease;
}

.dta-ccw-welcome.dta-ccw-welcome-visible {
    opacity: 1;
    transform: translateY(0);
}

.dta-ccw-welcome-close {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.dta-ccw-welcome-close:hover {
    background: #f1f5f9;
}

.dta-ccw-shortcode-launcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 0;
    border-radius: 999px;
    background: var(--dta-ccw-primary, #1f6feb);
    color: var(--dta-ccw-primary-text, #fff);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.dta-ccw-shortcode-dot {
    top: -1px;
    right: -1px;
}

html.dta-ccw-scroll-lock,
body.dta-ccw-scroll-lock {
    overflow: hidden !important;
}

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

    .dta-ccw-panel {
        width: min(100vw - 16px, 430px);
        height: var(--dta-ccw-mobile-height);
        max-height: calc(100dvh - 82px);
        bottom: 68px;
    }

    .dta-ccw-root.dta-ccw-mobile-fullscreen .dta-ccw-panel {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
        transform-origin: bottom center;
    }

    .dta-ccw-root.dta-ccw-mobile-fullscreen.dta-ccw-open .dta-ccw-launcher,
    .dta-ccw-root.dta-ccw-mobile-fullscreen.dta-ccw-open .dta-ccw-welcome {
        visibility: hidden;
    }

    .dta-ccw-header {
        padding-top: max(9px, env(safe-area-inset-top));
    }

    .dta-ccw-body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .dta-ccw-launcher {
        min-height: 54px;
        padding: 0 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dta-ccw-panel,
    .dta-ccw-launcher,
    .dta-ccw-welcome,
    .dta-ccw-attention,
    .dta-ccw-shortcode-dot {
        transition: none !important;
    }

    .dta-ccw-spinner {
        animation-duration: 1.4s;
    }
}
