:root {
    --bg-main: hsl(0, 0%, 95%);
    --bg-card: hsl(0, 0%, 85%);
    --bg-bubble-user: #ff7900;
    --bg-bubble-assistant: #ffffff;
    --border-color: hsla(220, 14%, 20%, 0.6);
    --border-color-hover: hsla(28, 100%, 50%, 0.4);

    --brand-orange: #ff7900;
    --brand-orange-hover: #ff6600;
    --brand-orange-glow: #ff7900;

    --text-primary: hsl(0, 0%, 0%);
    --text-secondary: hsl(0, 0%, 16%);
    --text-muted: hsl(220, 10%, 48%);
    --text-user: hsl(0, 0%, 7%);

    --green-accent: hsl(142, 72%, 40%);

    --font-sans: 'Helvetica Neue', Arial, sans-serif;
    --font-mono: monospace;

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.svg-icon {
    display: inline-block;
    vertical-align: middle;
    width: 1.4em;
    height: 1.4em;
    color: black;
    flex-shrink: 0;
}

.chat-widget-button .svg-icon {
    width: 1em;
    height: 1em;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/*body {*/
/*    background-color: var(--bg-main);*/
/*    color: var(--text-primary);*/
/*    font-family: var(--font-sans);*/
/*    height: 100vh;*/
/*    overflow: hidden;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    line-height: 1.5;*/
/*    -webkit-font-smoothing: antialiased;*/
/*}*/

/* Page Layout */
.app-container {
    display: flex;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-main);
}

/* Sidebar Styling */
.sidebar {
    display: none;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background-color: var(--brand-orange);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-main);
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text h1 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Scrollbar styling */
.sidebar-content::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.horizontal-products::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.sidebar-content::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.horizontal-products::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover,
.horizontal-products::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-muted);
}

/* Section Styling */
.sidebar-section h3 {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.info-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.info-value {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    word-break: break-all;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--brand-orange);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.prompt-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prompt-btn {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    text-align: left;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prompt-btn:hover {
    background-color: var(--brand-orange-glow);
    border-color: var(--brand-orange-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.prompt-btn i {
    font-size: 0.75rem;
    color: var(--brand-orange);
    opacity: 0.6;
    transition: var(--transition-fast);
}

.prompt-btn:hover i {
    opacity: 1;
    transform: translateX(2px);
}

/* Sidebar Live Search Panel */
.live-search-panel {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 320px;
    overflow: hidden;
}

.live-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-search-badge {
    background-color: var(--brand-orange-glow);
    border: 1px solid var(--brand-orange);
    color: var(--brand-orange);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.live-search-results {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.sidebar-hit {
    display: flex;
    gap: 10px;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.sidebar-hit:hover {
    border-color: var(--border-color-hover);
    background-color: rgba(0, 0, 0, 0.25);
}

.sidebar-hit img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 4px;
    padding: 2px;
}

.sidebar-hit-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.sidebar-hit-title {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.sidebar-hit-price {
    font-size: 0.75rem;
    color: var(--brand-orange);
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--green-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green-accent);
}

/* Main Chat Container */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.chat-header {
    background-color: rgba(220, 16%, 6%, 0.4);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.chat-agent-info h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.chat-agent-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chat-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background-color: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.action-btn:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background-color: var(--brand-orange-glow);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Message Bubbles */
.message {
    display: flex;
    gap: 16px;
    max-width: 80%;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.avatar-user {
    background-color: var(--text-primary);
    color: var(--bg-main);
}

.avatar-assistant {
    background-color: var(--brand-orange);
    color: var(--bg-main);
    font-weight: 700;
}

.message-bubble {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    position: relative;
    /* box-shadow: var(--shadow-sm); */
    word-break: break-word;
}

.bubble-user {
    background-color: var(--bg-bubble-user);
    color: var(--text-user);
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.bubble-assistant {
    background-color: var(--bg-bubble-assistant);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.chat-inline-link {
    color: var(--brand-orange);
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition-fast);
}

.chat-inline-link:hover {
    color: var(--brand-orange-hover);
}

/* Chat Inline Product Banner */
.chat-product-box {
    display: flex;
    gap: 16px;
    background-color: #f0f0f0;
    margin: 12px 0;
    align-items: center;
    border-radius: 0;
}

.chat-product-image-container {
    width: 80px;
    height: 80px;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
}

.chat-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.chat-product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.chat-product-title-link {
    color: #000000;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-fast);
}

.chat-product-title-link:hover {
    color: var(--brand-orange);
    text-decoration: underline;
}

.chat-product-price {
    font-size: 0.8rem;
    font-weight: 700;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
    text-align: right;
}

.bubble-user .message-time {
    color: hsla(220, 16%, 6%, 0.6);
}

/* Rich Message content */
.message-content p {
    margin-bottom: 8px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul,
.message-content ol {
    margin-left: 20px;
    margin-bottom: 8px;
}

.message-content li {
    margin-bottom: 4px;
}

.message-user .message-content strong {
    color: inherit;
    font-weight: 700;
}

/* Tool execution card styling */
.tool-call-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tool-call-card i {
    color: var(--brand-orange);
    font-size: 1.1rem;
}

.tool-call-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-color);
    border-top-color: var(--brand-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Products slider component (horizontal scroll) */
.products-wrapper {
    width: 100%;
    margin-top: 14px;
}

.products-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--brand-orange);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.horizontal-products {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    width: 100%;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    /* No rounded corners */
    padding: 10px;
    /* width: 240px; */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    /* gap: 12px; */
    transition: var(--transition-fast);
    box-shadow: none;
    /* No shadow */
}

.product-card:hover {
    border-color: var(--brand-orange);
    transform: translateY(-2px);
    /* Subtle transform */
    box-shadow: none;
    /* No shadow on hover */
}

.product-image-container {
    background-color: #f2f2f2;
    /* Light gray background */
    height: 180px;
    border-radius: 0;
    /* No rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-brand {
    font-size: 1.5rem;
    color: #000000;
    font-weight: 700;
    margin-bottom: -4px;
}

.product-title {
    color: #000000;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Product Storage Badge */
.product-storage-badge {
    background-color: #000000;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 8px;
    width: fit-content;
    text-transform: uppercase;
}

/* Product Colors */
.product-colors-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
    height: 24px;
}

.product-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
}

.product-color-dot.active {
    outline: 1.5px solid #000000;
    outline-offset: 2px;
}

/* Price Section */
.product-price-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.product-price-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #000000;
}

.product-price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-right: 8px;
}

.product-price-new {
    color: var(--brand-orange);
    font-weight: 700;
    font-size: 1.15rem;
}

.product-rate-row {
    font-size: 0.75rem;
    color: var(--brand-orange);
    margin-top: 2px;
}

.product-smart-row {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Product Badge / Row Layout */
.product-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 4px;
}

/* Energy Badge */
.energy-badge {
    background-color: #009639;
    /* EU Green A label */
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0% 0%, 80% 0%, 100% 50%, 80% 100%, 0% 100%);
    width: 24px;
    height: 16px;
    font-family: var(--font-sans);
}

.vetical-products {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    padding-bottom: 12px;
}

/* Typing Indicator */
.typing-indicator-container {
    display: none;
    align-self: flex-start;
}

.typing-dots {
    display: flex;
    gap: 5px;
    padding: 12px 18px;
    background-color: var(--bg-bubble-assistant);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    border-bottom-left-radius: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingPulse {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Input Section */
.chat-input-container {
    padding: 24px 32px 32px;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-normal);
}

.input-wrapper:focus-within {
    border-color: var(--brand-orange);
    box-shadow: 0 0 16px var(--brand-orange-glow);
}

.chat-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.chat-input-field::placeholder {
    color: var(--text-muted);
}

.send-btn {
    background-color: var(--brand-orange);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--bg-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.send-btn:hover {
    background-color: var(--brand-orange-hover);
    transform: scale(1.05);
}

.send-btn:disabled {
    background-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.input-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

/* Loading skeleton for products */
.skeleton-products {
    display: flex;
    gap: 16px;
    overflow: hidden;
}

.skeleton-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    width: 220px;
    height: 290px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-image {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite;
    height: 140px;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite;
    height: 14px;
    border-radius: 4px;
    width: 80%;
}

.skeleton-text-short {
    width: 50%;
}

@keyframes loadingSkeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive design */
@media (max-width: 860px) {
    .app-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
        /* Hide sidebar on mobile */
    }
}

/* Dynamic Suggestion Chips */
.suggestions-chips-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.suggestion-chip {
    background-color: transparent;
    border: 1px solid var(--brand-orange);
    color: var(--brand-orange);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition-fast);
}

.suggestion-chip:hover {
    background-color: var(--brand-orange);
    color: var(--bg-main);
}

/* Fixed Widget & Modal Styles */

/* Fixed Chat Widget Button */
.chat-widget-button {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 64px;
    height: 64px;
    background-color: var(--brand-orange);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    z-index: 100;
}

.chat-widget-button:hover {
    background-color: var(--brand-orange-hover);
    transform: scale(1.1);
    /* box-shadow: 0 20px 48px rgba(255, 140, 0, 0.3); */
}

.chat-widget-button:active {
    transform: scale(0.95);
}

/* Modal Overlay */
.chat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.chat-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Chat Modal Window */
.chat-modal {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 480px;
    height: 680px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    z-index: 102;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    pointer-events: none;
}

.chat-modal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Modal Header */
.chat-modal-header {
    background-color: var(--brand-orange);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.chat-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: black;
    margin: 0;
}

.chat-modal-close {
    background-color: transparent;
    border: none;
    color: black;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    padding-top: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-modal-close:hover {
    transform: rotate(90deg);
}

/* Modal header text & actions layout */
.modal-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-header-text h3 {
    margin: 0;
}

.modal-subtitle {
    font-size: 1rem;
    color: black;
    margin: 0;
    font-weight: 400;
}

.modal-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.modal-header-actions .action-btn {

    color: black;
    background-color: transparent;
}

.modal-header-actions .action-btn:hover {}

.modal-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Modal Body - reuse chat styles */
.chat-modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-modal-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 768px) {
    .chat-modal-messages {
        padding: 10px;
        gap: 10px;
    }

    .chat-modal-header {
        padding: 10px 16px;
    }
}


.chat-modal-messages .message {
    max-width: 100%;
}

/* Modal Input */
.chat-modal-input-container {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.chat-modal-input-wrapper {
    display: flex;
    gap: 8px;
}

.chat-modal-input {
    flex: 1;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.chat-modal-input:focus {
    outline: none;
    border-color: var(--brand-orange);
    background-color: rgba(255, 140, 0, 0.05);
}

.chat-modal-input::placeholder {
    color: var(--text-muted);
}

.chat-modal-send {
    width: 40px;
    height: 40px;
    background-color: var(--brand-orange);
    border: none;
    border-radius: var(--radius-md);
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-modal-send:hover {}

.chat-modal-send:active {
    transform: scale(0.95);
}

/* Responsive - Hide widget on very small screens */
@media (max-width: 640px) {
    .chat-widget-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .chat-modal {
        width: calc(100vw - 32px);
        height: 70vh;
        bottom: 16px;
        right: 16px;
    }
}