/* Support Page Styles */
/* Hide scrollbar on support page */
html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Hide scrollbar on main content area */
main {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

main::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.accordion-content {
    display: none;
}

.accordion-active .accordion-content {
    display: block;
}

.accordion-active .accordion-icon {
    transform: rotate(180deg);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {

    /* Ensure proper touch targets for accordion */
    .accordion {
        padding: 0.875rem 0;
    }

    /* Better spacing for mobile tables */
    table td,
    table th {
        padding: 0.75rem 0.5rem;
    }
}

/* AI Chat Typing Indicator Animation */
.typing-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: currentColor;
    animation: typing 1.4s infinite;
    margin: 0 1px;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

/* Chat brand palette (ImpromptuIndian crimson) */
#supportChat,
.pm-chat-widget {
    --chat-brand: #A52422;
    --chat-brand-mid: #c43a38;
    --chat-brand-soft: #f5d0cf;
    --chat-brand-light: #fecaca;
    --chat-on-brand: #ffffff;
    --chat-brand-a06: rgba(165, 36, 34, 0.06);
    --chat-brand-a08: rgba(165, 36, 34, 0.08);
    --chat-brand-a10: rgba(165, 36, 34, 0.10);
    --chat-brand-a12: rgba(165, 36, 34, 0.12);
    --chat-brand-a15: rgba(165, 36, 34, 0.15);
    --chat-brand-a18: rgba(165, 36, 34, 0.18);
    --chat-brand-a25: rgba(165, 36, 34, 0.25);
    --chat-brand-a35: rgba(165, 36, 34, 0.35);
    --chat-brand-a40: rgba(165, 36, 34, 0.40);
    --chat-brand-a55: rgba(165, 36, 34, 0.55);
}

.chat-brand-avatar {
    background: linear-gradient(to bottom right, var(--chat-brand-mid), var(--chat-brand)) !important;
    color: var(--chat-on-brand) !important;
    box-shadow: 0 4px 14px var(--chat-brand-a25);
}

.chat-upload-btn:hover {
    color: var(--chat-brand-light) !important;
    border-color: var(--chat-brand-mid) !important;
}

.customer-message-bubble img {
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: #fff;
}

/* AI Chat Modal Styles - Professional Design */
#supportChat {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Professional Header Gradient */
.chat-header-gradient {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
}

/* Header Buttons */
.chat-header-btn {
    transition: all 0.2s ease;
}

.chat-header-btn:hover {
    transform: scale(1.1);
}

/* Messages Container - Hidden Scrollbar */
.chat-messages-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.chat-messages-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Professional Chat Input */
.chat-input {
    transition: all 0.2s ease;
}

.chat-input:focus {
    box-shadow: 0 0 0 3px var(--chat-brand-a15);
    border-color: var(--chat-brand-a40) !important;
}

/* Professional Send Button */
.chat-send-btn {
    background: linear-gradient(to right, var(--chat-brand-mid), var(--chat-brand)) !important;
    color: var(--chat-on-brand) !important;
    transition: all 0.2s ease;
    transform: translateY(0);
}

.chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--chat-brand-a25);
}

.chat-send-btn:active {
    transform: translateY(0);
}

/* AI Message Bubble - Flipkart Style */
.ai-message-bubble {
    background: #1e293b; /* Dark slate */
    color: white;
    border-radius: 12px 12px 12px 2px;
    padding: 10px 14px;
    max-width: 85%;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: messageSlideIn 0.3s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

/* Support Agent Message Bubble (distinct from AI) */
.agent-message-bubble {
    background: rgba(37, 99, 235, 0.14); /* Blue tint */
    color: #e5e7eb;
    border-radius: 12px 12px 12px 2px;
    padding: 10px 14px;
    max-width: 85%;
    font-size: 14px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: messageSlideIn 0.3s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

/* Customer Message Bubble - Flipkart Style */
.customer-message-bubble {
    background: var(--chat-brand);
    color: var(--chat-on-brand);
    border-radius: 12px 12px 2px 12px;
    padding: 10px 14px;
    max-width: 85%;
    font-size: 14px;
    font-weight: 500;
    animation: messageSlideIn 0.3s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

/* System/Assignment Message Alignment */
.system-message-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 15px 0;
}

.system-message-bubble {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px dashed rgba(255, 255, 255, 0.2) !important;
    color: #94a3b8 !important; /* Muted slate blue */
    font-size: 12px !important;
    font-style: italic;
    border-radius: 8px !important;
    padding: 6px 20px !important;
    box-shadow: none !important;
    max-width: 90% !important;
}

/* Vendor → Customer masked clarification (Action Required) */
.vendor-query-banner {
    background: var(--chat-brand-a10) !important;
    border: 1px solid var(--chat-brand-a35) !important;
    color: var(--chat-brand-soft) !important;
    font-size: 13px !important;
    font-style: normal;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    max-width: 78% !important;
    text-align: left;
}

/* ============================================
   VENDOR QUERY (ACTION REQUIRED) - FINAL UI
============================================ */

.vendor-query-bubble {
    background: linear-gradient(135deg, var(--chat-brand-a12), var(--chat-brand-a06));
    border: 1px solid var(--chat-brand-a40);
    color: var(--chat-brand-soft);
    padding: 12px 16px;
    border-radius: 14px 14px 14px 4px;
    max-width: 60%;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.vendor-query-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--chat-brand-light);
}

.vendor-query-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    width: 100%;
}

.vendor-query-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--chat-brand);
    color: var(--chat-on-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 10px 24px var(--chat-brand-a18);
}

.vendor-query-bubble:hover {
    border-color: var(--chat-brand-mid);
    box-shadow: 0 10px 30px var(--chat-brand-a25);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Eye-Catching Flipkart Buttons --- */
/* --- Vivid Flipkart Options --- */
.issue-option-btn,
button.issue-option-btn {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background: var(--chat-brand) !important;
    color: var(--chat-on-brand) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px 12px 12px 2px !important; /* Matches AI Bubble */
    padding: 10px 40px 10px 14px !important; /* Extra right padding for arrow */
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    margin-bottom: 6px !important;
    width: fit-content !important; /* Buttons fit their content */
    min-width: 180px !important; /* Minimum width for consistency */
    max-width: 75% !important; /* Maximum width to prevent overly wide buttons */
    overflow: hidden;
    box-sizing: border-box;
}

/* The Flipkart Chevron Arrow */
.issue-option-btn::after,
button.issue-option-btn::after {
    content: '›';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    opacity: 0.3; /* Subtle arrow visible initially */
    transition: all 0.2s ease;
    color: inherit;
}

/* --- THE HOVER EFFECT --- */
.issue-option-btn:hover,
button.issue-option-btn:hover {
    background: #ffffff !important; /* Pure White on Hover */
    color: #2563eb !important; /* Vivid Blue text */
    transform: translateY(-2px) translateX(6px) !important; /* Lift and Slide */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
    border-color: #2563eb !important;
}

.issue-option-btn:hover::after,
button.issue-option-btn:hover::after {
    opacity: 1; /* Arrow brightens */
    right: 10px; /* Arrow slides inward */
    color: #2563eb;
}

/* Active State */
.issue-option-btn:active,
button.issue-option-btn:active {
    transform: scale(0.97) translateX(4px) !important;
}

/* Focus state for accessibility */
.issue-option-btn:focus,
button.issue-option-btn:focus {
    outline: 2px solid var(--chat-brand-a55);
    outline-offset: 2px;
}

/* Container for option buttons - left aligned (Flipkart style) */
.options-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns buttons to the left edge */
    gap: 4px !important; /* Reduced spacing between options */
    margin-top: 5px;
    margin-left: 0;
    width: 100%;
}

/* Ensure the span inside button doesn't break layout */
.issue-option-btn .flex-1 {
    display: block;
}

/* Make sure AI bubbles have a consistent look with speech bubble tail */
.ai-message-bubble {
    border-bottom-left-radius: 2px !important; /* Speech bubble tail */
}

.agent-message-bubble {
    border-bottom-left-radius: 2px !important; /* Speech bubble tail */
}

.customer-message-bubble {
    border-bottom-right-radius: 2px !important; /* Speech bubble tail */
}

/* Message Animation */
@keyframes animate-message-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-message-in {
    animation: animate-message-in 0.3s ease-out;
}

/* Full Screen Chat Styles (3/4th of screen) - Professional */
#supportChat.fullscreen {
    position: fixed !important;
    top: 12.5% !important;
    left: 12.5% !important;
    right: 12.5% !important;
    bottom: 12.5% !important;
    width: 75vw !important;
    height: 75vh !important;
    max-width: 75vw !important;
    max-height: 75vh !important;
    border-radius: 20px !important;
    margin: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
}

#supportChat.fullscreen #aiChatMessages {
    height: calc(75vh - 180px) !important;
    max-height: calc(75vh - 180px) !important;
    padding: 1.5rem !important;
}

#supportChat.fullscreen .chat-header-gradient {
    padding: 1.25rem 1.5rem !important;
    border-radius: 20px 20px 0 0 !important;
}

/* Hidden Scrollbar for Chat Messages */
#chatMessages {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Prevent scroll propagation to parent */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#chatMessages::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* --- Flipkart Style Alignment --- */
#aiChatMessages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px !important;
    overflow-y: auto;
    max-height: 400px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Prevent scroll propagation to parent */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#aiChatMessages::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Prevent body scroll when chat is open */
body.chat-open {
    overflow: hidden !important;
}

/* Prevent main content scroll when chat is open */
body.chat-open main {
    overflow: hidden !important;
}

/* AI Message - Left Aligned */
.ai-message-container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    align-items: flex-start;
    gap: 8px;
}

/* Customer Message - Right Aligned */
.customer-message-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    align-items: flex-end;
    gap: 8px;
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1024px) {

    /* Optimize spacing for tablet view */
    .accordion {
        padding: 1rem 0;
    }
}

/* Chat Messages Scrollbar */
#chatMessages {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

#chatMessages::-webkit-scrollbar {
    width: 6px;
}

#chatMessages::-webkit-scrollbar-track {
    background: transparent;
}

#chatMessages::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

#chatMessages::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Ticket Conversation Animation */
#ticketConversation {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional Chat Container Animation */
#supportChat {
    animation: chatFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes chatFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Enhanced Typing Indicator */
#typingIndicator {
    animation: typingPulse 2s ease-in-out infinite;
}

@keyframes typingPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Professional Scrollbar for Fullscreen */
#supportChat.fullscreen .chat-messages-container::-webkit-scrollbar {
    width: 10px;
}

#supportChat.fullscreen .chat-messages-container::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 5px;
}

#supportChat.fullscreen .chat-messages-container::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.6);
}

/* Production clarification workflow (customer) */
.production-clarification-hint {
    animation: messageIn 0.25s ease-out;
}
.production-reply-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--chat-brand-a35);
    background: var(--chat-brand-a08);
    color: var(--chat-brand, #A52422);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
}
.production-reply-btn:hover {
    background: var(--chat-brand-a18);
    border-color: var(--chat-brand-a55);
}
.production-reply-btn--secondary {
    border-color: var(--chat-border, #e5e7eb);
    background: var(--chat-bg-muted, #f9fafb);
    color: var(--chat-text-secondary, #374151);
}
.production-upload-bar {
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--chat-brand-a25);
    background: var(--chat-brand-a08);
    color: var(--chat-brand, #A52422);
    font-size: 0.78rem;
    line-height: 1.45;
}
.production-workflow-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--chat-brand-soft, #7F3937);
    margin: 0.25rem 0 0.35rem;
}
.production-input-locked .chat-input {
    opacity: 0.55;
    cursor: not-allowed;
}
.production-reply-card {
    max-width: 85%;
}
.vendor-query-placements-list {
    margin: 0.35rem 0 0.5rem;
    padding-left: 1.1rem;
    font-size: 0.78rem;
    color: var(--chat-text-secondary, #374151);
}
.vendor-query-placements-list li {
    margin: 0.15rem 0;
}

/* Production chat — light incoming/outgoing bubble colors */
#supportChat.chat-mode-production .ai-message-bubble.production-vendor-request {
    background: var(--chat-incoming-bg, #ffffff);
    color: var(--chat-incoming-text, #111827);
    border: 1px solid var(--chat-border, #e5e7eb);
    border-radius: 12px 12px 12px 2px;
    max-width: 85%;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
}
#supportChat.chat-mode-production .ai-message-bubble.production-vendor-request .pm-chat-bubble__badge {
    color: var(--chat-brand, #A52422);
}
#supportChat.chat-mode-production .ai-message-bubble.production-vendor-request .pm-chat-bubble__type {
    color: var(--chat-brand-soft, #7F3937);
}
#supportChat.chat-mode-production .ai-message-bubble.production-vendor-request .pm-chat-bubble__placements,
#supportChat.chat-mode-production .vendor-query-placements-list,
#supportChat.chat-mode-production .vendor-query-placements-list li {
    color: var(--chat-text-secondary, #374151);
}
#supportChat.chat-mode-production .customer-message-bubble.production-reply-card {
    background: var(--chat-brand);
    color: var(--chat-on-brand);
    font-weight: 500;
    border-radius: 12px 12px 2px 12px;
}

/* Unified Help & Support — channel tabs */
.support-channel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.support-channel-tab {
    flex: 1 1 auto;
    min-width: 10rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.support-channel-tab:hover {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.05);
}

.support-channel-tab.is-active {
    color: #fff;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
}

.support-messaging-hub.channel-support .support-channel-tab.is-active {
    background: var(--chat-brand-a12);
    border-color: var(--chat-brand-a40);
    color: var(--chat-brand-soft);
}

.support-messaging-hub.channel-support .support-channel-tab:not(.is-active):hover {
    color: var(--chat-brand-soft);
}

.production-info-banner {
    background: var(--chat-brand-a06, rgba(165, 36, 34, 0.06));
    border: 1px solid var(--chat-brand-a25, rgba(165, 36, 34, 0.25));
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.support-messaging-hub.channel-production #ticketsTableBody tr:hover {
    background: rgba(16, 185, 129, 0.08);
}

.support-messaging-hub.channel-support #ticketsTableBody tr:hover {
    background: var(--chat-brand-a06);
}

.support-messaging-hub.channel-production .channel-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.45);
}

.support-messaging-hub.channel-support .channel-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--chat-brand-a55);
}

#supportChat.chat-mode-production {
    border-color: var(--chat-border, #e5e7eb);
    background: var(--chat-bg, #ffffff);
    box-shadow: var(--chat-shadow-lg, 0 25px 80px rgba(17, 24, 39, 0.12), 0 0 0 1px rgba(17, 24, 39, 0.06)) !important;
}

/* Production vendor↔customer chat — wide layout by default (75% viewport) */
#supportChat.support-chat-widget.chat-mode-production:not(.hidden) {
    position: fixed !important;
    top: 12.5% !important;
    left: 12.5% !important;
    right: 12.5% !important;
    bottom: 12.5% !important;
    width: 75vw !important;
    height: 75vh !important;
    max-width: 75vw !important;
    max-height: 75vh !important;
    border-radius: 20px !important;
    z-index: 9999 !important;
    box-shadow: var(--chat-shadow-lg, 0 25px 80px rgba(17, 24, 39, 0.12), 0 0 0 1px rgba(17, 24, 39, 0.06)) !important;
}

#supportChat.support-chat-widget.chat-mode-production:not(.hidden) #aiChatMessages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 1.5rem !important;
}

#supportChat.chat-mode-production .chat-header-gradient.pm-chat-header,
#supportChat.chat-mode-production .chat-header-gradient {
    background: var(--chat-bg, #ffffff);
    border-bottom: 1px solid var(--chat-border, #e5e7eb);
}

#supportChat.chat-mode-production #aiChatMessages {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--chat-bg-muted, #f9fafb);
}

#supportChat.chat-mode-production .pm-chat-response-panel {
    align-self: stretch;
    margin-top: 0.25rem;
}

#supportExtras.hidden {
    display: none !important;
}

/* ============================================
   UNIFIED COMMUNICATIONS HUB (mockup UI)
============================================ */

body.page-customer-app.page-support,
body.support-page.page-customer-app {
    background: var(--ci-page-bg, #f9fafb);
    color: var(--ci-text, #111827);
}

body.page-support main {
    background: var(--ci-page-bg, #f9fafb);
}

body.page-support .ci-sidebar .menu-item.active {
    background: var(--ci-brand) !important;
    color: #fff !important;
    border-radius: 0.5rem;
}

body.page-support .ci-sidebar .menu-item.active::before {
    display: none;
}

body.page-support .ci-sidebar .menu-item.active i,
body.page-support .ci-sidebar .menu-item.active svg {
    color: #fff;
}

.support-page-header h1 {
    color: var(--ci-text);
    font-weight: 700;
}

.support-page-subtitle,
.support-section-subtitle {
    color: var(--ci-text-muted);
}

.support-section-icon {
    color: var(--ci-brand);
}

/* Page vertical rhythm */
.support-page .support-page-header {
    margin-bottom: 1.25rem;
}

.support-page .support-page-header h1 {
    margin-bottom: 0.35rem;
}

#supportExtras {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.support-section-header {
    margin-bottom: 0.75rem;
}

.support-section-header h2 {
    margin: 0;
}

.support-section-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
}

.hub-unified {
    background: var(--ci-card-bg, #fff);
    border: 1px solid var(--ci-border, #e5e7eb);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--ci-card-shadow);
}

.hub-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hub-toolbar__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ci-text);
    margin: 0 0 0.75rem;
}

.hub-toolbar__title svg {
    color: var(--ci-brand);
}

.hub-toolbar__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.hub-search-wrap {
    position: relative;
    flex: 1 1 12rem;
    min-width: 10rem;
    max-width: 22rem;
}

.hub-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.hub-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    background: #fff;
    border: 1px solid var(--ci-border, #e5e7eb);
    border-radius: 10px;
    color: var(--ci-text);
    font-size: 0.8125rem;
}

.hub-search-input:focus {
    outline: none;
    border-color: var(--ci-brand);
    box-shadow: 0 0 0 2px var(--ci-brand-light);
}

.hub-filter-select {
    padding: 0.5rem 1.75rem 0.5rem 0.65rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.5rem center;
    border: 1px solid var(--ci-border, #e5e7eb);
    border-radius: 10px;
    color: var(--ci-text);
    font-size: 0.8125rem;
    appearance: none;
    cursor: pointer;
    min-width: 5.5rem;
}

.hub-filter-select:focus {
    outline: none;
    border-color: var(--ci-brand);
    box-shadow: 0 0 0 2px var(--ci-brand-light);
}

.hub-open-summary {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    color: var(--ci-text-muted);
}

.hub-raise-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    background: var(--ci-brand);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.hub-raise-btn:hover {
    background: var(--ci-brand-hover);
    transform: translateY(-1px);
}

/* Hub two-column layout (production left, support right) */
.hub-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.75rem;
    align-items: start;
}

.hub-column {
    min-width: 0;
}

.hub-column__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ci-brand);
    margin: 0 0 0.65rem;
}

.hub-column--production .hub-column__label,
.hub-column--support .hub-column__label {
    color: var(--ci-brand);
}

.hub-column__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hub-column-empty,
.hub-column-loading {
    font-size: 0.8125rem;
    color: var(--ci-text-muted);
    margin: 0;
    padding: 1rem;
    text-align: center;
    background: #fafafa;
    border-radius: 10px;
    border: 1px dashed var(--ci-border, #e0e0e0);
}

.hub-column__list .hub-thread-card {
    max-width: none;
    width: 100%;
}

@media (max-width: 900px) {
    .hub-columns {
        grid-template-columns: 1fr;
    }
}

/* Timeline (legacy) */
.hub-timeline {
    position: relative;
    min-height: 0;
    padding: 0.25rem 0 0.5rem;
}

.hub-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 2.25rem;
    bottom: 0.75rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(254, 203, 0, 0.35), rgba(255, 255, 255, 0.06));
    transform: translateX(-50%);
    z-index: 0;
}

/* Short line when only one thread — avoids a tall empty rail */
.hub-timeline:has(.hub-timeline-item:only-of-type)::before {
    bottom: auto;
    height: 2.5rem;
}

.hub-timeline:not(:has(.hub-timeline-item))::before {
    display: none;
}

.hub-timeline-loading,
.hub-timeline-empty {
    padding: 2rem 1rem !important;
}

.hub-timeline-day {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 auto 0.85rem;
    width: fit-content;
    padding: 0.25rem 0.75rem;
    background: #252b3b;
    border: 1px solid rgba(254, 203, 0, 0.35);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FECB00;
}

.hub-timeline-item {
    display: flex;
    width: 100%;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.hub-timeline-item:last-child {
    margin-bottom: 0;
}

.hub-timeline-item--left {
    justify-content: flex-start;
    padding-right: calc(50% + 1.25rem);
}

.hub-timeline-item--right {
    justify-content: flex-end;
    padding-left: calc(50% + 1.25rem);
}

.hub-thread-card {
    width: 100%;
    max-width: 340px;
    background: #fff;
    border: 1px solid var(--ci-border, #e5e7eb);
    border-radius: 12px;
    padding: 1rem 1.125rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    text-align: left;
    box-shadow: var(--ci-card-shadow);
}

.hub-thread-card:hover {
    border-color: var(--ci-brand-ring);
    box-shadow: var(--ci-card-shadow-hover);
    transform: translateY(-1px);
}

.hub-thread-card--production {
    background: #fff;
    border-color: var(--ci-border, #e5e7eb);
}

.hub-thread-card--production:hover {
    border-color: var(--ci-brand-ring);
}

.hub-thread-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.hub-thread-card__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hub-thread-card__icon--production {
    background: var(--ci-brand-light);
    color: var(--ci-brand);
}

.hub-thread-card__icon--support {
    background: var(--ci-brand-light);
    color: var(--ci-brand);
}

.hub-thread-card__title-row {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.hub-thread-card__title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ci-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-thread-card__chevron {
    color: var(--ci-text-muted);
    flex-shrink: 0;
}

.hub-thread-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.15rem;
}

.hub-thread-tag--production,
.hub-thread-tag--support {
    background: var(--ci-brand);
    color: #fff;
}

.hub-thread-card__snippet {
    font-size: 0.8125rem;
    color: var(--ci-text-muted);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-thread-card__meta {
    font-size: 0.7rem;
    color: var(--ci-text-muted);
    margin-top: 0.4rem;
}

.support-recent-orders,
.support-faq {
    background: var(--ci-card-bg, #fff);
    border: 1px solid var(--ci-border, #e5e7eb);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0;
    box-shadow: var(--ci-card-shadow);
}

.support-recent-orders h2,
.support-faq h2,
.support-section-header h2 {
    color: var(--ci-text);
}

#recentOrdersHelp {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--ci-border, #e5e7eb);
    border-bottom: 1px solid var(--ci-border, #e5e7eb);
    padding: 1rem 0;
    border-radius: 0;
    transition: background 0.15s;
}

#recentOrdersHelp .recent-order-row {
    border: none;
    border-bottom: 1px solid var(--ci-border, #e5e7eb);
    padding: 1rem 0;
    background: transparent;
}

#recentOrdersHelp .recent-order-row:last-child {
    border-bottom: none;
}

.recent-order-row p {
    margin: 0;
    line-height: 1.4;
}

.recent-order-row p + p {
    margin-top: 0.25rem;
}

/* FAQ spacing */
.support-faq-item,
#faq .accordion {
    padding: 1rem 0;
    border-bottom: 1px solid var(--ci-border, #e5e7eb);
    cursor: pointer;
}

.support-faq-item:last-child,
#faq .accordion:last-child {
    border-bottom: none;
}

#faq .accordion:first-child,
.support-faq-item:first-child {
    padding-top: 0.25rem;
}

.support-faq-item .accordion-icon,
#faq .accordion-icon {
    color: var(--ci-text-muted);
}

.support-faq-item p.font-medium,
#faq .accordion p.font-medium {
    color: var(--ci-text);
}

.support-faq-item .accordion-content,
#faq .accordion-content {
    color: var(--ci-text-muted);
}

.support-faq h2 {
    margin-bottom: 0.35rem;
}

.support-faq .support-section-subtitle {
    margin-bottom: 0.75rem;
}

.recent-order-row:hover {
    background: transparent;
}

.recent-order-help-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #fff;
    background: var(--ci-brand);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0.45rem 0.875rem;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.recent-order-help-link:hover {
    background: var(--ci-brand-hover);
    color: #fff;
}

@media (max-width: 768px) {
    .hub-timeline::before {
        left: 1rem;
    }

    .hub-timeline-item--left,
    .hub-timeline-item--right {
        padding-left: 2.25rem;
        padding-right: 0;
        justify-content: flex-start;
    }

    .hub-thread-card {
        max-width: 100%;
    }

    .hub-timeline-day {
        margin-left: 0;
    }
}

/* ============================================
   COMPOSE / CHAT MODAL (mockup UI)
============================================ */

.support-chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 49;
    backdrop-filter: blur(4px);
}

.support-chat-backdrop:not(.hidden) {
    display: block;
}

.support-compose-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

.support-compose-modal.flex {
    pointer-events: auto;
}

.support-compose-modal.hidden {
    display: none !important;
}

.compose-modal-card {
    width: 100%;
    max-width: 920px;
    max-height: min(88vh, 640px);
    background: #1a1f2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    animation: chatFadeIn 0.35s ease-out;
}

.compose-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.5rem;
}

.compose-tabs {
    display: flex;
    gap: 0.35rem;
}

.compose-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #9ca3af;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
}

.compose-tab:hover {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.05);
}

.compose-tab.is-active {
    color: #000;
    background: #FECB00;
    border-color: #FECB00;
}

.compose-header-actions {
    display: flex;
    gap: 0.25rem;
}

.compose-header-actions--end {
    margin-left: auto;
}

.compose-body--full .compose-main {
    width: 100%;
}

.compose-header-btn {
    padding: 0.4rem;
    border-radius: 0.375rem;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.compose-header-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.compose-header-btn--close:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}

.compose-chat-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compose-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #FECB00, #e6b800);
    display: flex;
    align-items: center;
    justify-content: center;
}

.compose-avatar--production {
    background: rgba(34, 197, 94, 0.25);
}

.compose-chat-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0;
}

.compose-chat-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

.compose-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.compose-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.compose-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    min-height: 120px;
    max-height: none;
}

.compose-typing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.compose-editor {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #151922;
}

.compose-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    padding: 0.4rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compose-tool-btn {
    padding: 0.35rem;
    border-radius: 0.25rem;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
}

.compose-tool-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.compose-input-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.65rem;
}

.compose-textarea {
    flex: 1;
    min-height: 4.5rem;
    max-height: 8rem;
    overflow-y: auto;
    padding: 0.65rem 0.75rem;
    background: #252b3b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.45;
    outline: none;
}

.compose-textarea:empty::before {
    content: attr(data-placeholder);
    color: #6b7280;
    pointer-events: none;
}

.compose-textarea:focus {
    border-color: rgba(254, 203, 0, 0.4);
    box-shadow: 0 0 0 2px rgba(254, 203, 0, 0.12);
}

.compose-send-btn {
    padding: 0.55rem 1.1rem;
    background: #FECB00;
    color: #000;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
    min-width: auto;
    width: auto;
    height: auto;
}

.compose-send-btn:hover {
    background: #e6b800;
    transform: none;
    box-shadow: none;
}

.compose-upload-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: #252b3b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    cursor: pointer;
}

.compose-quick-actions {
    width: 11rem;
    flex-shrink: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: #151922;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compose-quick-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin: 0 0 0.25rem;
}

.compose-quick-lock {
    opacity: 0.6;
}

.compose-quick-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    overflow-y: auto;
}

.compose-quick-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.compose-quick-btn:hover {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.55);
}

.compose-quick-empty {
    margin: 0;
}

#supportChat.fullscreen .compose-modal-card {
    max-width: min(96vw, 1100px);
    max-height: min(92vh, 780px);
}

#supportChat.chat-mode-production .compose-tab[data-compose-tab="production"],
#supportChat.chat-mode-production .compose-tab.is-active[data-compose-tab="production"] {
    background: var(--chat-brand-a12);
    color: var(--chat-brand, #A52422);
    border-color: var(--chat-brand-a35);
}

#supportChat.chat-mode-production .compose-avatar {
    background: var(--chat-brand-a15);
    color: var(--chat-brand, #A52422);
}

@media (max-width: 640px) {
    .compose-body {
        flex-direction: column;
    }

    .compose-quick-actions {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .compose-quick-list {
        flex-direction: row;
        flex-wrap: wrap;
        flex: 1;
    }

    .compose-quick-btn {
        flex: 1 1 auto;
        min-width: 7rem;
    }
}

/* Classic guided chat widget (restored) */
#supportChat.support-chat-widget {
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

#supportChat.support-chat-widget.hidden {
    display: none !important;
}

#supportChat.support-chat-widget #aiChatMessages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

#supportChat.support-chat-widget.fullscreen {
    top: 12.5% !important;
    left: 12.5% !important;
    right: 12.5% !important;
    bottom: 12.5% !important;
    width: 75vw !important;
    height: 75vh !important;
    max-width: 75vw !important;
    max-height: 75vh !important;
    border-radius: 20px !important;
    padding: 0 !important;
}

#supportChat.support-chat-widget.fullscreen #aiChatMessages {
    height: calc(75vh - 180px) !important;
    max-height: calc(75vh - 180px) !important;
}

.production-input-locked .chat-input {
    opacity: 0.55;
    cursor: not-allowed;
}

.modify-design-upload-hint {
    margin: 0 0 0.5rem 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fbbf24;
    background: var(--chat-brand-a10);
    border: 1px solid var(--chat-brand-a35);
    border-radius: 0.5rem;
}

/* Print placement picker (modify design placement flow) */
.placement-picker-ui {
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.95) 0%, rgba(7, 11, 20, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 1rem 1.1rem 1.15rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.placement-picker__header {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.55);
}

.placement-picker__title {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.placement-picker__hint {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.45;
}

.placement-picker__section {
    margin-bottom: 1rem;
}

.placement-picker__section:last-child {
    margin-bottom: 0;
}

.placement-picker__section-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.placement-picker__section--current .placement-picker__section-title {
    color: #fbbf24;
}

.placement-picker__section--add .placement-picker__section-title {
    color: #60a5fa;
}

.placement-picker__section-desc {
    margin: 0 0 0.65rem;
    font-size: 0.6875rem;
    color: #64748b;
}

.placement-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 420px) {
    .placement-chip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.placement-chip-grid--scroll {
    max-height: 11.5rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.placement-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: left;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.65);
}

.placement-chip__thumb {
    display: none;
}

.placement-chip--with-thumb {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.75rem;
    text-align: center;
}

.placement-chip--with-thumb .placement-chip__icon {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.placement-chip--with-thumb.placement-chip--remove .placement-chip__icon {
    background: var(--chat-brand-a18);
    color: #fbbf24;
}

.placement-chip--with-thumb.placement-chip--add .placement-chip__icon {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.placement-chip--with-thumb .placement-chip__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.placement-chip--with-thumb .placement-chip__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    display: block;
}

.placement-chip--with-thumb .placement-chip__label {
    color: #e5e7eb;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.placement-chip--with-thumb .placement-chip__label {
    white-space: normal;
}

.placement-chip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.placement-chip__icon svg {
    width: 0.85rem;
    height: 0.85rem;
}

.placement-chip__label {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
    color: #e2e8f0;
}

.placement-chip--remove {
    border-color: var(--chat-brand-a35);
}

.placement-chip--remove .placement-chip__icon {
    background: var(--chat-brand-a15);
    color: #fbbf24;
}

.placement-chip--remove:hover {
    background: var(--chat-brand-a12);
    border-color: var(--chat-brand-a55);
    transform: translateY(-1px);
}

.placement-chip--add {
    border-color: rgba(96, 165, 250, 0.3);
}

.placement-chip--add .placement-chip__icon {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.placement-chip--add:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(96, 165, 250, 0.5);
    transform: translateY(-1px);
}

.placement-picker__section--actions {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(51, 65, 85, 0.55);
}

.placement-picker__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.placement-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.placement-action-btn:active {
    transform: scale(0.98);
}

.placement-action-btn--primary {
    color: var(--chat-on-brand);
    background: linear-gradient(180deg, var(--chat-brand-mid) 0%, var(--chat-brand) 100%);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px var(--chat-brand-a25);
}

.placement-action-btn--primary:hover {
    filter: brightness(1.05);
}

.placement-action-btn--success {
    color: #ecfdf5;
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(74, 222, 128, 0.45);
}

.placement-action-btn--success:hover {
    background: rgba(34, 197, 94, 0.28);
}

.placement-action-btn--ghost {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(148, 163, 184, 0.25);
}

.placement-action-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.modify-design-upload-hint--busy {
    color: #93c5fd;
    background: rgba(18, 115, 235, 0.12);
    border-color: rgba(18, 115, 235, 0.35);
}

/* Post-resolution support feedback card */
.support-feedback-card {
    margin: 0.75rem 0.5rem 1rem;
    padding: 1rem 1.1rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, rgba(18, 115, 235, 0.18), rgba(255, 204, 0, 0.1));
    border: 1px solid rgba(255, 204, 0, 0.28);
}

.support-feedback-card--thanks {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(74, 222, 128, 0.35);
}

.support-feedback-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.support-feedback-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.support-feedback-stars {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.support-feedback-star {
    background: transparent;
    border: 0;
    color: #4b5563;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.support-feedback-star.is-active {
    color: var(--chat-brand-mid);
}

.support-feedback-star:hover {
    transform: scale(1.08);
}

.support-feedback-comment {
    width: 100%;
    resize: vertical;
    min-height: 4.5rem;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.75);
    color: #e2e8f0;
    font-size: 0.85rem;
}

.support-feedback-comment:focus {
    outline: none;
    border-color: var(--chat-brand-a55);
    box-shadow: 0 0 0 2px var(--chat-brand-a15);
}

.support-feedback-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.support-feedback-submit,
.support-feedback-skip {
    border-radius: 0.65rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 0;
}

.support-feedback-submit {
    background: linear-gradient(180deg, var(--chat-brand-mid) 0%, var(--chat-brand) 100%);
    color: var(--chat-on-brand);
}

.support-feedback-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.support-feedback-skip {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Customer Profile Avatar in Chat Header */

/* ---- Brand: modal, FAQ, badges (page-support) ---- */
.support-modal-panel {
    background: var(--ci-card-bg, #fff);
    border: 1px solid var(--ci-border, #e5e7eb);
    border-radius: 14px;
    box-shadow: var(--ci-card-shadow-hover);
    color: var(--ci-text);
}

.support-field-label {
    color: var(--ci-text-muted);
    font-weight: 500;
}

.support-field-input {
    background: #fff;
    border: 1px solid var(--ci-border, #e5e7eb);
    color: var(--ci-text);
}

.support-field-input:focus {
    outline: none;
    border-color: var(--ci-brand);
    box-shadow: 0 0 0 2px var(--ci-brand-light);
}

.support-file-input::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 6px;
    background: var(--ci-brand);
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
}

.support-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ci-border, #e5e7eb);
    background: #fff;
    color: var(--ci-text);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.support-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

body.page-support .text-gray-400,
body.page-support .profile-muted {
    color: var(--ci-text-muted) !important;
}

body.page-support .hub-column__label .nav-count-badge {
    background: #dc2626;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
}

body.page-support #ticketModal {
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(2px);
}

body.page-support #supportChat .chat-header-gradient {
    background: linear-gradient(135deg, var(--ci-brand) 0%, var(--ci-brand-dark, #7F3937) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.page-support #supportChat .chat-header-gradient .text-gray-400,
body.page-support #supportChat #chatHeaderSubtitle {
    color: rgba(255, 255, 255, 0.75) !important;
}

body.page-support #supportChat .chat-header-btn {
    color: rgba(255, 255, 255, 0.8);
}

body.page-support #supportChat .chat-header-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   Production chat — light theme (readable on white surfaces)
   Overrides Tailwind dark utilities + support-chat dark tokens
   ============================================================ */
#supportChat.chat-mode-production {
    --chat-brand-soft: #7F3937;
    --chat-brand-light: #A52422;
    --chat-bg: #ffffff;
    --chat-bg-muted: #f9fafb;
    --chat-bg-subtle: #f3f4f6;
    --chat-border: #e5e7eb;
    --chat-border-strong: #d1d5db;
    --chat-text: #111827;
    --chat-text-secondary: #374151;
    --chat-text-muted: #6b7280;
    --chat-incoming-bg: #ffffff;
    --chat-incoming-text: #111827;
    backdrop-filter: none !important;
}

body.page-support #supportChat.chat-mode-production .chat-header-gradient,
#supportChat.chat-mode-production .chat-header-gradient.pm-chat-header,
#supportChat.chat-mode-production .chat-header-gradient {
    background: var(--chat-bg) !important;
    border-bottom: 1px solid var(--chat-border) !important;
    backdrop-filter: none !important;
    padding: 0.875rem 1rem !important;
    min-height: 3.25rem !important;
    align-items: center !important;
    gap: 0.625rem !important;
}

#supportChat.chat-mode-production.fullscreen .chat-header-gradient {
    padding: 1rem 1.125rem !important;
    min-height: 3.5rem !important;
}

#supportChat.chat-mode-production #chatHeaderAvatar {
    width: 2.25rem !important;
    height: 2.25rem !important;
    min-width: 2.25rem !important;
    min-height: 2.25rem !important;
    box-shadow: 0 2px 8px var(--chat-brand-a25) !important;
}

#supportChat.chat-mode-production #chatHeaderIcon {
    font-size: 1rem !important;
    line-height: 1 !important;
}

#supportChat.chat-mode-production .chat-header-gradient > .flex.items-center {
    gap: 0.625rem !important;
    min-width: 0;
}

#supportChat.chat-mode-production .chat-header-btn {
    padding: 0.375rem !important;
    border-radius: 0.375rem !important;
}

#supportChat.chat-mode-production .chat-header-btn svg {
    width: 1rem !important;
    height: 1rem !important;
}

body.page-support #supportChat.chat-mode-production #chatHeaderTitle,
#supportChat.chat-mode-production #chatHeaderTitle {
    color: var(--chat-text) !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

body.page-support #supportChat.chat-mode-production #chatHeaderSubtitle,
body.page-support #supportChat.chat-mode-production .chat-header-gradient .text-gray-400,
#supportChat.chat-mode-production #chatHeaderSubtitle {
    color: var(--chat-text-muted) !important;
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin-top: 0.125rem !important;
}

body.page-support #supportChat.chat-mode-production .chat-header-btn,
#supportChat.chat-mode-production .chat-header-btn {
    color: var(--chat-text-muted) !important;
}

body.page-support #supportChat.chat-mode-production .chat-header-btn:hover,
#supportChat.chat-mode-production .chat-header-btn:hover {
    color: var(--chat-brand) !important;
    background: var(--chat-brand-a08) !important;
}

#supportChat.chat-mode-production #aiChatMessages {
    background: var(--chat-bg-muted) !important;
}

#supportChat.chat-mode-production #aiTypingIndicator {
    color: var(--chat-text-muted) !important;
    background: var(--chat-bg) !important;
    border-color: var(--chat-border) !important;
}

#supportChat.chat-mode-production #chatTypingLabel {
    color: var(--chat-text-muted) !important;
}

#supportChat.chat-mode-production #chatInputArea.production-files-only #aiChatInput,
#supportChat.chat-mode-production #chatInputArea.production-files-only .chat-input {
    display: none !important;
}

#supportChat.chat-mode-production #chatInputArea.production-files-only > .flex {
    justify-content: stretch;
    width: 100%;
}

#supportChat.chat-mode-production #chatInputArea.production-files-only > .flex > .flex-1 {
    display: none !important;
}

#supportChat.chat-mode-production #chatInputArea.production-files-only .chat-send-btn {
    display: none !important;
}

#supportChat.chat-mode-production #chatInputArea {
    background: var(--chat-bg) !important;
    border-color: var(--chat-border) !important;
    backdrop-filter: none !important;
}

#supportChat.chat-mode-production #aiChatInput {
    background: var(--chat-bg-muted) !important;
    color: var(--chat-text) !important;
    border-color: var(--chat-border) !important;
}

#supportChat.chat-mode-production #aiChatInput::placeholder {
    color: #9ca3af !important;
}

#supportChat.chat-mode-production #chatInputArea > .flex + p,
#supportChat.chat-mode-production #chatInputArea .text-xs {
    color: var(--chat-text-muted) !important;
}

#supportChat.chat-mode-production .chat-upload-btn {
    background: var(--chat-bg-muted) !important;
    border-color: var(--chat-border) !important;
    color: var(--chat-text-muted) !important;
}

#supportChat.chat-mode-production .chat-upload-btn:hover {
    background: var(--chat-brand-a08) !important;
    border-color: var(--chat-brand-a35) !important;
    color: var(--chat-brand) !important;
}

#supportChat.chat-mode-production .chat-upload-btn.chat-upload-btn--design {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 2.875rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.75rem;
    letter-spacing: 0.01em;
    color: var(--chat-on-brand) !important;
    background: var(--chat-brand) !important;
    border-color: var(--chat-brand) !important;
    box-shadow: 0 4px 14px var(--chat-brand-a25);
}

#supportChat.chat-mode-production .chat-upload-btn.chat-upload-btn--design:hover {
    background: var(--chat-brand-mid) !important;
    border-color: var(--chat-brand-mid) !important;
    color: var(--chat-on-brand) !important;
}

#supportChat.chat-mode-production .chat-upload-btn.chat-upload-btn--design.chat-upload-btn--placement {
    font-size: 0.8125rem;
    line-height: 1.3;
    padding: 0.7rem 1rem;
}

#supportChat.chat-mode-production .chat-upload-btn.chat-upload-btn--design:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#supportChat.chat-mode-production #chatFooterHint.hidden {
    display: none !important;
}

#supportChat.chat-mode-production #aiChatMessages .text-gray-300,
#supportChat.chat-mode-production #aiChatMessages .text-gray-400,
#supportChat.chat-mode-production #aiChatMessages .text-gray-500 {
    color: var(--chat-text-muted) !important;
}

#supportChat.chat-mode-production #aiChatMessages .options-instruction {
    color: var(--chat-text-muted) !important;
}

#supportChat.chat-mode-production .ai-message-bubble:not(.production-vendor-request) {
    background: var(--chat-incoming-bg) !important;
    color: var(--chat-incoming-text) !important;
    border: 1px solid var(--chat-border) !important;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06) !important;
}

#supportChat.chat-mode-production .ai-message-bubble.production-vendor-request {
    background: var(--chat-incoming-bg) !important;
    color: var(--chat-text) !important;
    border: 1px solid var(--chat-border) !important;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06) !important;
}

#supportChat.chat-mode-production .ai-message-bubble.production-vendor-request .pm-chat-bubble__badge,
#supportChat.chat-mode-production .ai-message-bubble.production-vendor-request .pm-chat-bubble__reason {
    color: var(--chat-brand) !important;
}

#supportChat.chat-mode-production .ai-message-bubble.production-vendor-request .pm-chat-bubble__type {
    color: var(--chat-brand-soft) !important;
}

#supportChat.chat-mode-production .ai-message-bubble.production-vendor-request .pm-chat-bubble__placements,
#supportChat.chat-mode-production .ai-message-bubble.production-vendor-request .vendor-query-placements-list,
#supportChat.chat-mode-production .ai-message-bubble.production-vendor-request .vendor-query-placements-list li,
#supportChat.chat-mode-production .ai-message-bubble.production-vendor-request .pm-chat-vendor-query__body {
    color: var(--chat-text-secondary) !important;
}

#supportChat.chat-mode-production .agent-message-bubble {
    background: var(--chat-incoming-bg) !important;
    color: var(--chat-incoming-text) !important;
    border: 1px solid var(--chat-border) !important;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06) !important;
}

#supportChat.chat-mode-production .ai-message-bubble.production-progress-update {
    background: var(--chat-incoming-bg) !important;
    border: 1px solid var(--chat-border) !important;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06) !important;
}

#supportChat.chat-mode-production .ai-message-bubble.production-progress-update,
#supportChat.chat-mode-production .ai-message-bubble.production-progress-update .pm-chat-progress-update__text {
    color: var(--chat-text-secondary) !important;
}

#supportChat.chat-mode-production .ai-message-bubble.production-progress-update .pm-chat-progress-update__stage,
#supportChat.chat-mode-production .ai-message-bubble.production-progress-update .pm-chat-bubble__badge {
    color: var(--chat-brand) !important;
}

#supportChat.chat-mode-production .customer-message-bubble.production-reply-card {
    background: var(--chat-brand) !important;
    color: var(--chat-on-brand) !important;
}

#supportChat.chat-mode-production .system-message-bubble {
    background: var(--chat-bg-subtle) !important;
    border-color: var(--chat-border-strong) !important;
    color: var(--chat-text-muted) !important;
}

#supportChat.chat-mode-production .vendor-query-banner,
#supportChat.chat-mode-production .vendor-query-bubble {
    background: var(--chat-brand-a08) !important;
    border-color: var(--chat-brand-a35) !important;
    color: var(--chat-text) !important;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06) !important;
}

#supportChat.chat-mode-production .vendor-query-title {
    color: var(--chat-brand) !important;
}

#supportChat.chat-mode-production .pm-chat-response-panel {
    background: var(--chat-brand-a06) !important;
    border-color: var(--chat-brand-a35) !important;
}

#supportChat.chat-mode-production .pm-chat-response-panel__title,
#supportChat.chat-mode-production .production-clarification-hint,
#supportChat.chat-mode-production .pm-chat-response-panel__hint {
    color: var(--chat-brand) !important;
}

#supportChat.chat-mode-production .pm-chat-response-btn,
#supportChat.chat-mode-production .production-reply-btn {
    background: var(--chat-bg) !important;
    color: var(--chat-text) !important;
    border-color: var(--chat-brand-a35) !important;
}

#supportChat.chat-mode-production .pm-chat-response-btn:hover,
#supportChat.chat-mode-production .production-reply-btn:hover {
    background: var(--chat-brand-a08) !important;
    border-color: var(--chat-brand-a55) !important;
}

#supportChat.chat-mode-production .pm-chat-response-btn__sub {
    color: var(--chat-text-muted) !important;
}

#supportChat.chat-mode-production .production-upload-bar {
    color: var(--chat-brand) !important;
    background: var(--chat-brand-a08) !important;
    border-color: var(--chat-brand-a25) !important;
}

#supportChat.chat-mode-production .production-info-banner {
    color: var(--chat-text) !important;
}

#supportChat.chat-mode-production #aiChatMessages .bg-gray-800,
#supportChat.chat-mode-production #aiChatMessages a.bg-gray-800 {
    background: var(--chat-bg-muted) !important;
    border-color: var(--chat-border) !important;
}

#supportChat.chat-mode-production #aiChatMessages .bg-gray-800:hover,
#supportChat.chat-mode-production #aiChatMessages a.bg-gray-800:hover {
    background: var(--chat-brand-a06) !important;
}

#supportChat.chat-mode-production #aiChatMessages .bg-gray-800 .text-white,
#supportChat.chat-mode-production #aiChatMessages .bg-gray-800 p {
    color: var(--chat-text) !important;
}

#supportChat.chat-mode-production #aiChatMessages .text-blue-400 {
    color: var(--chat-brand) !important;
}

#supportChat.chat-mode-production .pm-chat-customer-upload,
#supportChat.chat-mode-production .customer-message-bubble.pm-chat-customer-upload,
#supportChat.chat-mode-production .ai-message-bubble.pm-chat-customer-upload {
    background: var(--chat-bg) !important;
    border-color: var(--chat-border) !important;
}

#supportChat.chat-mode-production .pm-chat-upload-title {
    color: var(--chat-text) !important;
}

#supportChat.chat-mode-production .pm-chat-upload-zone-pill {
    background: var(--chat-brand) !important;
    color: #fff !important;
}

#supportChat.chat-mode-production .pm-chat-upload-preview,
#supportChat.chat-mode-production .pm-chat-upload-preview img {
    background: var(--chat-bg-muted) !important;
}

#supportChat.chat-mode-production .pm-chat-upload-filename {
    color: var(--chat-text-muted) !important;
}

#supportChat.chat-mode-production .pm-chat-upload-open {
    color: var(--chat-brand) !important;
}

#supportChat.chat-mode-production .production-workflow-card__label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== Production Chat – Customer Order Details Panel ===== */
#supportChat.chat-mode-production .production-order-details {
    flex: 0 0 auto;
    border-bottom: 1px solid rgba(165, 36, 34, 0.22);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

#supportChat .production-order-details__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.55rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f87171;
    gap: 0.5rem;
    letter-spacing: 0.02em;
}

#supportChat .production-order-details__toggle-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#supportChat .production-order-details__chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}

#supportChat .production-order-details.is-open .production-order-details__chevron {
    transform: rotate(180deg);
}

#supportChat .production-order-details__body {
    display: none;
    padding: 0 1rem 0.75rem;
}

#supportChat .production-order-details.is-open .production-order-details__body {
    display: block;
}

#supportChat .production-order-details__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 0.75rem;
    margin: 0;
}

#supportChat .production-order-details__row {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

#supportChat .production-order-details__row dt {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.38);
    margin: 0;
}

#supportChat .production-order-details__row dd {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    word-break: break-word;
}

#supportChat .production-order-details__empty {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.38);
    margin: 0 0 0.25rem;
}

#supportChat .production-order-details__link {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #f87171;
    text-decoration: none;
}

#supportChat .production-order-details__link:hover {
    text-decoration: underline;
}