/* ==========================================================================
   Infinite Health - Side Floating Widgets & AI Chatbot CSS
   ========================================================================== */

:root {
    /* Matched to website theme: scheme-01.css + style.css */
    --ih-primary: #0272bc;          /* website --primary-color */
    --ih-secondary: #29abe2;        /* website --secondary-color */
    --ih-dark: #06507d;             /* website --bg-dark-1 */
    --ih-dark-deep: #044a6f;        /* deeper shade for gradient start */
    --ih-accent: #05d4c0;           /* accent cyan-teal */
    --ih-sky: #72e2f8;
    --ih-wa-green: #25d366;
    --ih-wa-dark: #128c7e;
    --ih-bg-light: #f8fafc;
    --ih-text-dark: #1a2530;        /* website --heading-font-color */
    --ih-text-muted: #64748b;
    --ih-border: #e2e8f0;
    --ih-shadow-lg: 0 16px 40px rgba(6, 80, 125, 0.16);
    --ih-shadow-glow: 0 0 24px rgba(41, 171, 226, 0.3);
}

/* ================= SIDE DOCK TRIGGERS (Middle Left & Middle Right) ================= */

/* Left Side: WhatsApp Trigger (Vertical) */
.ih-side-trigger-left {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--ih-wa-green), var(--ih-wa-dark));
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 0 14px 14px 0;
    padding: 14px 8px 16px 6px;
    box-shadow: 2px 8px 24px rgba(37, 211, 102, 0.35);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-left: none;
}

.ih-side-trigger-left:hover {
    padding-left: 9px;
    padding-right: 11px;
    transform: translateY(-50%) translateX(3px);
    box-shadow: 4px 12px 30px rgba(37, 211, 102, 0.5);
    color: #ffffff !important;
}

.ih-side-trigger-left .trigger-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.ih-side-trigger-left .trigger-icon svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.ih-side-trigger-left .trigger-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Right Side: AI Chatbot Trigger (Vertical) */
.ih-side-trigger-right {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--ih-dark-deep) 0%, var(--ih-dark) 50%, var(--ih-primary) 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 14px 0 0 14px;
    padding: 14px 6px 16px 8px;
    box-shadow: -2px 8px 24px rgba(6, 80, 125, 0.35), 0 0 20px rgba(41, 171, 226, 0.2);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(41, 171, 226, 0.35);
    border-right: none;
}

.ih-side-trigger-right:hover {
    padding-left: 11px;
    padding-right: 9px;
    transform: translateY(-50%) translateX(-3px);
    box-shadow: -4px 12px 32px rgba(6, 80, 125, 0.5), 0 0 25px rgba(41, 171, 226, 0.4);
    color: #ffffff !important;
}

.ih-side-trigger-right .trigger-icon {
    width: 28px;
    height: 28px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 6px;
    background: radial-gradient(circle, rgba(41, 171, 226, 0.25) 0%, transparent 70%);
}

.ih-side-trigger-right .trigger-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--ih-secondary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ih-side-trigger-right .pulse-dot {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 7px;
    height: 7px;
    background-color: var(--ih-secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--ih-secondary);
    animation: ihPulse 2s infinite ease-in-out;
}

@keyframes ihPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.ih-side-trigger-right .trigger-badge {
    background: linear-gradient(135deg, var(--ih-secondary), var(--ih-sky));
    color: var(--ih-dark);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 5px;
    border-radius: 8px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.ih-side-trigger-right .trigger-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    white-space: nowrap;
    color: #ffffff;
}

/* ================= AI CHATBOT MODAL & DRAWER ================= */

.ih-chat-modal {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 410px;
    max-width: calc(100vw - 32px);
    height: 610px;
    max-height: calc(100vh - 80px);
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(4, 6, 33, 0.18), 0 0 0 1px rgba(2, 114, 188, 0.08);
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(25px) scale(0.96);
    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;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    contain: layout style;         /* CSS containment for performance & isolation */
}

.ih-chat-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ===== BODY SCROLL LOCK when chat is open ===== */
body.ih-chat-open {
    overflow: hidden !important;
}

/* Chat Header */
.ih-chat-header {
    background: linear-gradient(135deg, #044a6f 0%, #06507d 40%, #0272bc 100%);
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
    flex-shrink: 0;
}

.ih-chat-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ih-chat-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 15px rgba(41, 171, 226, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ih-chat-avatar .ih-bot-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
    filter: drop-shadow(0 0 4px rgba(41, 171, 226, 0.5));
}

.ih-chat-avatar .status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--ih-dark);
    border-radius: 50%;
}

.ih-chat-title-wrap h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.ih-chat-title-wrap p {
    font-size: 12px;
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.ih-chat-title-wrap p .live-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #22c55e;
}

.ih-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ih-chat-header-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ih-chat-header-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--ih-secondary);
}

/* ===== Messages Body — SCROLL-CONTAINED ===== */
.ih-chat-body {
    flex: 1 1 0 !important;        /* shrink-basis 0 forces flex to respect the container */
    height: 0 !important;          /* height:0 + flex-grow:1 = true scroll containment */
    min-height: 0 !important;      /* override any min-height from global styles */
    max-height: none !important;    /* prevent any max-height interference */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;   /* prevent scroll chaining to parent page */
    isolation: isolate;             /* create new stacking context */
    padding: 18px 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

/* Custom scrollbar for chat body */
.ih-chat-body::-webkit-scrollbar {
    width: 5px;
}
.ih-chat-body::-webkit-scrollbar-track {
    background: transparent;
}
.ih-chat-body::-webkit-scrollbar-thumb {
    background: rgba(4, 119, 191, 0.25);
    border-radius: 10px;
}
.ih-chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(4, 119, 191, 0.45);
}

.ih-chat-welcome-card {
    background: #f1f5f9;
    border-radius: 18px;
    border-top-left-radius: 4px;
    padding: 16px 20px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    text-align: left;
    position: relative;
}

.ih-chat-welcome-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #1e293b;
    margin: 0 0 16px;
}

.ih-chat-quick-replies-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-bottom: 10px;
}

.ih-chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ih-quick-btn {
    background: #ffffff;
    border: 1px solid rgba(2, 114, 188, 0.15);
    color: #1e293b;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: left;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.ih-quick-btn:hover {
    background: #f8fafc;
    border-color: var(--ih-primary);
    color: var(--ih-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(2, 114, 188, 0.12);
}

/* Chat Message Bubbles */
.ih-msg-row {
    display: flex;
    flex-direction: column;
    max-width: 88%;
    animation: ihMsgFadeIn 0.22s ease-out forwards;
}

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

.ih-msg-row.user {
    align-self: flex-end;
    align-items: flex-end;
}

.ih-msg-row.assistant {
    align-self: flex-start;
    align-items: flex-start;
    max-width: 90%;
}

.ih-msg-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.62;
    word-break: break-word;
}

.ih-msg-row.user .ih-msg-bubble {
    background: var(--ih-primary);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(2, 114, 188, 0.15);
}

.ih-msg-row.assistant .ih-msg-bubble {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid rgba(2, 114, 188, 0.08);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Paragraphs */
.ih-msg-bubble p,
.ih-msg-bubble .ih-chat-paragraph {
    margin: 0 0 10px;
    line-height: 1.62;
}

.ih-msg-bubble p:last-child,
.ih-msg-bubble .ih-chat-paragraph:last-child {
    margin-bottom: 0;
}

/* Headings from RAG */
.ih-msg-bubble .ih-chat-heading {
    color: #044a6f;
    font-weight: 700;
    line-height: 1.4;
    margin: 12px 0 6px;
    display: block;
}

.ih-msg-bubble .ih-chat-heading:first-child {
    margin-top: 0;
}

.ih-msg-bubble h4.ih-chat-heading {
    font-size: 15px;
    letter-spacing: -0.2px;
}

.ih-msg-bubble h5.ih-chat-heading {
    font-size: 13.5px;
    letter-spacing: -0.1px;
    color: #06507d;
}

.ih-msg-row.user .ih-msg-bubble .ih-chat-heading {
    color: #ffffff;
}

/* Lists (Unordered & Ordered) */
.ih-msg-bubble ul.ih-chat-list,
.ih-msg-bubble ol.ih-chat-list,
.ih-msg-bubble ul,
.ih-msg-bubble ol {
    margin: 8px 0 10px 0;
    padding-left: 20px;
}

.ih-msg-bubble ul.ih-chat-list:last-child,
.ih-msg-bubble ol.ih-chat-list:last-child {
    margin-bottom: 0;
}

.ih-msg-bubble li {
    margin-bottom: 6px;
    line-height: 1.58;
    position: relative;
}

.ih-msg-bubble li:last-child {
    margin-bottom: 0;
}

.ih-msg-row.assistant .ih-msg-bubble ul.ih-chat-list > li::marker {
    color: var(--ih-primary, #0272bc);
}

.ih-msg-row.assistant .ih-msg-bubble ol.ih-chat-list > li::marker {
    color: var(--ih-primary, #0272bc);
    font-weight: 700;
}

.ih-msg-bubble strong {
    color: #0f172a;
    font-weight: 700;
}

.ih-msg-row.user .ih-msg-bubble strong {
    color: #ffffff;
}

/* Price and Inclusions Badge */
.ih-price-tag {
    display: inline-block;
    font-weight: 700;
    color: #0272bc;
    background: rgba(2, 114, 188, 0.08);
    padding: 1px 7px;
    border-radius: 6px;
    border: 1px solid rgba(2, 114, 188, 0.16);
    font-size: 13px;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.ih-msg-row.user .ih-price-tag {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Blockquotes */
.ih-chat-quote {
    margin: 10px 0;
    padding: 8px 14px;
    border-left: 3px solid var(--ih-secondary, #29abe2);
    background: rgba(41, 171, 226, 0.06);
    border-radius: 0 10px 10px 0;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
}

.ih-msg-row.user .ih-chat-quote {
    border-left-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}

/* Inline Code */
.ih-chat-code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12.5px;
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.ih-msg-row.user .ih-chat-code {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Horizontal Rule */
.ih-chat-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 12px 0;
}

.ih-msg-row.user .ih-chat-divider {
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Table inside chat */
.ih-table-wrap {
    overflow-x: auto;
    margin: 12px 0;
    border-radius: 12px;
    border: 1px solid rgba(2, 114, 188, 0.18);
    box-shadow: 0 4px 14px rgba(2, 114, 188, 0.08);
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.ih-chat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
    min-width: 320px;
}

.ih-chat-table th {
    background: linear-gradient(135deg, #f0f7fc 0%, #e2f0fb 100%);
    color: #044a6f;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-bottom: 2px solid rgba(2, 114, 188, 0.18);
    white-space: nowrap;
}

.ih-chat-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    line-height: 1.5;
    vertical-align: top;
}

.ih-chat-table td:first-child {
    font-weight: 600;
    color: #0f172a;
}

.ih-chat-table tr:last-child td {
    border-bottom: none;
}

.ih-chat-table tr:nth-child(even) td {
    background: #f8fafc;
}

.ih-chat-table tr:hover td {
    background: #f0f7fd;
}

.ih-msg-time {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 4px;
    padding: 0 4px;
}

/* Natural Inline Links in Chat (smooth, flows within sentences) */
.ih-chat-inline-link {
    color: #0272bc !important;
    font-weight: 600;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    display: inline;
    padding: 1px 3px;
    border-radius: 4px;
    background: rgba(2, 114, 188, 0.07);
    transition: all 0.2s ease;
}

.ih-chat-inline-link:hover {
    color: #ffffff !important;
    background: #0272bc !important;
    text-decoration: none !important;
}

.ih-msg-row.user .ih-chat-inline-link {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
}

/* Standalone Action Links */
.ih-chat-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 4px 4px 0;
    padding: 7px 14px;
    background: linear-gradient(135deg, rgba(41, 171, 226, 0.1), rgba(2, 114, 188, 0.15));
    border: 1px solid rgba(2, 114, 188, 0.25);
    border-radius: 20px;
    color: var(--ih-primary, #0272bc) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.ih-chat-action-btn:hover {
    background: var(--ih-primary, #0272bc);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 114, 188, 0.25);
}

/* ================= TYPING INDICATOR / LOADER ================= */
.ih-typing-indicator {
    display: none;
    align-self: flex-start;
    align-items: center;
    gap: 10px;
    margin: 4px 0 10px;
    max-width: 85%;
    animation: ihMsgFadeIn 0.22s ease-out forwards;
}

.ih-typing-indicator.active {
    display: flex !important;
}

.ih-typing-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0272bc 0%, #29abe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(2, 114, 188, 0.25);
}

.ih-typing-bubble {
    background: #ffffff;
    padding: 11px 16px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    border: 1px solid rgba(2, 114, 188, 0.12);
}

.ih-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    animation: ihTypingWave 1.4s infinite ease-in-out both;
}

.ih-typing-dot:nth-child(1) {
    animation-delay: -0.32s;
    background-color: var(--ih-primary, #0272bc);
}

.ih-typing-dot:nth-child(2) {
    animation-delay: -0.16s;
    background-color: var(--ih-secondary, #29abe2);
}

.ih-typing-dot:nth-child(3) {
    animation-delay: 0s;
    background-color: #72e2f8;
}

@keyframes ihTypingWave {
    0%, 80%, 100% {
        transform: translateY(0) scale(0.7);
        opacity: 0.35;
    }
    40% {
        transform: translateY(-5px) scale(1.15);
        opacity: 1;
    }
}

/* Chat Input Footer */
.ih-chat-footer {
    padding: 16px 20px 20px;
    background: linear-gradient(to top, #ffffff 85%, rgba(255,255,255,0));
    border-top: none;
    flex-shrink: 0;
}

.ih-chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 26px;
    padding: 6px 6px 6px 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.ih-chat-form:focus-within {
    border-color: var(--ih-secondary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(41, 171, 226, 0.15);
}

.ih-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--ih-text-dark);
    padding: 8px 0;
}

.ih-chat-input::placeholder {
    color: #94a3b8;
}

.ih-chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--ih-secondary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(41, 171, 226, 0.4);
}

.ih-chat-send-btn:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 6px 14px rgba(41, 171, 226, 0.5);
    background: #1ba0d6;
}

.ih-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ih-chat-disclaimer {
    font-size: 10px;
    color: #94a3b8;
    text-align: center;
    margin-top: 6px;
    line-height: 1.3;
}

/* ================= Responsive adjustments ================= */
@media (max-width: 991px) {
    /* --- WhatsApp Floating Action Button (Bottom Left) --- */
    .ih-side-trigger-left {
        top: auto !important;
        left: 16px !important;
        right: auto !important;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
        transform: none !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        border: 2px solid rgba(255, 255, 255, 0.45) !important;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.18) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1040 !important;
    }
    
    .ih-side-trigger-left:hover,
    .ih-side-trigger-left:active {
        padding: 0 !important;
        transform: scale(1.08) !important;
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6) !important;
    }

    .ih-side-trigger-left .trigger-icon {
        width: 26px !important;
        height: 26px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .ih-side-trigger-left .trigger-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    .ih-side-trigger-left .trigger-text {
        display: none !important;
    }

    /* --- AI Assistance Floating Action Button (Bottom Right) --- */
    .ih-side-trigger-right {
        top: auto !important;
        right: 16px !important;
        left: auto !important;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
        transform: none !important;
        width: 52px !important;
        height: 52px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        background: linear-gradient(135deg, #0272bc 0%, #29abe2 100%) !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow: 0 6px 22px rgba(2, 114, 188, 0.45), 0 0 16px rgba(41, 171, 226, 0.35) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1040 !important;
    }

    .ih-side-trigger-right:hover,
    .ih-side-trigger-right:active {
        padding: 0 !important;
        transform: scale(1.08) !important;
        box-shadow: 0 8px 26px rgba(2, 114, 188, 0.6), 0 0 20px rgba(41, 171, 226, 0.5) !important;
    }

    .ih-side-trigger-right .trigger-icon {
        width: 26px !important;
        height: 26px !important;
        margin: 0 !important;
        background: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .ih-side-trigger-right .trigger-icon svg {
        width: 24px !important;
        height: 24px !important;
        stroke: #ffffff !important;
    }

    .ih-side-trigger-right .trigger-badge,
    .ih-side-trigger-right .trigger-text {
        display: none !important;
    }

    .ih-side-trigger-right .pulse-dot {
        top: 0px !important;
        right: 0px !important;
        width: 10px !important;
        height: 10px !important;
        background-color: #22c55e !important;
        border: 2px solid #ffffff !important;
        box-shadow: 0 0 8px #22c55e !important;
    }

    /* Offset back-to-top button so it doesn't collide with the AI FAB */
    #back-to-top {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
        right: 18px !important;
        z-index: 1030 !important;
    }

    /* --- Chat Modal as Full Native-like Bottom Sheet --- */
    .ih-chat-modal {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 88vh !important;
        max-height: 88vh !important;
        border-radius: 24px 24px 0 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25) !important;
    }

    .ih-chat-header {
        padding: 16px 20px !important;
        border-radius: 24px 24px 0 0 !important;
    }

    .ih-chat-body {
        padding: 14px 14px !important;
    }

    .ih-chat-footer {
        padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

