/**
 * Remco Floating AI Assistant (Fatima) Styles
 * Provides styling for the floating dock trigger button, chat drawer, product cards, and interactions.
 */

/* ==========================================================================
   1. Floating Dock Trigger Button (#rcFloatAiBtn)
   ========================================================================== */
.rc-float-btn.rc-float-ai {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #10b981 0%, #1a3c2a 100%);
    color: #ffffff;
    border: 2px solid #d4a843;
    position: relative;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    animation: rcAiPulseGlow 3.5s infinite;
}

.rc-float-btn.rc-float-ai:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5), 0 4px 14px rgba(0, 0, 0, 0.25);
    border-color: #ffd700;
}

.rc-float-btn.rc-float-ai.is-active {
    background: linear-gradient(135deg, #0d9488 0%, #064e3b 100%);
    border-color: #34d399;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3), 0 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes rcAiPulseGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 22px rgba(16, 185, 129, 0.6), 0 0 0 4px rgba(212, 168, 67, 0.25);
    }
}

/* Status Indicator Dot on Button */
.rc-float-ai-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: rcPulseDot 2s infinite;
}

@keyframes rcPulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Floating Hover Tooltip / Badge */
.rc-float-ai-label {
    position: absolute;
    left: calc(100% + 12px);
    background: #1a3c2a;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(212, 168, 67, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

[dir="rtl"] .rc-float-ai-label,
.rtl .rc-float-ai-label {
    left: auto;
    right: calc(100% + 12px);
    transform: translateX(10px);
}

.rc-float-btn.rc-float-ai:hover .rc-float-ai-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Unread Badge */
.rc-float-ai-unread {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   2. Floating AI Chat Widget (#rcFloatingAiWidget)
   ========================================================================== */
.rc-floating-ai-widget {
    position: fixed;
    bottom: 96px;
    left: 24px;
    width: 390px;
    max-width: calc(100vw - 36px);
    height: 580px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(26, 60, 42, 0.12);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(16, 185, 129, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 99998;
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    direction: rtl;
    text-align: right;
    
    /* Animation / Visibility */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(24px) scale(0.95);
    transform-origin: bottom left;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.3s;
}

[dir="ltr"] .rc-floating-ai-widget,
.ltr .rc-floating-ai-widget {
    left: 24px;
    direction: ltr;
    text-align: left;
}

.rc-floating-ai-widget.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   3. Widget Header
   ========================================================================== */
.rc-fai-header {
    background: linear-gradient(135deg, #1a3c2a 0%, #0d261a 100%);
    color: #ffffff;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #d4a843;
    flex-shrink: 0;
}

.rc-fai-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rc-fai-avatar-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.rc-fai-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 2px solid #d4a843;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.rc-fai-status-pulse {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 11px;
    height: 11px;
    background: #10b981;
    border: 2px solid #1a3c2a;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

.rc-fai-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.rc-fai-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.rc-fai-badge-role {
    font-size: 10.5px;
    font-weight: 600;
    background: rgba(212, 168, 67, 0.2);
    color: #ffd700;
    border: 1px solid rgba(212, 168, 67, 0.4);
    padding: 2px 7px;
    border-radius: 10px;
}

.rc-fai-status-text {
    font-size: 11.5px;
    color: #a7f3d0;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
}

.rc-fai-status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.rc-floating-ai-widget button {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1;
    border: none;
    outline: none;
}

/* Header Action Buttons */
.rc-fai-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rc-fai-act-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.rc-fai-act-btn svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
    width: 16px !important;
    height: 16px !important;
}

.rc-fai-act-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.rc-fai-act-btn.rc-fai-close-btn:hover {
    background: rgba(239, 68, 68, 0.4) !important;
    color: #ffffff !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
}

/* ==========================================================================
   4. Messages Feed (#rcFaiFeed)
   ========================================================================== */
.rc-fai-feed {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #f8faf9;
    scroll-behavior: smooth;
}

.rc-fai-feed::-webkit-scrollbar {
    width: 5px;
}

.rc-fai-feed::-webkit-scrollbar-thumb {
    background: rgba(26, 60, 42, 0.18);
    border-radius: 10px;
}

/* Individual Message Rows */
.rc-fai-msg {
    display: flex;
    gap: 9px;
    max-width: 90%;
    animation: rcMsgFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.rc-fai-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 2px;
    background: #ffffff;
    border: 1.5px solid #d4a843;
}

.rc-fai-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rc-fai-msg-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.rc-fai-bubble {
    font-size: 13.5px;
    line-height: 1.6;
    border-radius: 16px;
    padding: 10px 14px;
    word-break: break-word;
}

/* Bot Message */
.rc-fai-bot {
    align-self: flex-start;
}

.rc-fai-bot .rc-fai-bubble {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rc-fai-bot .rc-fai-bubble strong {
    color: #1a3c2a;
}

/* User Message */
.rc-fai-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.rc-fai-user .rc-fai-bubble {
    background: linear-gradient(135deg, #1a3c2a 0%, #12281c 100%);
    color: #ffffff;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(26, 60, 42, 0.25);
}

.rc-fai-user-image {
    max-width: 160px;
    max-height: 120px;
    border-radius: 10px;
    margin-bottom: 6px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rc-fai-time {
    font-size: 10.5px;
    color: #94a3b8;
    align-self: flex-start;
    padding: 0 4px;
}

.rc-fai-user .rc-fai-time {
    align-self: flex-end;
}

/* ==========================================================================
   5. Quick Suggestion Chips
   ========================================================================== */
.rc-fai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.rc-fai-chip {
    background: #ffffff !important;
    color: #1a3c2a !important;
    border: 1px solid rgba(26, 60, 42, 0.18) !important;
    padding: 6px 12px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    text-align: right !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    line-height: 1.4 !important;
}

.rc-fai-chip:hover {
    background: #1a3c2a !important;
    color: #ffffff !important;
    border-color: #1a3c2a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(26, 60, 42, 0.15) !important;
}

/* ==========================================================================
   6. Interactive WhatsApp Badge (Fatima response)
   ========================================================================== */
.rc-fai-msg .rai-wa-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff !important;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none !important;
    margin: 8px 0;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.rc-fai-msg .rai-wa-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    color: #ffffff !important;
}

.rc-fai-msg .rai-wa-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rc-fai-msg .rai-wa-badge-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.rc-fai-msg .rai-wa-badge-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.rc-fai-msg .rai-wa-badge-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.rc-fai-msg .rai-wa-badge-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-fai-msg .rai-wa-badge-arrow {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.rc-fai-msg .rai-wa-badge:hover .rai-wa-badge-arrow {
    transform: translateX(-4px);
}

/* ==========================================================================
   7. Product Cards Grid in Drawer
   ========================================================================== */
.rc-fai-products {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.rc-fai-product-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.rc-fai-product-card:hover {
    border-color: #10b981;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.12);
}

.rc-fai-product-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}

.rc-fai-product-info {
    flex: 1;
    min-width: 0;
}

.rc-fai-product-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    line-height: 1.35;
}

.rc-fai-product-title:hover {
    color: #10b981;
}

.rc-fai-product-price {
    font-size: 12.5px;
    font-weight: 700;
    color: #1a3c2a;
}

.rc-fai-product-atc {
    background: #1a3c2a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.rc-fai-product-atc:hover {
    background: #10b981;
    transform: translateY(-1px);
}

.rc-fai-product-atc.is-added {
    background: #059669;
    pointer-events: none;
}

/* ==========================================================================
   8. Typing Indicator
   ========================================================================== */
.rc-fai-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.rc-fai-typing-bubble {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.rc-fai-typing-bubble .rc-fai-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: rcFaiBlink 1.4s infinite ease-in-out both;
}

.rc-fai-typing-bubble .rc-fai-dot:nth-child(1) { animation-delay: -0.32s; }
.rc-fai-typing-bubble .rc-fai-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes rcFaiBlink {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   9. Attachment Preview Bar
   ========================================================================== */
.rc-fai-attach-preview {
    padding: 8px 12px;
    background: #edf7f2;
    border-top: 1px solid #c7e6d7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rc-fai-attach-thumb-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.rc-fai-attach-thumb-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #10b981;
}

.rc-fai-attach-del {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    line-height: 1;
}

.rc-fai-attach-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rc-fai-attach-name {
    font-size: 11.5px;
    font-weight: 600;
    color: #1a3c2a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-fai-attach-hint {
    font-size: 10px;
    color: #059669;
}

/* ==========================================================================
   10. Input Bar (#rcFaiForm)
   ========================================================================== */
.rc-fai-input-bar {
    padding: 10px 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rc-fai-tool-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.rc-fai-tool-btn svg {
    stroke: #475569 !important;
    width: 19px !important;
    height: 19px !important;
}

.rc-fai-tool-btn:hover {
    background: #f1f5f9 !important;
    color: #1a3c2a !important;
    border-color: #10b981 !important;
}

.rc-fai-input {
    flex: 1;
    height: 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 0 14px;
    font-size: 13px;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f8fafc;
}

.rc-fai-input:focus {
    border-color: #10b981;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.rc-fai-send-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: linear-gradient(135deg, #1a3c2a 0%, #10b981 100%) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.rc-fai-send-btn svg {
    fill: #ffffff !important;
    width: 17px !important;
    height: 17px !important;
    transform: rotate(180deg);
}

.rc-fai-send-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45) !important;
}

.rc-fai-send-btn:disabled {
    background: #cbd5e1 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Watermark */
.rc-fai-watermark {
    padding: 6px 12px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 10px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* ==========================================================================
   11. Mobile Responsiveness
   ========================================================================== */
@media (max-width: 600px) {
    .rc-floating-ai-widget {
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 85vh !important;
        max-height: 85vh !important;
        border-radius: 20px 20px 0 0 !important;
        border-bottom: none !important;
        transform: translateY(100%) !important;
    }

    .rc-floating-ai-widget.is-open {
        transform: translateY(0) !important;
    }

    .rc-fai-input-bar {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* ════════════════════════════════════════════════════════════════
   MASCOT PEEKING OVER FLOATING CHAT WIDGET
   ════════════════════════════════════════════════════════════════ */
.rc-floating-ai-widget {
    overflow: visible !important;
}
.rc-fai-header {
    border-radius: 22px 22px 0 0;
}
.rc-fai-mascot {
    position: absolute;
    top: -55px;
    right: 6px;
    width: 110px;
    aspect-ratio: 220 / 126;
    z-index: 10;
    pointer-events: none;
    line-height: 0;
    user-select: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rc-fai-mascot .reemco-mascot-img,
.rc-fai-mascot img {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
}
.reemco-mascot-eye {
    --eye-x: 0px;
    --eye-y: 0px;
    --eye-scale-y: 1;
    position: absolute;
    width: 3.18%;
    height: 16.67%;
    background: #c7fae8;
    border-radius: 999px;
    box-shadow:
        0 0 3px #5eead4,
        0 0 7px #34d399,
        0 0 12px rgba(52, 211, 153, 0.7);
    pointer-events: none;
    transform-origin: center center;
    transform: translate3d(var(--eye-x), var(--eye-y), 0) scaleY(var(--eye-scale-y));
    will-change: transform;
}
.reemco-mascot-eye-left {
    left: 54.09%;
    top: 42.06%;
}
.reemco-mascot-eye-right {
    left: 67.73%;
    top: 41.27%;
}
.reemco-mascot-eye.is-blinking {
    --eye-scale-y: 0.08;
    transition: transform 0.07s ease-in-out;
}
@media (max-width: 480px) {
    .rc-fai-mascot {
        top: -44px;
        right: 4px;
        width: 88px;
    }
}

/* ==========================================================================
   Phase 1: sell_mode Product Cards
   ========================================================================== */
.rc-fai-rfq-card {
    border-right: 3px solid #f59e0b;
}
.rc-fai-rfq-price {
    color: #d97706 !important;
    font-weight: 600;
    font-size: 11px !important;
}
.rc-fai-rfq-btn {
    background: #f59e0b !important;
    color: #fff !important;
}
.rc-fai-rfq-btn:hover {
    background: #d97706 !important;
}
.rc-fai-product-brand {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-bottom: 3px;
}
.rc-fai-product-clarify {
    display: block;
    color: #ea580c;
    font-size: 10px;
    margin-top: 2px;
}
.rc-fai-clarify-card {
    opacity: 0.85;
    border-right: 3px solid #fb923c;
}

/* Phase 2: Compare UI */
.rc-fai-compare-label {
    display: flex; align-items: center; gap: 4px;
    font-size: 11px; color: #666; cursor: pointer;
    margin-top: 4px; padding: 2px 0;
}
.rc-fai-compare-check { width: 14px; height: 14px; cursor: pointer; }
.rc-fai-compare-check:checked + span { color: #1a73e8; }
.rc-fai-compare-bar {
    display: none; align-items: center; justify-content: center; gap: 10px;
    padding: 8px 12px; background: #e8f0fe; border-radius: 8px; margin: 8px 0;
}
.rc-fai-compare-btn {
    background: #1a73e8; color: #fff; border: none; border-radius: 6px;
    padding: 6px 16px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.rc-fai-compare-btn:hover { background: #1557b0; }
.rc-fai-compare-count { font-size: 12px; color: #555; }
.rc-fai-comparison-table {
    width: 100%; overflow-x: auto; margin: 10px 0;
    border: 1px solid #e0e0e0; border-radius: 8px; padding: 8px;
}
.rc-fai-comparison-table h4 {
    margin: 0 0 8px; font-size: 14px; color: #333; text-align: center;
}
.rc-fai-comparison-table table {
    width: 100%; border-collapse: collapse; font-size: 12px;
}
.rc-fai-comparison-table th {
    background: #f5f5f5; padding: 6px 8px; text-align: right;
    border-bottom: 2px solid #e0e0e0; font-weight: 600; font-size: 11px;
    max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-fai-comparison-table td {
    padding: 5px 8px; border-bottom: 1px solid #f0f0f0; text-align: right;
    font-size: 11px;
}
.rc-fai-comparison-table tr:hover td { background: #f9f9f9; }
