#retell-chat-widget-container {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#retell-chat-widget-container.retell-pos-bottom-right { bottom: 25px; right: 25px; }
#retell-chat-widget-container.retell-pos-bottom-right #retell-chat-box { bottom: 80px; right: 0; }

#retell-chat-widget-container.retell-pos-bottom-left { bottom: 25px; left: 25px; }
#retell-chat-widget-container.retell-pos-bottom-left #retell-chat-box { bottom: 80px; left: 0; }

#retell-chat-widget-container.retell-pos-top-right { top: 25px; right: 25px; }
#retell-chat-widget-container.retell-pos-top-right #retell-chat-box { top: 80px; right: 0; }

#retell-chat-widget-container.retell-pos-top-left { top: 25px; left: 25px; }
#retell-chat-widget-container.retell-pos-top-left #retell-chat-box { top: 80px; left: 0; }

.retell-trigger-wrap {
    position: relative;
    display: inline-block;
}

.retell-trigger-tooltip {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(38, 18, 66, 0.97), rgba(18, 10, 36, 0.97));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 16px rgba(168, 85, 247, 0.3);
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    animation: retell-tooltip-float 3s ease-in-out infinite;
    z-index: 2;
}

.retell-trigger-tooltip::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    margin-top: -9px;
    background: linear-gradient(135deg, rgba(38, 18, 66, 0.97), rgba(18, 10, 36, 0.97));
    border-right: 1px solid rgba(168, 85, 247, 0.4);
    border-bottom: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 0 0 5px 0;
    transform: rotate(45deg);
    clip-path: polygon(0% 0%, 100% 100%, 0% 100%);
    z-index: -1;
}

@keyframes retell-tooltip-float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-4px); }
}

#retell-chat-widget-container.retell-pos-top-right .retell-trigger-tooltip,
#retell-chat-widget-container.retell-pos-top-left .retell-trigger-tooltip {
    bottom: auto;
    top: calc(100% + 16px);
}

#retell-chat-widget-container.retell-pos-top-right .retell-trigger-tooltip::before,
#retell-chat-widget-container.retell-pos-top-left .retell-trigger-tooltip::before {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: -9px;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid rgba(168, 85, 247, 0.4);
    border-left: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 5px 0 0 0;
    clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
}

#retell-chat-widget-container.retell-chat-open .retell-trigger-tooltip {
    display: none;
}

#retell-chat-trigger {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at 30% 30%, #ec008c, #6b11ff, #11002c);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    padding: 0;
    overflow: hidden;
}

#retell-chat-trigger:hover {
    transform: scale(1.08);
}

#retell-chat-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.retell-default-b-logo {
    color: #ffffff;
    font-weight: 800;
    font-size: 28px;
}

#retell-chat-box {
    position: absolute;
    width: 380px;
    height: 560px;
    background: rgba(18, 10, 36, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#retell-chat-box.retell-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
}

.retell-chat-header {
    background: linear-gradient(135deg, rgba(236, 0, 140, 0.3), rgba(107, 17, 255, 0.3));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.retell-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.retell-avatar-small {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec008c, #6b11ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-weight: bold;
}

.retell-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.retell-title {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.retell-status {
    margin: 2px 0 0 0;
    color: #94a3b8;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.retell-status-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

.retell-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.retell-action-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.2s ease;
}

.retell-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.06);
}

.retell-action-btn:active {
    transform: scale(0.95);
}

#retell-chat-widget-container #retell-chat-box .retell-header-actions button.retell-action-btn,
#retell-chat-widget-container #retell-chat-reset,
#retell-chat-widget-container #retell-chat-close {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    outline: none !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    overflow: hidden !important;
    box-shadow: none !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

#retell-chat-widget-container #retell-chat-box .retell-header-actions button.retell-action-btn:hover,
#retell-chat-widget-container #retell-chat-reset:hover,
#retell-chat-widget-container #retell-chat-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.08) !important;
}

#retell-chat-widget-container #retell-chat-box .retell-header-actions button.retell-action-btn:active,
#retell-chat-widget-container #retell-chat-reset:active,
#retell-chat-widget-container #retell-chat-close:active {
    transform: scale(0.95) !important;
}

#retell-chat-widget-container button.retell-action-btn svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    display: block !important;
    margin: auto !important;
    padding: 0 !important;
    pointer-events: none !important;
}

#retell-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.retell-message-row {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.retell-message-row.retell-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.retell-message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.45;
    color: #e2e8f0;
}

.retell-message-row.retell-bot .retell-message-bubble {
    background: rgba(30, 21, 51, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 4px;
}

.retell-message-row.retell-user .retell-message-bubble {
    background: linear-gradient(135deg, #ec008c, #6b11ff);
    color: #ffffff;
    border-top-right-radius: 4px;
}

.retell-timestamp {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    display: block;
}

.retell-chat-input-wrapper {
    padding: 12px 16px;
    background: rgba(10, 5, 20, 0.5);
}

.retell-input-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 4px 6px 4px 16px;
}

#retell-user-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13px;
}

#retell-chat-widget-container #retell-chat-box #retell-send-btn {
    background: linear-gradient(135deg, #ec008c, #6b11ff) !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    outline: none !important;
    overflow: hidden !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5) !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

#retell-chat-widget-container #retell-chat-box #retell-send-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.7) !important;
}

#retell-chat-widget-container #retell-chat-box #retell-send-btn:active {
    transform: scale(0.95) !important;
}

#retell-chat-widget-container #retell-chat-box #retell-send-btn svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    display: block !important;
    margin: auto !important;
    padding: 0 !important;
    pointer-events: none !important;
}

.retell-chat-footer {
    text-align: center;
    padding: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(5, 2, 12, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}