﻿:root { --bg-gradient: linear-gradient(180deg, #fffaff, #f8e6f9, #e3e4ff); --accent: #7b61ff; --accent-2: #7b61ff; }

/* Avatar button */
#mila-avatar { position: fixed; bottom: 20px; right: 20px; width: 64px; height: 64px; border-radius: 100%; box-shadow: 1px 10px 9px rgba(0, 0, 0, 0.25); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 9996; animation: pulse 2s infinite; }
    #mila-avatar img { width: 100%; border-radius: 8px; }

/* Tooltip */
.tooltip { position: absolute; bottom: 80px; right: 0; background: white; color: #111; font-size: 14px; padding: 8px 12px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); white-space: nowrap; z-index: 10000; opacity: 1; transition: opacity 1s ease; }
    .tooltip.fade-out { opacity: 0; pointer-events: none; }
    .tooltip.hidden { display: none; }

/* Chatbox container */
#mila-chatbox { background: var(--bg-gradient); position: fixed; bottom: 90px; right: 20px; width: 780px; height: 500px; background: white; border-radius: 16px; box-shadow: 0 8px 28px rgba(0,0,0,.35); overflow: hidden; display: flex; flex-direction: column; z-index: 9998; }
    #mila-chatbox.hidden { display: none; }
    /*#mila-chatbox .consent-screen { padding: 20px; font-family: sans-serif; font-size: 14px; line-height: 1.4; position: absolute; height: 100%; background: var(--bg-gradient); }*/
    #mila-chatbox .buttons { margin-top: 16px; display: flex; gap: 10px; }
    #mila-chatbox button { flex: 1; padding: 10px; border-radius: 8px; border: none; cursor: pointer; }
/*#consent-yes { background: #3BC3C9; color: white; }*/
/*#consent-no { background: #ddd; }*/
#mila-chatbox iframe { flex: 1; border: none; }
#mila-chatbox.fullscreen iframe { width: 100% !important; height: 100% !important; border: none; }
#mila-chatbox.fullscreen { position: fixed !important; top: 0; left: 0; right: 0; bottom: 0; width: 100% !important; height: 100% !important; border-radius: 0 !important; z-index: 9999; }

/* 🔐 Consent Overlay – full-screen and topmost */
.consent-overlay { position: fixed !important; inset: 0; background: rgba(0, 0, 0, 0.65); display: flex; align-items: center; justify-content: center; z-index: 999999 !important; font-family: system-ui, sans-serif; }
    .consent-overlay.hidden { display: none !important; }

.consent-content { background: #fff; padding: 2.5rem 2rem; border-radius: 1rem; max-width: 420px; box-shadow: 0 0 40px rgba(0, 0, 0, 0.25); }

.consent-buttons { margin-top: 1rem; text-align: center; }

    .consent-buttons button { margin: 0.4rem; padding: 0.6rem 1.2rem; border: none; border-radius: 0.4rem; cursor: pointer; font-weight: 600; transition: background 0.2s ease; }
#consent-yes { background: #6C63FF; color: white; }
    #consent-yes:hover { background: #5549cc; }
#consent-no { background: #aaa; color: white; }
    #consent-no:hover { background: #888; }

/* ==============================
   Feedback Overlay
   ============================== */

.feedback-popup { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.35); /* slate overlay */ display: flex; align-items: center; justify-content: center; z-index: 9999; backdrop-filter: blur(3px); }

/* ==============================
   Feedback Card
   ============================== */

.feedback-card { position: relative; background: #ffffff; width: 92%; max-width: 440px; border-radius: 16px; padding: 28px 28px 26px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.04); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; animation: feedbackPop 0.28s ease-out; }

/* Close button */
.feedback-close { position: absolute; top: 14px; right: 14px; border: none; background: transparent; font-size: 18px; line-height: 1; color: #94a3b8; cursor: pointer; }

    .feedback-close:hover { color: #0f172a; }

/* ==============================
   Text hierarchy
   ============================== */

.feedback-card h3 { margin: 0; font-size: 19px; font-weight: 600; color: #0f172a; }

.feedback-subtitle { margin: 8px 0 22px; font-size: 14px; color: #64748b; }

/* ==============================
   Star Rating (centered & primary)
   ============================== */

.star-rating { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }

    .star-rating .star { font-size: 30px; color: #e5e7eb; cursor: pointer; transition: color 0.15s ease, transform 0.08s ease; }

        .star-rating .star:hover { color: #f59e0b; transform: scale(1.15); }

        .star-rating .star.active { color: #f59e0b; }

/* ==============================
   Comment box
   ============================== */
.feedback-card * { box-sizing: border-box; }
.feedback-card textarea { width: 100%; box-sizing: border-box; min-height: 96px; padding: 14px 15px; border-radius: 12px; border: 1px solid #e5e7eb; background: #f9fafb; font-size: 14px; resize: none; outline: none; }
    .feedback-card textarea::placeholder { color: #94a3b8; opacity: 1; }
    .feedback-card textarea:focus { background: #ffffff; border-color: #c7d2fe; }

/* ==============================
   Submit button (neutral)
   ============================== */

.feedback-submit { width: 100%; margin-top: 18px; padding: 12px; border-radius: 12px; border: none; background: #6366f1; color: #ffffff; font-size: 14px; font-weight: 600; cursor: pointer; }

    .feedback-submit:hover { background: #4f46e5; }
    .feedback-submit:disabled { background: #c7c9f8; cursor: not-allowed; opacity: 0.7; }
    .feedback-submit:not(:disabled):hover { background: #4f46e5; }

/* ==============================
   Animation
   ============================== */

@keyframes feedbackPop {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}






/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59,195,201, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(59,195,201, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59,195,201, 0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   Mila Chatbox Responsive Layout (non-destructive enhancement)
   ================================================================ */

/* Base desktop behaviour: keep your current styling but ensure it scales by viewport height */
#mila-chatbox { background: var(--bg-gradient); position: fixed; bottom: calc(64px + 24px + 8px); right: 20px; width: 780px; height: auto; max-height: calc(100vh - 16px); top: 8px; border-radius: 16px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); overflow: hidden; display: flex; flex-direction: column; z-index: 9998; }

/* 🔁 Laptop and medium screens (below ~1024px) */
@media (max-width: 1024px) {
    #mila-chatbox { width: 90vw; right: 1vw; bottom: 0px; top: 10px; height: auto; max-height: calc(100vh - 20px); }
}

/* 📱 Mobile: full-screen view */
@media (max-width: 767px) {
    #mila-chatbox { position: fixed; inset: 0; width: 100%; height: 100%; top: 0; right: 0; bottom: 0; left: 0; border-radius: 0; box-shadow: none; max-height: none; }
}


/* Powered By Mila */
.chat-powered-by { display: flex; justify-content: center; align-items: center; padding: 6px 12px 0px; font-size: 11px; line-height: 1; border-top: 1px solid rgba(0, 0, 0, 0.04); background: transparent; }

    .chat-powered-by a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: rgba(40, 40, 40, 0.65); transition: opacity 0.2s ease, color 0.2s ease; }

        .chat-powered-by a:hover { color: rgba(40, 40, 40, 0.95); }

.powered-logo { display: inline-block; object-fit: contain; vertical-align: middle; }

    .powered-logo.mila { height: 14px; width: auto; }

.chat-powered-by .sep { color: rgb(0 0 0); opacity: 0.6; }

.chat-powered-by .goldman-text { font-weight: 600; }