/* =============================================
   Ember & Oak - AI Assistant Styles
   ============================================= */

/* Floating Button */
.assistant-floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(196, 92, 38, 0.4);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.assistant-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(196, 92, 38, 0.5);
}

.assistant-floating-btn:focus {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 3px;
}

.assistant-floating-btn svg {
    width: 28px;
    height: 28px;
    color: white;
    transition: all 0.3s ease;
}

.assistant-floating-btn .assistant-icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
}

.assistant-floating-btn.active .assistant-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.assistant-floating-btn.active .assistant-icon-close {
    opacity: 1;
    transform: rotate(0);
}

.assistant-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-dark);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

/* Chat Panel */
.assistant-panel {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 420px;
    max-width: calc(100vw - 2rem);
    height: 600px;
    max-height: calc(100vh - 8rem);
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

/* CRITICAL: Ensure proper flex layout for scrolling */
.assistant-panel > * {
    flex-shrink: 0;
}

.assistant-panel .assistant-messages {
    flex: 1 1 auto;
    min-height: 0; /* Critical for Firefox flex scroll */
}

.assistant-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--color-dark);
    color: white;
}

.assistant-header__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.assistant-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-avatar svg {
    width: 24px;
    height: 24px;
    color: white;
}

.assistant-avatar--large {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
}

.assistant-avatar--large svg {
    width: 36px;
    height: 36px;
}

.assistant-header__info h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    color: white;
}

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

.assistant-header__actions {
    display: flex;
    gap: 0.25rem;
}

.assistant-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.assistant-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.assistant-btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.assistant-btn svg {
    width: 18px;
    height: 18px;
}

.assistant-btn.muted svg {
    opacity: 0.5;
}

.assistant-btn.active {
    background: var(--color-primary);
    color: white;
}

.assistant-btn.active:hover {
    background: var(--color-primary-dark);
}

/* Messages Area */
.assistant-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.25rem;
    background: var(--color-cream);
    min-height: 0; /* Critical for flex scroll */
    max-height: 100%;
    scroll-behavior: smooth;
}

/* Welcome Message */
.assistant-welcome {
    text-align: center;
    padding: 2rem 1rem;
}

.assistant-welcome h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.assistant-welcome p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* Suggestion Buttons */
.assistant-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.suggestion-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    border-color: var(--color-primary);
    background: rgba(196, 92, 38, 0.05);
    color: var(--color-primary);
}

.suggestion-btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Chat Messages */
.chat-message {
    margin-bottom: 1rem;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message--user {
    display: flex;
    justify-content: flex-end;
}

.chat-message--user .message-content {
    background: var(--color-primary);
    color: white;
    border-radius: 16px 16px 4px 16px;
    max-width: 85%;
}

.chat-message--bot .message-content {
    background: white;
    border-radius: 16px 16px 16px 4px;
    max-width: 90%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message-content {
    padding: 0.875rem 1rem;
}

.message-content p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.message-content p + p {
    margin-top: 0.75rem;
}

.message-content strong {
    font-weight: 600;
}

.message-buttons {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chat-message--system {
    text-align: center;
}

.chat-message--system p {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 1rem;
    background: white;
    border-radius: 16px;
    width: fit-content;
}

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

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-4px); opacity: 1; }
}

/* Menu Display - Full overlay with proper scrolling */
.assistant-menu-display {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-cream);
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.menu-display-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--color-dark);
    color: white;
}

.menu-display-header h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: white;
}

.menu-display-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    min-height: 0; /* Critical for flex scroll */
    max-height: calc(100% - 60px); /* Account for header */
}

.menu-items-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-item-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.menu-item-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.menu-item-card h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin: 0;
    color: var(--color-dark);
}

.menu-item-card .price {
    font-weight: 600;
    color: var(--color-primary);
}

.menu-item-card .description {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin: 0 0 0.75rem;
}

.menu-item-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.menu-item-card .calories {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--color-cream);
    border-radius: 4px;
    color: var(--color-text-muted);
}

.diet-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.diet-tag--vegan {
    background: #27ae60;
    color: white;
}

.diet-tag--vegetarian {
    background: #2ecc71;
    color: white;
}

.diet-tag--gluten-free {
    background: #f39c12;
    color: white;
}

.diet-tag--low-calorie {
    background: #3498db;
    color: white;
}

.diet-tag--dairy-free {
    background: #9b59b6;
    color: white;
}

.halal-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    background: #1abc9c;
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.item-details-btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.75rem;
}

/* Input Area - ALWAYS visible at bottom */
.assistant-input-area {
    flex-shrink: 0;
    padding: 1rem;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 5;
}

.assistant-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background: var(--color-cream);
    border-radius: 24px;
    padding: 0.5rem 0.75rem;
}

.assistant-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    resize: none;
    max-height: 120px;
    padding: 0.5rem;
    line-height: 1.4;
}

.assistant-input:focus {
    outline: none;
}

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

.assistant-input-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.voice-btn,
.send-btn,
.stop-btn,
.speak-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Stop Speaking Button */
.stop-btn {
    background: #e74c3c;
    color: white;
    display: none;
    animation: stopPulse 0.8s ease infinite;
}

.stop-btn.visible {
    display: flex;
}

.stop-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.stop-btn svg {
    width: 16px;
    height: 16px;
}

@keyframes stopPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
}

/* Speak Response Button */
.speak-btn {
    background: transparent;
    color: var(--color-text-muted);
}

.speak-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-primary);
}

.speak-btn svg {
    width: 18px;
    height: 18px;
}

.voice-btn {
    background: transparent;
    color: var(--color-text-muted);
}

.voice-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-primary);
}

.voice-btn.listening {
    background: var(--color-primary);
    color: white;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 92, 38, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(196, 92, 38, 0); }
}

.voice-btn.hidden {
    display: none;
}

.send-btn {
    background: var(--color-primary);
    color: white;
}

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

.send-btn:focus,
.voice-btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.voice-btn svg,
.send-btn svg {
    width: 20px;
    height: 20px;
}

/* Listening Indicator */
.listening-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: var(--color-primary);
    color: white;
    border-radius: 12px;
    font-size: 0.875rem;
}

.listening-indicator.active {
    display: flex;
}

.listening-waves {
    display: flex;
    gap: 3px;
    align-items: center;
}

.listening-waves span {
    width: 4px;
    height: 16px;
    background: white;
    border-radius: 2px;
    animation: wave 0.8s ease-in-out infinite;
}

.listening-waves span:nth-child(2) { animation-delay: 0.1s; }
.listening-waves span:nth-child(3) { animation-delay: 0.2s; }
.listening-waves span:nth-child(4) { animation-delay: 0.3s; }

@keyframes wave {
    0%, 100% { height: 8px; }
    50% { height: 20px; }
}

/* Links */
.assistant-link {
    color: var(--color-primary);
    text-decoration: underline;
}

.assistant-link:hover {
    color: var(--color-primary-dark);
}

/* Responsive */
@media (max-width: 480px) {
    .assistant-floating-btn {
        bottom: 1rem;
        right: 1rem;
        width: 56px;
        height: 56px;
    }

    .assistant-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .assistant-panel.active {
        transform: translateY(0);
    }

    .message-content {
        max-width: 95%;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .assistant-panel {
        border: 2px solid var(--color-dark);
    }

    .suggestion-btn {
        border-width: 2px;
    }

    .chat-message--bot .message-content {
        border: 1px solid var(--color-dark);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .assistant-floating-btn,
    .assistant-panel,
    .chat-message,
    .typing-indicator span,
    .voice-btn.listening,
    .listening-waves span {
        animation: none;
        transition: none;
    }
}

/* Focus Visible */
.assistant-floating-btn:focus-visible,
.assistant-btn:focus-visible,
.suggestion-btn:focus-visible,
.voice-btn:focus-visible,
.send-btn:focus-visible,
.stop-btn:focus-visible,
.speak-btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Speaking Status Indicator */
.assistant-status.speaking {
    color: #2ecc71;
    animation: statusPulse 1s ease infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Accessibility: Skip Link */
.assistant-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 10001;
    transition: top 0.3s ease;
}

.assistant-skip-link:focus {
    top: 0;
}

/* Voice Command Hint (for screen readers) */
.voice-command-hint {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.stop-btn:hover .voice-command-hint,
.stop-btn:focus .voice-command-hint {
    opacity: 1;
    visibility: visible;
}

/* Input area hint for screen readers */
.input-hint {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: 0.25rem;
    margin-top: 0.25rem;
}

/* Keyboard shortcuts info */
.keyboard-shortcuts {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    padding: 0.5rem;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.keyboard-shortcuts kbd {
    background: var(--color-cream);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.65rem;
}

/* Accessibility Hint in Welcome */
.accessibility-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: rgba(0,0,0,0.03);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.accessibility-hint kbd {
    background: var(--color-cream);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.7rem;
    border: 1px solid rgba(0,0,0,0.1);
}

/* ==========================================
   VOICE MODE STYLES
   ========================================== */

/* Voice Mode Button */
.voice-mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.voice-mode-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
    transform: scale(1.02);
}

.voice-mode-btn.active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    animation: voiceModePulse 2s ease infinite;
}

.voice-mode-btn:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

.voice-mode-btn .mic-icon {
    width: 18px;
    height: 18px;
}

.voice-mode-btn.hidden {
    display: none;
}

@keyframes voiceModePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
}

/* Voice Mode Indicator */
.voice-mode-indicator {
    display: none;
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    color: white;
}

.voice-mode-indicator.active {
    display: block;
    animation: voiceModeSlide 0.3s ease;
}

@keyframes voiceModeSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.voice-mode-indicator__content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.voice-mode-indicator .listening-waves {
    flex-shrink: 0;
}

.voice-mode-indicator .listening-waves span {
    background: white;
}

.voice-mode-status {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

.voice-mode-exit {
    padding: 0.35rem 0.75rem;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voice-mode-exit:hover {
    background: rgba(255,255,255,0.3);
}

.voice-mode-exit:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Action Messages (for navigation) */
.chat-message--action {
    margin-bottom: 1rem;
}

.action-content {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8125rem;
    animation: actionPulse 1.5s ease infinite;
}

.action-icon svg {
    width: 16px;
    height: 16px;
}

@keyframes actionPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Navigation Link in Chat */
.navigation-link-content {
    display: inline-block;
}

.nav-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link-btn:hover {
    background: var(--color-primary-dark);
    transform: scale(1.02);
    color: white;
}

.nav-link-btn svg {
    width: 16px;
    height: 16px;
}

/* Updated input wrapper for voice mode button */
.assistant-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    background: var(--color-cream);
    border-radius: 24px;
    padding: 0.5rem 0.75rem;
}

/* Responsive voice mode */
@media (max-width: 480px) {
    .voice-mode-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .voice-mode-btn .voice-mode-label {
        display: none;
    }

    .voice-mode-indicator__content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .voice-mode-status {
        font-size: 0.75rem;
    }
}

/* ─── Pre-Chat Identity Form ───────────────────────────────────── */
.assistant-prechat {
    text-align: center;
    padding: 2rem 1.5rem;
}
.assistant-prechat h4 {
    font-family: var(--font-heading, serif);
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--color-dark, #1a1a2e);
}
.assistant-prechat p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.prechat-form {
    max-width: 300px;
    margin: 0 auto;
}
.prechat-field {
    display: block;
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    font-family: var(--font-body, sans-serif);
    font-size: 0.875rem;
    margin-bottom: 0.6rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: #fff;
}
.prechat-field:focus {
    border-color: var(--color-primary, #c45c26);
}
.prechat-field.prechat-error {
    border-color: #e74c3c;
}
.prechat-row {
    display: flex;
    gap: 0.5rem;
}
.prechat-row .prechat-field {
    flex: 1;
    min-width: 0;
}
.prechat-submit {
    width: 100%;
    padding: 0.7rem;
    background: var(--color-primary, #c45c26);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.25rem;
    font-family: var(--font-body, sans-serif);
    transition: filter 0.2s;
}
.prechat-submit:hover {
    filter: brightness(0.9);
}
.prechat-skip {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: underline;
    font-family: var(--font-body, sans-serif);
}
.prechat-skip:hover {
    color: #666;
}

/* ─── Booking / Payment Button in Chat ─────────────────────────── */
.chat-booking-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.65rem 1.25rem;
    background: var(--color-dark, #1a1a1a);
    color: #fff !important;
    font-family: var(--font-body, sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}
.chat-booking-btn::before {
    content: "\2192";
    font-size: 1rem;
}
.chat-booking-btn:hover {
    background: var(--color-primary, #c45c26);
    transform: translateY(-1px);
}
.chat-booking-btn:active {
    transform: translateY(0);
}

.chat-link {
    color: var(--color-primary, #c45c26);
    text-decoration: underline;
    word-break: break-all;
}
.chat-link:hover {
    opacity: 0.8;
}

/* ─── Time Slot Picker ─────────────────────────────────────────── */
.slot-picker {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.slot-picker__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-dark, #1a1a1a);
    margin: 0 0 0.5rem;
}
.slot-picker__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.slot-btn {
    padding: 0.5rem 0.9rem;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    font-family: var(--font-body, sans-serif);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-dark, #1a1a1a);
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 4rem;
    text-align: center;
}
.slot-btn:hover {
    border-color: var(--color-primary, #c45c26);
    background: rgba(196, 92, 38, 0.04);
    color: var(--color-primary, #c45c26);
}
.slot-btn--selected {
    background: var(--color-dark, #1a1a1a);
    color: #fff;
    border-color: var(--color-dark, #1a1a1a);
}
.slot-btn--selected:hover {
    background: var(--color-dark, #1a1a1a);
    color: #fff;
}
.slot-picker__deposit {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: var(--color-text-muted, #888);
}
.slot-picker__hint {
    margin: 0.4rem 0 0;
    font-size: 0.7rem;
    color: var(--color-text-muted, #aaa);
    font-style: italic;
}
