#lcw-root {
    --lcw-accent: #ec6f3f;
    all: initial;
}

#lcw-root * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.lcw-launcher {
    position: fixed;
    bottom: 20px;
    z-index: 999999;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--lcw-accent) center/cover no-repeat;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1), transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), border-radius 0.25s ease;
    border: none;
    padding: 0;
}

.lcw-launcher.lcw-pos-right { right: 20px; }
.lcw-launcher.lcw-pos-left { left: 20px; }

.lcw-launcher.lcw-visible {
    opacity: 1;
    transform: scale(1);
}

.lcw-launcher svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

.lcw-launcher .lcw-launcher-icon-open,
.lcw-launcher .lcw-launcher-icon-close {
    display: none;
}

.lcw-launcher.lcw-no-avatar:not(.lcw-open) .lcw-launcher-icon-open { display: block; }
.lcw-launcher.lcw-open .lcw-launcher-icon-close { display: block; }

.lcw-launcher.lcw-open {
    background-image: none !important;
    background-color: var(--lcw-accent);
}

.lcw-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #e53170;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.lcw-launcher.lcw-open .lcw-badge { display: none; }

.lcw-teaser {
    position: fixed;
    bottom: 20px;
    z-index: 999998;
    background: var(--lcw-accent);
    color: #fff;
    padding: 18px 40px 18px 22px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    cursor: pointer;
    white-space: nowrap;
}

.lcw-teaser.lcw-pos-right { right: 44px; }
.lcw-teaser.lcw-pos-left { left: 44px; }

.lcw-teaser.lcw-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lcw-teaser-close {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    flex-shrink: 0;
}

.lcw-panel {
    position: fixed;
    top: 20px;
    bottom: 96px;
    z-index: 999999;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: transparent;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.92) translateY(12px);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.23, 1, 0.32, 1), transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Backdrop is a SIBLING of the panel (not a child) so it can sit flush to
   the viewport edge/top/bottom on its own, without the panel's own
   interactive hit-box growing to cover that area — a full-height panel with
   pointer-events:auto used to sit on top of (and block clicks on) the
   launcher button while open. Purely decorative, never intercepts clicks. */
.lcw-panel-bg {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 999998;
    width: 400px;
    max-width: 100vw;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.lcw-panel-bg.lcw-pos-right {
    right: 0;
    left: auto;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}

.lcw-panel-bg.lcw-pos-left {
    left: 0;
    right: auto;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}

.lcw-panel-bg.lcw-open {
    opacity: 1;
    pointer-events: auto;
}

.lcw-panel.lcw-pos-right { right: 20px; transform-origin: bottom right; }
.lcw-panel.lcw-pos-left { left: 20px; transform-origin: bottom left; }

.lcw-panel.lcw-open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.lcw-restart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--lcw-accent);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: filter 0.15s ease;
}

.lcw-restart:hover { filter: brightness(1.06); }

.lcw-restart svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

.lcw-messages {
    flex: 1;
    overflow-y: auto;
    padding: 42px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lcw-messages > :first-child {
    margin-top: auto;
}

.lcw-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: lcw-rise 0.28s cubic-bezier(0.23, 1, 0.32, 1);
}

.lcw-row.lcw-row-user {
    justify-content: flex-end;
}

@keyframes lcw-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.lcw-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--lcw-accent) center/cover no-repeat;
    flex-shrink: 0;
}

.lcw-bubble {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 18px;
    background: #fff;
    color: #222;
    font-size: 13.5px;
    line-height: 1.45;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.lcw-row-bot .lcw-bubble {
    border-top-left-radius: 6px;
}

.lcw-row-user .lcw-bubble {
    background: #fff;
    color: #222;
}

.lcw-privacy-link {
    color: var(--lcw-accent, #ec6f3f);
    text-decoration: underline;
}

.lcw-edit-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: transform 0.15s ease;
}

.lcw-edit-btn:hover { transform: scale(1.08); }

.lcw-edit-btn svg {
    width: 13px;
    height: 13px;
    stroke: var(--lcw-accent);
    fill: none;
    stroke-width: 2;
}

.lcw-typing .lcw-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
}

.lcw-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
    animation: lcw-blink 1.2s infinite ease-in-out;
}

.lcw-typing span:nth-child(2) { animation-delay: 0.15s; }
.lcw-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes lcw-blink {
    0%, 80%, 100% { opacity: 0.25; }
    40% { opacity: 1; }
}

.lcw-replies {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 34px;
}

.lcw-reply-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 13.5px;
    color: #222;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.lcw-reply-btn:hover {
    border-color: var(--lcw-accent);
    background: color-mix(in srgb, var(--lcw-accent) 6%, #fff);
}

.lcw-reply-selected {
    border-color: var(--lcw-accent);
    border-width: 2px;
    font-weight: 600;
}

.lcw-reply-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #cfcfcf;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
}

.lcw-reply-selected .lcw-reply-dot {
    border-color: var(--lcw-accent);
    background: var(--lcw-accent);
}

.lcw-reply-dimmed {
    opacity: 0.4;
}

.lcw-booking-cta-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: var(--lcw-accent);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--lcw-accent) 40%, transparent);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    line-height: 1.4;
}

.lcw-booking-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--lcw-accent) 50%, transparent);
    filter: brightness(1.06);
    color: #fff;
    text-decoration: none;
}

.lcw-booking-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--lcw-accent) 30%, transparent);
}

.lcw-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}

.lcw-input-bar.lcw-shake {
    animation: lcw-shake 0.4s ease;
}

@keyframes lcw-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.lcw-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.lcw-input-wrap svg {
    position: absolute;
    left: 14px;
    width: 15px;
    height: 15px;
    stroke: #aaa;
    fill: none;
    stroke-width: 2;
    pointer-events: none;
}

.lcw-input-bar input {
    width: 100%;
    min-width: 0;
    padding: 10px 14px 10px 38px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 13.5px;
    color: #222;
    background: #fff;
}

.lcw-input-bar input:focus {
    outline: none;
    border-color: var(--lcw-accent);
}

.lcw-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--lcw-accent);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: filter 0.15s ease;
}

.lcw-send-btn:hover { filter: brightness(1.06); }

.lcw-send-btn svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    margin-left: -1px;
}

.lcw-input-error {
    display: none;
    margin: -4px 14px 10px;
    padding: 5px 12px;
    font-size: 12px;
    color: #d23838;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    width: fit-content;
}

.lcw-input-error.lcw-visible { display: block; }

.lcw-skip-btn {
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    color: #777;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.lcw-footer {
    text-align: center;
    margin: 4px auto 0;
    padding: 4px 12px;
    font-size: 11px;
    color: #999;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    width: fit-content;
}

.lcw-footer a {
    color: inherit;
}

@media (max-width: 480px) {
    .lcw-panel {
        width: calc(100vw - 20px);
        top: 12px;
        bottom: 88px;
    }
    .lcw-panel.lcw-pos-right { right: 10px; }
    .lcw-panel.lcw-pos-left { left: 10px; }
    .lcw-launcher.lcw-pos-right { right: 12px; }
    .lcw-launcher.lcw-pos-left { left: 12px; }
    .lcw-teaser.lcw-pos-right { right: 84px; }
    .lcw-teaser.lcw-pos-left { left: 84px; }
}
