.cc-chat {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 60;
    font-family: Montserrat, sans-serif;
    color: #262626;
}
.cc-chat [hidden] { display: none !important; }
.cc-chat button, .cc-chat a { -webkit-tap-highlight-color: transparent; }
.cc-chat button:focus-visible, .cc-chat a:focus-visible { outline: 2px solid #64748b; outline-offset: 4px; }
.cc-chat__launcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-left: auto;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid #171717;
    border-radius: 14px;
    background: #171717;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 3px 12px #00000014;
    transition: background-color .15s ease, border-color .15s ease;
}
.cc-chat__launcher:hover, .cc-chat__launcher[aria-expanded='true'] { background: #334155; border-color: #334155; }
.cc-chat__launcher .fa-whatsapp { font-size: 21px; }
.cc-chat__panel {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: 344px;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #dbe2e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 32px #0f172a14, 0 2px 6px #0f172a08;
}
/* A moving SVG stroke follows the actual rounded edge at any panel size. */
.cc-chat__border-light { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.cc-chat__border-light rect {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    fill: none;
    stroke: #a9bdc9;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 110 890;
    filter: drop-shadow(0 0 1px #b8d0dd66);
    animation: cc-chat-border-light 8s linear infinite;
}
.cc-chat__border-light .cc-chat__light-core {
    stroke: #e4eef2;
    stroke-width: 1;
    stroke-dasharray: 38 962;
}
@keyframes cc-chat-border-light {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -1000; }
}
.cc-chat__header { position: relative; padding: 24px 28px; }
.cc-chat__header::after { content: ''; position: absolute; bottom: 0; left: 28px; right: 28px; height: 1px; background: #e9e9e9; }
.cc-chat__logo { width: 128px; height: auto; display: block; }
.cc-chat__close {
    position: absolute;
    top: 23px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #737373;
    cursor: pointer;
}
.cc-chat__close:hover { color: #000; background: #f5f5f5; }
.cc-chat__body { padding: 26px 28px 24px; }
.cc-chat .cc-chat__title { margin: 0 !important; color: #171717; font-size: 20px !important; line-height: 1.4; font-weight: 600; letter-spacing: -.3px; }
.cc-chat__intro { margin: 10px 0 24px; font-size: 13px; line-height: 1.8; color: #525252; }
.cc-chat__action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 15px 18px;
    min-height: 52px;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s ease;
}
.cc-chat__action:hover { background: #475569; }
.cc-chat__action .fa-whatsapp { font-size: 20px; }
.cc-chat__action svg { margin-left: auto; flex-shrink: 0; }
.cc-chat__note { margin: 12px 0 0; text-align: center; font-size: 10px; line-height: 1.7; color: #737373; }
@media (max-width: 480px) {
    .cc-chat { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    .cc-chat__border-light { display: none; }
    .cc-chat__launcher, .cc-chat__action { transition: none; }
}
@media print { .cc-chat { display: none; } }
