/* ═══════════════════════════════════════════════════════════════════════════════

   OZON EXPRESS CHAT WIDGET — COMBINED CSS BUNDLE

   All CSS files combined into a single file

   ═══════════════════════════════════════════════════════════════════════════════ */



/* ═══════════════════════════════════════════════════════════════════════════

   OZONBOT PAGE STYLES

   ═══════════════════════════════════════════════════════════════════════════ */



.ozonbot-content {

    flex: 1;

    overflow-y: auto;

    padding: 20px 16px;

    background: #ffffff;

}



.ozonbot-section {

    margin-bottom: 24px;

}



.ozonbot-section-title {

    font-size: 18px;

    font-weight: 700;

    color: var(--color-black);

    margin-bottom: 12px;

    padding-bottom: 8px;

    border-bottom: 2px solid var(--color-primary);

    display: inline-block;

}



.ozonbot-text {

    font-size: 14px;

    line-height: 1.6;

    color: var(--color-gray-700);

    margin-bottom: 10px;

}



.ozonbot-list {

    margin: 0 0 12px 0;

    padding-left: 20px;

    font-size: 14px;

    line-height: 1.8;

    color: var(--color-gray-600);

}



.ozonbot-list li {

    margin-bottom: 4px;

}



.ozonbot-highlight {

    font-size: 14px;

    line-height: 1.6;

    color: var(--color-black);

    background: var(--color-primary-light);

    padding: 12px 14px;

    border-radius: var(--radius-md);

    border-left: 3px solid var(--color-primary);

    margin: 12px 0;

}



.ozonbot-highlight-text {

    font-size: 15px;

    font-weight: 700;

    color: var(--color-primary-dark);

    background: var(--color-primary-light);

    padding: 10px 14px;

    border-radius: var(--radius-md);

    display: inline-block;

    margin: 8px 0;

}



.ozonbot-step {

    display: flex;

    gap: 14px;

    margin-bottom: 24px;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--color-gray-200);

}



.ozonbot-step:last-of-type {

    border-bottom: none;

}



.ozonbot-step-number {

    width: 32px;

    height: 32px;

    min-width: 32px;

    border-radius: 50%;

    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));

    color: var(--color-black);

    font-size: 14px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}



.ozonbot-step-content {

    flex: 1;

}



.ozonbot-step-title {

    font-size: 15px;

    font-weight: 700;

    color: var(--color-black);

    margin-bottom: 8px;

    margin-top: 4px;

}



.ozonbot-option {

    background: var(--color-gray-50);

    border-radius: var(--radius-md);

    padding: 14px;

    margin-bottom: 14px;

}



.ozonbot-option:last-child {

    margin-bottom: 0;

}



.ozonbot-option-badge {

    display: inline-block;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    padding: 4px 10px;

    border-radius: 20px;

    margin-bottom: 8px;

}



.ozonbot-option-badge.option-a {

    background: linear-gradient(135deg, #dbeafe, #93c5fd);

    color: #1e40af;

}



.ozonbot-option-badge.option-b {

    background: linear-gradient(135deg, #dcfce7, #86efac);

    color: #15803d;

}



.ozonbot-option-title {

    font-size: 14px;

    font-weight: 700;

    color: var(--color-gray-900);

    margin-bottom: 8px;

}



.ozonbot-image {

    margin-top: 12px;

    max-width: 280px;

}



.ozonbot-image img {

    width: 100%;

    height: auto;

    display: block;

}



.ozonbot-images-row {

    display: flex;

    gap: 10px;

    margin-top: 12px;

    max-width: 280px;

}



.ozonbot-image-small img {

    width: 100%;

    height: auto;

    display: block;

}



.ozonbot-image-small {

    flex: 1;

    max-width: 135px;

}



.ozonbot-image-small img {

    width: 100%;

    height: auto;

    display: block;

}



.ozonbot-cta {

    margin-top: 20px;

    padding-top: 20px;

    border-top: 2px solid var(--color-gray-200);

}



.ozonbot-cta-btn {

    width: 100%;

    padding: 14px 20px;

    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));

    color: var(--color-black);

    border: none;

    border-radius: var(--radius-lg);

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: space-between;

    transition: var(--transition-fast);

    box-shadow: 0 4px 12px rgba(255, 204, 15, 0.35);

}



.ozonbot-cta-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(255, 204, 15, 0.45);

}



.ozonbot-cta-btn:active {

    transform: scale(0.98);

}



/* OzonBot view with white backdrop */

#ozonbot-view {
    background: var(--color-white) !important;
}

#ozonbot-view .ozonbot-content {
    background: var(--color-white);
}

/* OzonBot header specific */

#ozonbot-view .oz-chat-header {

    border-bottom: none;

    background: var(--color-white);

}



#ozonbot-view .oz-chat-header > div {

    margin-left: auto;

    margin-right: auto;

    text-align: center;

    transform: translateX(20px);

}



#ozonbot-view .oz-chat-header .oz-header__btn {

    margin-top: 4px;

}



/* Scrollbar styling for ozonbot content */

.ozonbot-content::-webkit-scrollbar {

    width: 4px;

}



.ozonbot-content::-webkit-scrollbar-track {

    background: transparent;

}



.ozonbot-content::-webkit-scrollbar-thumb {

    background: var(--color-gray-300);

    border-radius: 4px;

}



/* ═══════════════════════════════════════════════════════════════════════════

   1. VARIABLES — Design tokens

   ═══════════════════════════════════════════════════════════════════════════ */



:root {

    /* Brand */

    --color-primary:        #e31b29;

    --color-primary-dark:   #b51722;

    --color-primary-darker: #99171d;

    --color-primary-light:  rgba(227, 27, 41, 0.18);

    --color-primary-glow:   rgba(227, 27, 41, 0.40);



    /* Header gradient */

    --header-color-start: #e31b29;

    --header-color-mid:   #ffcc0f;

    --header-color-end:   #FFFFFF;



    /* Neutrals */

    --color-white:       #ffffff;

    --color-gray-50:     #f9fafb;

    --color-gray-100:    #f3f4f6;

    --color-gray-200:    #e5e7eb;

    --color-gray-300:    #d1d5db;

    --color-gray-400:    #9ca3af;

    --color-gray-500:    #6b7280;

    --color-gray-600:    #4b5563;

    --color-gray-700:    #374151;

    --color-gray-800:    #1f2937;

    --color-gray-900:    #111827;

    --color-black:       #1a1a1a;



    /* Semantic */

    --color-success:        #16a34a;

    --color-success-bg:     #f0fdf4;

    --color-success-border: #86efac;

    --color-success-text:   #166534;



    --color-error:        #ef4444;

    --color-error-bg:     #fef2f2;

    --color-error-border: #fecaca;

    --color-error-text:   #991b1b;



    --color-warning-bg:     #fffbeb;

    --color-warning-border: rgba(180, 83, 9, 0.15);

    --color-warning-text:   #92400e;



    /* Typography - with Abadi as alternative */

    --font-family: 'Inter', 'Abadi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --font-size-xs:   10px;

    --font-size-sm:   12px;

    --font-size-base: 13px;

    --font-size-md:   15px;

    --font-size-lg:   16px;

    --font-size-xl:   18px;

    --font-size-2xl:  20px;

    --font-size-3xl:  25px;



    /* Radii */

    --radius-sm:   8px;

    --radius-md:   12px;

    --radius-lg:   16px;

    --radius-xl:   20px;

    --radius-full: 50%;



    /* Shadows */

    --shadow-sm:   0 1px 4px rgba(0, 0, 0, 0.08);

    --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.10);

    --shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.18), 0 2px 12px rgba(0, 0, 0, 0.08);

    --shadow-fab:  0 10px 30px rgba(255, 204, 15, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.30);



    /* Transitions */

    --transition-fast:   all 0.2s ease;

    --transition-base:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);



    /* Layout */

    --widget-width:      385px;

    --widget-max-height: 640px;

    --widget-min-height: 520px;

    --nav-height:        70px;

}



/* ═══════════════════════════════════════════════════════════════════════════

   2. RESET & BASE

   ═══════════════════════════════════════════════════════════════════════════ */



@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Nunito:wght@400;600;900&display=swap');



*{

    font-family: var(--font-family);

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}



/* ═══════════════════════════════════════════════════════════════════════════

   3. ANIMATIONS — All @keyframes

   ═══════════════════════════════════════════════════════════════════════════ */



@keyframes bounce {

    0%, 80%, 100% { transform: scale(0);   opacity: 0.7; }

    40%           { transform: scale(1);   opacity: 1;   }

}



@keyframes buttonSlideUp {

    from { opacity: 0; transform: translateY(30px)  scale(0.9); }

    to   { opacity: 1; transform: translateY(0)     scale(1);   }

}



@keyframes chatAppear {

    from { opacity: 0; transform: translateY(30px)  scale(0.96); }

    to   { opacity: 1; transform: translateY(0)     scale(1);    }

}



@keyframes messageSlideIn {

    from { opacity: 0; transform: translateY(10px); }

    to   { opacity: 1; transform: translateY(0);    }

}



@keyframes pulse {

    0%, 100% { opacity: 1;   transform: scale(1);   }

    50%      { opacity: 0.8; transform: scale(1.1); }

}



@keyframes shimmer {

    0%   { background-position: -200% 0; }

    100% { background-position:  200% 0; }

}



@keyframes badgePulse {

    0%, 100% { transform: scale(1);   box-shadow: 0 2px 6px  rgba(239, 68, 68, 0.40); }

    50%      { transform: scale(1.1); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.60); }

}



@keyframes btnSpinner {

    to { transform: rotate(360deg); }

}



@keyframes errorToastSlideUp {

    from { opacity: 0; transform: translateX(-50%) translateY(20px); }

    to   { opacity: 1; transform: translateX(-50%) translateY(0);    }

}



@keyframes toastSlideDown {

    from { opacity: 0; transform: translateX(-50%) translateY(-30px) scale(0.95); }

    to   { opacity: 1; transform: translateX(-50%) translateY(0)     scale(1);    }

}



@keyframes checkmarkScale {

    0%   { transform: scale(0)   rotate(-45deg); }

    50%  { transform: scale(1.2) rotate(0deg);   }

    100% { transform: scale(1)   rotate(0deg);   }

}



@keyframes formViewSlideIn {

    from { opacity: 0; transform: translateX(20px); }

    to   { opacity: 1; transform: translateX(0);    }

}



/* ═══════════════════════════════════════════════════════════════════════════

   4. COMPONENT — Floating Action Button

   ═══════════════════════════════════════════════════════════════════════════ */



.oz-fab {

    position: fixed;

    bottom: 20px;

    right: 24px;

    width: 56px;

    height: 56px;

    border-radius: var(--radius-full);

    color: var(--color-black);

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    border: none;

    padding: 0;

    overflow: visible;

    background: var(--color-primary);

    transition: var(--transition-spring);

    box-shadow: var(--shadow-fab);

}



/* Shimmer overlay */

.oz-fab::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.30), transparent);

    animation: shimmer 3s infinite;

}



.oz-fab:hover  { transform: scale(1.10) rotate(5deg); }

.oz-fab:active { transform: scale(0.95); }

/* Cercle jaune quand le chat est ouvert */
.oz-fab.oz-fab--minimized {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    background: var(--color-primary);
    border-radius: 50%;
    overflow: visible;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 204, 15, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oz-fab.oz-fab--minimized .oz-fab__logo {
    display: none;
}

/* Flèche vers le bas dans le cercle jaune */
.oz-fab.oz-fab--minimized::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-right: 3px solid #000;
    border-bottom: 3px solid #000;
    transform: rotate(45deg);
}

.oz-fab.oz-fab--minimized:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 204, 15, 0.7);
}



/* Logo image inside FAB */

.oz-fab__logo {

    width: 58px;

    height: 58px;

    object-fit: contain;

    position: relative;

    z-index: 1;

}

.oz-fab__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
    border: 2px solid #fff;
    z-index: 10;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: badgePulse 2s infinite;
}



/* ═══════════════════════════════════════════════════════════════════════════

   5. COMPONENT — Widget container & shell

   ═══════════════════════════════════════════════════════════════════════════ */



.oz-widget {

    position: fixed;

    bottom: 100px;

    right: 24px;

    width: 480px;

    height: 720px;

    z-index: 2000;

    border-radius: var(--radius-lg);

    overflow: hidden;

    overflow-y: auto;

    scrollbar-width: none;

    -ms-overflow-style: none;

    display: flex;

    flex-direction: column;

    box-shadow: var(--shadow-lg);

    background: var(--color-white);

    animation: chatAppear 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    transition: var(--transition-base);

}



.oz-widget::-webkit-scrollbar { display: none; }



.oz-widget--frame    { border-radius: 35px; }

.oz-widget--expanded { width: 600px; max-height: 1000px; }

.oz-widget--hidden   { display: none; }



/* Generic scrollable body shared by most views */

.oz-body {

    flex: 1;

    overflow-y: auto;

    background: var(--color-white);

    padding: 20px 16px;

    display: flex;

    flex-direction: column;

    gap: 14px;

    min-height: 0;

    -ms-overflow-style: none;

    scrollbar-width: none;

}



.oz-body::-webkit-scrollbar { display: none; }

.oz-body::-webkit-scrollbar-track { background: transparent; }

.oz-body::-webkit-scrollbar-thumb { background: var(--color-white); border-radius: 4px; }



/* Home view */

#home-view.oz-body {

    background: #ffffff;

    padding-top: 80px;

}

#home-view.oz-body .oz-card {

    background: var(--color-white);

    box-shadow: var(--shadow-md);

}



/* Shared card */

.oz-card {

    background: var(--color-white);

    border-radius: var(--radius-md);

    overflow: hidden;

    box-shadow: var(--shadow-sm);

    flex-shrink: 0;

    width: 100%;

}



.oz-divider { height: 1px; background: var(--color-gray-100); margin: 0 16px; }

/* Help accordion (Aide tab) */
.oz-help-accordion {
    flex: 1;
    overflow-y: auto;
    width: 100%;
    padding: 0 0 12px 0;
    scrollbar-width: none;
    background: #ffffff;
}

.oz-help-accordion::-webkit-scrollbar {
    display: none;
}

.oz-help-category {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: none;
    background: #ffffff;
    transition: background-color 0.2s ease;
}

.oz-help-category:last-child {
    border-bottom: none;
}

.oz-help-category:hover {
    background: #fafafa;
}

.oz-help-category__summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 36px 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.oz-help-category__summary::-webkit-details-marker {
    display: none;
}

.oz-help-category__summary::after {
    content: '';
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-size: 15px 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.oz-help-category[open] .oz-help-category__summary {
    background: transparent;
}

.oz-help-category__content {
    padding: 0 0 12px 0;
    border-top: none;
    background: #ffffff;
}

.oz-help-link {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--color-gray-700);
    position: relative;
    padding: 12px 18px 12px 0;
    border-bottom: none;
    transition: background 0.15s, transform 0.18s ease;
    transform-origin: left center;
    border-radius: 10px;
    cursor: pointer;
}

.oz-help-link--first {
    margin-top: 10px;
}

.oz-help-link--last {
    margin-bottom: 0;
    border-bottom: none;
}

.oz-help-category__meta {
    min-width: 0;
}

.oz-help-category__title {
    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    color: #0f172a;
}

.oz-help-category__desc {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.35;
    color: #0f172a;
}

.oz-help-category__count {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    color: #6b7280;
}

.oz-help-detail {
    flex: 1;
    overflow-y: auto;
    margin-top: 8px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 6px 12px;
}

.oz-help-detail__item {
    padding: 12px 18px 12px 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--color-gray-700);
    border-bottom: none;
    position: relative;
    transition: background 0.15s, transform 0.18s ease;
    transform-origin: left center;
    width: 100%;
    text-align: left;
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
    border-radius: 10px;
}

.oz-help-link::after,
.oz-help-detail__item::after {
    content: '';
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-size: 15px 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.oz-help-link:hover,
.oz-help-detail__item:hover {
    background: var(--color-gray-50);
    transform: scale(1.015);
}

.oz-help-link:active,
.oz-help-detail__item:active {
    transform: scale(0.995);
}

.oz-help-detail__item:last-child {
    border-bottom: none;
}

.oz-help-question-wrap {
    flex: 1;
    margin-top: 10px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 20px 16px;
    overflow-y: auto;
}

.oz-help-question-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
}

.oz-help-question-body {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oz-help-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
}

.oz-help-info-card--ramadan {
    background: #fffbeb;
    border-color: #fde68a;
}

.oz-help-info-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oz-help-info-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.oz-help-info-icon--service {
    background: #e0ecff;
    color: #1d4ed8;
}

.oz-help-info-icon--bot {
    background: #e7f9ef;
    color: #047857;
}

.oz-help-info-icon--ramadan {
    background: #fff3c4;
    color: #b45309;
}

.oz-help-info-text {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.55;
    color: #374151;
}

.oz-help-info-text:last-child {
    margin-bottom: 0;
}

.oz-help-info-list {
    margin: 0 0 8px 0;
    padding-left: 18px;
    color: #374151;
    font-size: 13px;
    line-height: 1.55;
}

.oz-help-info-list li {
    margin-bottom: 6px;
}

.oz-help-info-list li:last-child {
    margin-bottom: 0;
}

.oz-feedback-comment {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.oz-feedback-comment__input {
    width: 100%;
    min-height: 88px;
    resize: vertical;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #374151;
    background: #ffffff;
}

.oz-feedback-comment__input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.oz-feedback-comment__send {
    align-self: center;
    position: relative;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, rgb(255, 204, 15), rgb(255, 204, 15));
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    min-width: 140px;
    cursor: pointer;
    overflow: hidden;
    transition: filter 0.2s ease;
}

.oz-feedback-comment__send:hover {
    filter: brightness(0.97);
}

.oz-feedback-comment__send::after {
    content: "";
    background: rgba(255, 255, 255, 0.55);
    display: block;
    position: absolute;
    padding-top: 320%;
    padding-left: 350%;
    margin-left: -20px;
    margin-top: -120%;
    opacity: 0;
    transition: all 0.8s;
}

.oz-feedback-comment__send:active::after {
    padding: 0;
    margin: 0;
    opacity: 1;
    transition: 0s;
}

.oz-feedback-comment__error {
    margin: -2px 0 0 0;
    color: #dc2626;
    font-size: 12px;
    line-height: 1.3;
}



/* ═══════════════════════════════════════════════════════════════════════════

   6. COMPONENT — Header (home & chat)

   ═══════════════════════════════════════════════════════════════════════════ */



/* ── Main header (home view) ────────── */

.oz-header {

    background: linear-gradient(to bottom, #ed1c24 0 72px, #ffffff 72px 100%);

    min-height: 178px;

    padding: 14px 28px 8px;

    flex-shrink: 0;

    position: relative;

    overflow: hidden;

    isolation: isolate;

    border-radius: 28px 28px 0 0;

}



/* Decorative circles */

.oz-header::before {

    content: '';

    position: absolute;

    top: -55px;

    right: -14px;

    width: 158px;

    height: 127px;

    border-radius: 0 0 0 91px;

    background: #ffcc0f;

    z-index: 0;

}

.oz-header::after {

    content: '';

    position: absolute;

    left: 37%;

    top: 51px;

    bottom: auto;

    width: 172%;

    height: 180px;

    border-radius: 50% 50% 0 0 / 68% 68% 0 0;

    background: #ffffff;

    transform: translateX(-50%) rotate(-5deg);

    transform-origin: center bottom;

    z-index: 2;

}



.oz-header__top {

    display: flex;

    justify-content: space-between;

    gap: 8px;

    margin-bottom: 22px;

    position: relative;

    z-index: 4;

}



.oz-header__btn {

    background: transparent;

    border: none;

    border-radius: var(--radius-sm);

    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    color: var(--color-black);

    transition: var(--transition-fast);

    position: relative;

    z-index: 3;

}

.oz-header__btn:hover  { background: var(--color-primary); color: #ffffff; transform: scale(1.10); }

.oz-header__btn:active { background: rgba(0, 0, 0, 0.12); transform: scale(0.90); }



.oz-header__welcome {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    position: relative;

    z-index: 3;

}

.oz-header__ozzy-container {

    flex: 1 1 0;

    min-width: 0;

    aspect-ratio: 1 / 1;

    align-self: flex-start;

    margin-top: 22px;

    display: flex;

    justify-content: center;

    align-items: center;

}

.oz-header__welcome-image {

    width: 100%;

    height: auto;

    object-fit: contain;

    transform-origin: center center;

    animation:
        ozHeaderFloat 3s ease-in-out infinite,
        ozHeaderGlow 2s ease-in-out infinite,
        ozHeaderBreathe 4s ease-in-out infinite;

}

@keyframes ozHeaderFloat {

    0%, 100% { transform: translateY(0) scale(1); }

    50% { transform: translateY(-12px) scale(1); }

}

@keyframes ozHeaderGlow {

    0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15)); }

    50% { filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.45)); }

}

@keyframes ozHeaderBreathe {

    0%, 100% { scale: 1; }

    50% { scale: 1.03; }

}

.widget-title,
.oz-header__greeting {

    color: #1A1A1A;

    font-family: 'Nunito', sans-serif;

    font-size: 27px;

    font-weight: 900;

    line-height: 1.15;

    letter-spacing: 0;

    margin: 0 0 6px;

    flex: 2 1 0;

    min-width: 0;

    text-align: left;

    text-shadow: none;

    position: relative;

    z-index: 3;

    white-space: normal;

    word-break: break-word;

}

.widget-subtitle,
.oz-header__greeting span {

    display: inline-block;

    margin-top: 10px;

    font-family: 'Nunito', sans-serif;

    font-size: 17px;

    font-weight: 600;

    line-height: 1.45;

    color: #374151;

    white-space: normal;

}

.oz-header__customer-name {

    color: #ed1c24;

    font-weight: 900;

}

.oz-header__accent-line {

    display: block;

    width: 42px;

    height: 4px;

    margin: 14px 0 10px;

    border-radius: 999px;

    background: #ed1c24;

}

.oz-header__greeting strong {

    font-weight: 900;

    color: #1A1A1A;

}

.oz-header__greeting small {

    display: block;

    margin-top: 6px;

    font-size: 0.88em;

    line-height: 1.35;

}



.oz-header__sub {

    color: rgba(0, 0, 0, 0.60);

    font-size: var(--font-size-sm);

    position: relative;

    z-index: 1;

    display: flex;

    align-items: center;

    gap: 5px;

}



.oz-online-dot {

    width: 7px;

    height: 7px;

    background: var(--color-success);

    border-radius: var(--radius-full);

    animation: pulse 2s infinite;

}



/* ── Chat sub-header ────────────────── */

.oz-chat-header {

    background: var(--color-white);

    padding: 14px 16px;

    display: flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;

    border-bottom: 1px solid var(--color-gray-200);

}



/* Chat - titre plus bas et ligne centrée */

#chat-view .oz-chat-header {

    padding-top: 6px;

    padding-bottom: 24px;

    border-bottom: none;

    position: relative;

}



/* Contact Support - titre centré sans ligne */

#chat-view .oz-chat-header > img.oz-chat-header__avatar--left + div {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}

#chat-view .oz-chat-header > img.oz-chat-header__avatar--left + div .oz-chat-header__title {
    margin: 0;
    line-height: 1.2;
}

#chat-view .oz-chat-header > img.oz-chat-header__avatar--left + div .oz-chat-header__subtitle {
    margin: 0;
    margin-top: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#chat-view .oz-chat-header > .oz-chat-header__avatar--agent-initial + div {
    margin-left: 0;
}

#chat-view .oz-chat-header > .oz-chat-header__avatar--agent-initial + div .oz-chat-header__subtitle {
    margin-left: 0;
}

#chat-view .oz-chat-header > .oz-chat-header__avatar--agent-initial + div .oz-chat-header__title {
    margin-left: 0 !important;
}

#contact-view .oz-chat-header {

    border-bottom: none;

}



#contact-view .oz-chat-header > div {

    margin-left: auto;

    margin-right: auto;

    text-align: center;

    transform: translateX(20px);

}



#contact-view .oz-chat-header .oz-header__btn {

    margin-top: 4px;

}



/* OzonExpress - titre centré sans ligne */

#about-view .oz-chat-header {

    border-bottom: none;

}



#about-view .oz-chat-header > div {

    margin-left: auto;

    margin-right: auto;

    text-align: center;

    transform: translateX(20px);

}



#about-view .oz-chat-header .oz-header__btn {

    margin-top: 4px;

}


#about-view {
    background: linear-gradient(180deg, var(--color-white) 0%, #fafafa 100%);
}

/* Section cards */
#about-view .oz-section-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-gray-100);
    transition: all 0.25s ease;
}

#about-view .oz-section-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Section titles with accent underline */
#about-view .oz-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
    position: relative;
}

#about-view .oz-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary-dark);
    border-radius: 0 2px 2px 0;
}

/* Body text */
#about-view .oz-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-gray-600);
    margin: 0;
}

/* Services list with icons */
#about-view .oz-services-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#about-view .oz-services-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-gray-700);
    transition: all 0.2s ease;
}

#about-view .oz-services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: 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='%231a1a1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

#about-view .oz-services-list li:hover {
    color: var(--color-gray-900);
    transform: translateX(4px);
}

/* Contact section */
#about-view .oz-contact-block {
    background: linear-gradient(135deg, var(--color-gray-50), var(--color-white));
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    border: 1px solid var(--color-gray-200);
}

#about-view .oz-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--color-gray-700);
    transition: all 0.2s ease;
}

#about-view .oz-contact-item:last-child {
    margin-bottom: 0;
}

#about-view .oz-contact-item:hover {
    color: var(--color-primary-dark);
}

#about-view .oz-contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#about-view .oz-contact-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-primary-dark);
}



#chat-view .oz-chat-header::after {

    content: '';

    position: absolute;

    bottom: 10px;

    left: 50%;

    transform: translateX(-50%);

    width: 90%;

    height: 1px;

    background: var(--color-gray-200);

}



#chat-view .oz-chat-header > div {

    margin-left: 0;

    margin-right: auto;

    margin-top: 0;

    text-align: left;

}

/* Force agent title block (ALI) slightly more to the left than default header text */
#chat-view .oz-chat-header > .oz-chat-header__avatar--agent-initial + .oz-agent-header-info {
    margin-left: 0;
}



/* Bouton fermeture conversation décalé à gauche */

#chat-view .oz-chat-header .oz-header__btn {

    margin-right: 14px;

}



/* Bouton retour conversation décalé à droite */

#chat-view .oz-chat-header .oz-chat-header__back {

    margin-left: 14px;

}



.oz-chat-header__back {

    background: transparent;

    border: none;

    border-radius: var(--radius-sm);

    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    color: var(--color-black);

    flex-shrink: 0;

    transition: var(--transition-fast);

}

.oz-chat-header__back:hover  { background: var(--color-primary); color: #ffffff; transform: scale(1.10); }

.oz-chat-header__back:active { background: var(--color-gray-300); transform: scale(0.90); }



.oz-chat-header__title    { color: var(--color-black); font-weight: 700; font-size: var(--font-size-lg); }

#chat-view .oz-chat-header__title { font-size: calc(var(--font-size-lg) - 1px); }

.oz-chat-header__subtitle { color: rgba(0, 0, 0, 0.55); font-size: 11px; display: flex; align-items: center; gap: 4px; }

.oz-chat-header__avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.oz-chat-header__avatar--left {
    margin-left: -4px;
}

.oz-chat-header__avatar--agent-initial {
    width: 32px;
    height: 32px;
    margin-left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.oz-agent-header-info {
    margin-left: 0;
}

#chat-view .oz-chat-header .oz-agent-header-info {
    margin-top: 0;
    min-width: 0;
}

#chat-view .oz-chat-header .oz-chat-header__avatar--agent-initial {
    margin-left: 6px;
    margin-top: 0;
}

#chat-view .oz-chat-header .oz-agent-header-info .oz-chat-header__title {
    margin: 0;
    line-height: 1.2;
}

#chat-view .oz-chat-header .oz-agent-header-info .oz-chat-header__subtitle {
    margin: 0;
    margin-top: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#chat-view .oz-chat-header > .oz-chat-header__avatar--agent-initial + .oz-agent-header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}

/* Move chat header controls/content slightly downward */
#chat-view .oz-chat-header .oz-chat-header__back,
#chat-view .oz-chat-header .oz-header__btn,
#chat-view .oz-chat-header .oz-chat-header__avatar--left,
#chat-view .oz-chat-header .oz-chat-header__avatar--agent-initial,
#chat-view .oz-chat-header > img.oz-chat-header__avatar--left + div,
#chat-view .oz-chat-header > .oz-chat-header__avatar--agent-initial + .oz-agent-header-info {
    position: relative;
    top: 8px;
}

/* Move divider line slightly downward too */
#chat-view .oz-chat-header::after {
    bottom: 2px;
}



/* Close button in chat headers - pushed to right */

.oz-chat-header .oz-header__btn {

    margin-left: auto;

}



/* ── FAQ items in home card ─────────── */

.oz-faq-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 14px 18px;

    cursor: pointer;

    transition: background 0.15s;

    font-size: 13.5px;

    color: var(--color-gray-700);

    gap: 8px;

    line-height: 1.4;

}

.oz-faq-item:hover            { background: var(--color-gray-50); }

.oz-faq-item:not(:last-child) { border-bottom: 1px solid var(--color-gray-100); }



/* FAQ title */

.oz-faq-title {

    font-weight: 600;

    font-size: 15px;

    color: var(--color-black);

    padding: 16px 18px 10px 18px;

    border-bottom: 1px solid var(--color-gray-100);

}



/* FAQ item with border */

.oz-faq-item--border {

    border-bottom: 1px solid var(--color-gray-100);

}



.oz-faq-item__left {

    display: flex;

    align-items: center;

    gap: 10px;

}



.oz-faq-item__icon {

    width: 30px;

    height: 30px;

    border-radius: var(--radius-sm);

    background: #e31b29;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    color: #ffffff;

    border: 1px solid #e31b29;

}



/* ═══════════════════════════════════════════════════════════════════════════

   8. COMPONENT — Chat view & conversation

   ═══════════════════════════════════════════════════════════════════════════ */



/* ── Mode selection screen ──────────── */

.oz-mode-screen {

    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 28px 20px;

    gap: 14px;

    background: var(--color-gray-50);

    overflow-y: auto;

}



.oz-mode-screen__heading {

    font-size: var(--font-size-xl);

    font-weight: 800;

    color: var(--color-gray-900);

    text-align: center;

    line-height: 1.3;

}



.oz-mode-screen__sub {

    font-size: var(--font-size-sm);

    color: var(--color-gray-500);

    text-align: center;

    margin: 0;

    margin-top: -6px;

}



.oz-mode-btn {

    width: 100%;

    padding: 18px 20px;

    border-radius: var(--radius-lg);

    border: 2px solid var(--color-gray-200);

    background: var(--color-white);

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 14px;

    text-align: left;

    transition: var(--transition-fast);

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);

}

.oz-mode-btn:hover              { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.11); }

.oz-mode-btn--chatbot:hover     { border-color: #3b82f6; background: #eff6ff; }

.oz-mode-btn--agent:hover       { border-color: var(--color-success); background: #f0fdf4; }



.oz-mode-btn__icon {

    width: 48px;

    height: 48px;

    border-radius: var(--radius-md);

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}

.oz-mode-btn__icon--bot   { background: linear-gradient(135deg, #dbeafe, #93c5fd); color: #1e40af; }

.oz-mode-btn__icon--human { background: linear-gradient(135deg, #dcfce7, #86efac); color: #15803d; }



.oz-mode-btn__info     { flex: 1; }

.oz-mode-btn__label    { font-size: 15px; font-weight: 700; color: var(--color-gray-900); }

.oz-mode-btn__desc     { font-size: var(--font-size-sm); color: var(--color-gray-500); margin-top: 3px; }

.oz-mode-btn__arrow    { color: var(--color-gray-300); font-size: 22px; font-weight: 300; flex-shrink: 0; }



/* ── Conversation content wrapper ───── */

.oz-conversation {

    flex: 1;

    display: flex;

    flex-direction: column;

    background: var(--color-white);

    min-height: 0;

    position: relative;

}

.oz-agent-closure-actions {
    position: absolute;
    right: 14px;
    bottom: 24px;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 30;
    pointer-events: none;
}

.oz-agent-closure-actions.is-visible {
    display: flex;
}

.oz-agent-closure-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

.oz-agent-closure-action__label {
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    padding: 8px 12px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    pointer-events: auto;
    white-space: nowrap;
}

.oz-agent-closure-action__btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.oz-agent-closure-action__btn:hover {
    transform: translateY(-2px) scale(1.04);
}

.oz-agent-closure-action__btn:active {
    transform: scale(0.96);
}

.oz-agent-closure-action__btn--new {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #111827;
}

.oz-agent-closure-action__btn--ai {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
}



/* ── Messages viewport ──────────────── */

.oz-messages {

    overflow-y: auto;

    padding: 16px;

    display: flex;

    flex-direction: column;

    gap: 12px;

    background: var(--color-white);

    flex: 1;

}

.oz-messages::-webkit-scrollbar       { width: 4px; }

.oz-messages::-webkit-scrollbar-track { background: transparent; }

.oz-messages::-webkit-scrollbar-thumb { background: var(--color-gray-300); border-radius: 4px; }



/* Historique conversations scrollbar */

#conversations-list::-webkit-scrollbar       { width: 4px; }

#conversations-list::-webkit-scrollbar-track { background: transparent; }

#conversations-list::-webkit-scrollbar-thumb { background: var(--color-gray-300); border-radius: 4px; }



/* ═══════════════════════════════════════════════════════════════════════════

   9. COMPONENT — Message bubbles

   ═══════════════════════════════════════════════════════════════════════════ */



.oz-msg-row {

    display: flex;

    flex-direction: column;

    gap: 4px;

    animation: messageSlideIn 0.3s ease;

    max-width: 100%;

}

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

.oz-msg-row--bot  { align-items: flex-start; flex-direction: row; gap: 8px; }
.oz-msg-row--intro:first-child { margin-top: -8px; }



/* Avatar utilisateur */

.oz-user-avatar {

    width: 32px;

    height: 32px;

    border-radius: 50%;

    object-fit: cover;

    flex-shrink: 0;

    background: #e31b29;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    font-weight: 600;

    color: #ffffff;

    animation: avatarAppear 0.3s ease;

}



/* Conteneur pour aligner avatar + bulle utilisateur */

.oz-msg-row--user {

    flex-direction: row-reverse;

    align-items: flex-start;

    gap: 8px;

}



/* Animation d'apparition de l'avatar */

@keyframes avatarAppear {

    0% {

        opacity: 0;

        transform: scale(0) rotate(-45deg);

    }

    70% {

        transform: scale(1.1) rotate(5deg);

    }

    100% {

        opacity: 1;

        transform: scale(1) rotate(0deg);

    }

}



/* Conteneur colonne pour bulle + meta utilisateur */

.oz-user-content {

    display: flex;

    flex-direction: column;

    gap: 4px;

    align-items: flex-end;

    max-width: calc(100% - 44px); /* ← soustrait avatar 32px + gap 8px */

}



.oz-bot-content {

    display: flex;

    flex-direction: column;

    gap: 4px;

    align-items: flex-start;

    width: fit-content;

    max-width: calc(100% - 38px);

}

.oz-bot-content .oz-msg-bubble--bot,
.oz-bot-content .oz-msg-bubble--error {

    width: 100%;

    box-sizing: border-box;

}

.oz-bot-content .oz-msg-meta {

    display: flex;

    align-items: center;

    gap: 6px;

    flex-wrap: nowrap;

    white-space: nowrap;

    max-width: 100%;

}

/* Avatar placeholder (initiales) quand pas d'image */

.oz-user-avatar--placeholder {

    background: #e31b29;

    color: white;

    text-transform: uppercase;

}



/* Responsive: avatar plus petit sur mobile */

@media (max-width: 480px) {

    .oz-user-avatar {

        width: 28px;

        height: 28px;

        font-size: 11px;

    }

}



/* Avatar du bot */

.oz-bot-avatar {

    width: 28px;

    height: 28px;

    border-radius: var(--radius-full);

    background: #e31b29;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    color: white;

}



.oz-bot-avatar svg {

    width: 16px;

    height: 16px;

}



/* ── Bubble base ──────────────────── */

.oz-msg-bubble {

    max-width: 100%;

    min-width: 80px;

    padding: 10px 14px;

    border-radius: 18px;

    font-size: var(--font-size-base);

    line-height: 1.5;

    direction: ltr;

    text-align: left;

    white-space: normal;

    overflow-wrap: break-word;

    word-break: normal;

    hyphens: none;

}



.oz-msg-bubble--user {

    background: var(--color-white);

    color: var(--color-black);

    border-bottom-right-radius: 4px;

    border: 1px solid var(--color-gray-200);

    box-shadow: var(--shadow-sm);

    border-radius: 18px;

}



.oz-msg-bubble--bot {

    background: var(--color-gray-100);

    color: var(--color-gray-800);

    border-radius: 18px;

}



.oz-msg-bubble--error {

    background: var(--color-error-bg);

    color: var(--color-error-text);

    border: 1px solid var(--color-error-border);

    border-bottom-left-radius: 18px;

}



.oz-msg-bubble--audio {

    background: transparent !important;

    padding: 0 !important;

    border: none !important;

    box-shadow: none !important;

}

.oz-msg-bubble--handoff-waiting {

    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    padding: 10px 14px;

    color: #334155;

    margin: 12px 0;

    text-align: center;

    display: inline-flex;

    justify-content: center;

    align-items: center;

    min-width: 230px;

    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);

}

.oz-system-leave {
    width: 100%;
    max-width: 720px;
    margin: 8px 0 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.oz-system-leave__title-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
}

.oz-system-leave__line {
    flex: 1 1 auto;
    height: 1px;
    background: var(--color-gray-200);
    border-radius: 999px;
}

.oz-system-leave__title {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
    color: #4b5563;
    text-align: center;
}

.oz-system-leave__timestamp {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
}

@media (max-width: 520px) {
    .oz-system-leave__title {
        font-size: 14px;
    }
    .oz-system-leave__timestamp {
        font-size: 11px;
    }
}

.oz-waiting-loop {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;
    flex-direction: row;

}

.oz-waiting-loop__text {

    font-size: 13px;

    font-weight: 600;

    color: #334155;

    white-space: nowrap;

    direction: rtl;

    text-align: right;
    order: 2;

}

.oz-waiting-loop__dots {

    display: inline-flex;

    gap: 4px;

    align-items: center;
    order: 1;

}

.oz-waiting-loop__dot {

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: #94a3b8;

    animation: ozWaitingPulse 1.2s ease-in-out infinite;

}

.oz-waiting-loop__dot:nth-child(2) { animation-delay: 0.2s; }

.oz-waiting-loop__dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes ozWaitingPulse {

    0%, 100% { transform: translateY(0); opacity: 0.45; }

    50% { transform: translateY(-2px); opacity: 1; }

}



/* ── Media inside bubbles ──────────── */

.oz-msg-bubble img {

    max-width: 100%;

    width: 100%;

    height: auto;

    border-radius: var(--radius-sm);

    cursor: pointer;

}



.oz-img-stack {

    display: flex;

    flex-direction: column;

    gap: 10px;

    align-items: flex-start;

}



.oz-msg-bubble a           { color: #3b82f6; text-decoration: underline; word-break: break-all; }

.oz-msg-bubble a:hover     { text-decoration: underline; }

.oz-inline-map {

    margin-top: 10px;

    border: 1px solid #dbeafe;

    border-radius: 12px;

    overflow: hidden;

    background: #f8fbff;

}

.oz-inline-map__canvas {

    width: 100%;

    height: 170px;

}

.oz-inline-map__link {

    display: block;

    padding: 8px 10px;

    font-size: 12px;

    font-weight: 600;

    color: #1d4ed8;

    background: #eff6ff;

    border-top: 1px solid #dbeafe;

    text-decoration: none;

}

.oz-inline-map__link:hover {

    text-decoration: underline;

}



/* ── PDF card inside bubble ─────────── */

.oz-pdf-card a {

    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

}



.oz-pdf-icon {

    width: 40px;

    height: 40px;

    border-radius: 14px;

    background: #fff7ed;

    border: 1px solid #fed7aa;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;

    flex-shrink: 0;

}



.oz-pdf-info      { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.oz-pdf-info__name { font-size: var(--font-size-sm); font-weight: 900; color: var(--color-gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.oz-pdf-info__sub  { font-size: 11.5px; color: var(--color-gray-500); }



/* ── Metadata row ───────────────────── */

.oz-msg-meta {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 4px;

    padding-left: 4px;

    font-size: var(--font-size-sm);

    color: var(--color-gray-500);

}



.oz-msg-reactions {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 2px;

    padding-left: 2px;

}

.oz-msg-reaction-btn {

    width: 30px;

    height: 26px;

    border: 1px solid var(--color-gray-200);

    border-radius: 8px;

    background: var(--color-white);

    color: var(--color-gray-500);

    display: inline-flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: all 0.15s ease;

}

.oz-msg-reaction-btn:hover {

    color: #1d4ed8;

    border-color: #bfdbfe;

    background: #eff6ff;

}

.oz-msg-reaction-btn.is-selected {

    color: #1d4ed8;

    border-color: #93c5fd;

    background: #dbeafe;

}

.oz-msg-reaction-btn:focus-visible {

    outline: 2px solid #93c5fd;

    outline-offset: 1px;

}

.oz-msg-reactions--meta {

    margin-top: 0;

    padding-left: 0;

    margin-left: 2px;

}

.oz-msg-reactions--meta .oz-msg-reaction-btn {

    width: 22px;

    height: 20px;

    border-radius: 6px;

    border-color: transparent;

    background: transparent;

    color: var(--color-gray-500);

}

.oz-msg-reactions--meta .oz-msg-reaction-btn svg {

    width: 14px;

    height: 14px;

}

.oz-msg-reactions--meta .oz-msg-reaction-btn:hover {

    background: #eff6ff;

    border-color: #bfdbfe;

    color: #1d4ed8;

}

.oz-msg-reactions--meta .oz-msg-reaction-btn.is-selected {

    background: #dbeafe;

    border-color: #93c5fd;

    color: #1d4ed8;

}

.oz-avatar {

    width: 22px;

    height: 22px;

    border-radius: var(--radius-full);

    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}



/* ── Typing indicator ───────────────── */

.oz-typing {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    padding: 12px 16px;

    background: var(--color-gray-100);

    border-radius: 12px;

    align-self: flex-start;

    animation: messageSlideIn 0.3s ease;

}



.oz-typing-dots {

    display: flex;

    align-items: center;

    gap: 4px;

}



.oz-typing-dot {

    width: 8px;

    height: 8px;

    background: var(--color-gray-400);

    border-radius: 2px;

    animation: typingBounce 1.4s infinite ease-in-out both;

}



.oz-typing-dot:nth-child(1) { animation-delay: 0s; }

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

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



@keyframes typingBounce {

    0%, 80%, 100% { transform: scaleY(0.6); opacity: 0.5; }

    40% { transform: scaleY(1); opacity: 1; background: var(--color-gray-600); }

}



/* ── Action link buttons ────────────── */

.oz-action-link {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 14px;

    border-radius: 10px;

    text-decoration: none;

    font-size: var(--font-size-sm);

    font-weight: 600;

    transition: transform 0.2s;

    cursor: pointer;

    border: none;

}

.oz-action-link:hover { transform: translateY(-1px); }



/* ── Complaint button ───────────────── */

.oz-complaint-btn {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 14px;

    background: var(--color-warning-bg);

    color: var(--color-warning-text);

    border: 1px solid var(--color-warning-border);

    border-radius: var(--radius-md);

    font-size: var(--font-size-sm);

    font-weight: 600;

    cursor: pointer;

    transition: var(--transition-fast);

    text-align: left;

    width: 100%;

}

.oz-complaint-btn:hover { background: #fef3c7; transform: translateY(-1px); }



.oz-complaint-btn__icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 32px;

    height: 32px;

    border-radius: var(--radius-sm);

    background: rgba(180, 83, 9, 0.10);

    flex-shrink: 0;

}



/* ── Retry button ───────────────────── */

/* ── Media error ────────────────────── */

.oz-media-error {

    background: var(--color-error-bg);

    border: 1px solid var(--color-error-border);

    color: var(--color-error-text);

    border-radius: var(--radius-md);

    padding: 8px 10px;

    font-size: 12.5px;

    line-height: 1.35;

    margin-top: 2px;

}



/* ═══════════════════════════════════════════════════════════════════════════

   10. COMPONENT — Composer / Input area

   ═══════════════════════════════════════════════════════════════════════════ */



.oz-composer {

    background: #ffffff;

    padding: 8px 12px 10px;
    margin-bottom: 8px;

    display: flex;

    align-items: stretch;

    gap: 10px;

    flex-shrink: 0;

}



.oz-composer__box {

    flex: 1;

    border: 1px solid #e5e7eb;

    border-radius: 22px;

    padding: 14px 14px 10px 14px;

    display: flex;

    flex-direction: column;

    gap: 10px;

    background: #ffffff;

    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;

}

.oz-composer__box:focus-within {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.14);
}



.oz-composer__textarea {

    border: none;

    outline: none;

    font-size: 16px;

    color: #111827;

    background: transparent;

    width: 100%;

    padding: 0 2px 2px;

    white-space: pre-wrap;

    resize: none;

}

.oz-composer__textarea::placeholder { color: #737373; font-weight: 500; }



.oz-composer__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.oz-composer__toolbar-left { display: flex; align-items: center; }
.oz-composer__toolbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }



.oz-composer__tool-btn {

    width: 30px;

    height: 30px;

    border-radius: 999px;

    background: transparent;

    border: none;

    padding: 0;

    cursor: pointer;

    color: #525252;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: var(--transition-fast);

}

.oz-composer__tool-btn:hover { background: #e5e7eb; color: #111827; }

.oz-composer__tool-btn--plus,
#mic-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #ffffff;
    border: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.oz-composer__tool-btn--plus:hover,
#mic-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(227, 27, 41, 0.32);
}

.oz-composer__tool-btn--plus:active,
#mic-btn:active {
    transform: translateY(0) scale(0.96);
}

.oz-composer__model-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #525252;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 0;
    cursor: default;
}



.oz-composer__send-btn {

    width: 36px;

    height: 36px;

    border-radius: 10px;

    background: var(--color-primary);

    border: none;

    padding: 0;

    cursor: pointer;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;

    margin-left: auto;

    flex-shrink: 0;

}

.oz-composer__send-btn.is-active                       { background: var(--color-primary); color: #ffffff; box-shadow: 0 4px 10px rgba(227, 27, 41, 0.42); }

.oz-composer__send-btn:hover:not(:disabled)            { background: #d10f1d; }

.oz-composer__send-btn.is-active:hover:not(:disabled)  { background: var(--color-primary-dark); color: #ffffff; transform: translateY(-1px); }

.oz-composer__send-btn:disabled                        { opacity: 0 !important; cursor: not-allowed; box-shadow: none; pointer-events: none; width: 0; margin: 0; }

@media (max-width: 540px) {
    .oz-composer__textarea { font-size: 14px; }
    .oz-composer__model-btn { font-size: 11px; }
}

.oz-idle-feedback-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    width: 100%;
    margin: 0 auto 10px auto;
    border: none;
    background: transparent;
    overflow: visible;
    box-shadow: none;
    z-index: 5;
}

.oz-idle-feedback-prompt__question {
    margin: 0;
    padding: 6px 8px 0 8px;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    color: #6b7280;
    font-weight: 600;
}

.oz-idle-feedback-prompt__question::before {
    display: none;
}

.oz-idle-feedback-prompt__star {
    display: none;
}

.oz-idle-feedback-prompt__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.oz-idle-feedback-prompt__btn {
    width: 34px;
    height: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #4b5563;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.oz-idle-feedback-prompt__btn + .oz-idle-feedback-prompt__btn {
    border-left: none;
}

.oz-idle-feedback-prompt__btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.oz-idle-feedback-rate-panel {
    position: static;
    transform: none;
    width: min(430px, 100%);
    max-width: calc(100vw - 28px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    z-index: 3;
    overflow: hidden;
}

.oz-idle-feedback-panel-message {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #161616;
    text-align: center;
}

.oz-idle-feedback-panel-message__icon {
    font-size: 19px;
    line-height: 1;
}

.oz-idle-feedback-panel-separator {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 0;
}

.oz-idle-feedback-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
    flex-direction: row;
    padding: 4px 0;
}

.oz-idle-feedback-rate-panel__title {
    margin: 0;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #161616;
    letter-spacing: 0;
    white-space: nowrap;
}

.oz-idle-feedback-stars {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    direction: ltr;
}

.oz-idle-feedback-star {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #d1d5db;
    padding: 2px 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.oz-idle-feedback-star:hover {
    transform: translateY(-1px);
}

.oz-idle-feedback-star.is-active {
    color: #ffc61a;
    text-shadow: none;
}

.oz-idle-feedback-rating-preview {
    font-size: 12px;
    color: #7b7b7b;
    text-align: right;
    margin-top: 0;
}

#idle-feedback-resolution-wrap,
#idle-feedback-rate-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0;
    border-top: 1px solid #e5e7eb;
}

.oz-idle-feedback-comment-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.oz-idle-feedback-comment-input {
    width: 100%;
    min-height: 82px;
    resize: vertical;
    border: 1px solid #d4d4d4;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-family: inherit;
    color: #111827;
    background: #faf8f0;
    text-align: right;
    direction: rtl;
}

.oz-idle-feedback-comment-input:focus {
    outline: none;
    border-color: #ffc61a;
    box-shadow: 0 0 0 3px rgba(255, 198, 26, 0.15);
}

.oz-idle-feedback-comment-error {
    margin: 0;
    font-size: 14px;
    color: #dc2626;
    text-align: right;
}

.oz-idle-feedback-send-btn {
    align-self: center;
    position: relative;
    border: none;
    border-radius: 12px;
    background: #ffc61a;
    color: #111111;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 24px;
    min-width: 140px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: none;
}

.oz-idle-feedback-send-btn:hover {
    filter: brightness(0.97);
}

.oz-idle-feedback-send-btn::after {
    content: "";
    background: rgba(255, 255, 255, 0.55);
    display: block;
    position: absolute;
    padding-top: 320%;
    padding-left: 350%;
    margin-left: -20px;
    margin-top: -120%;
    opacity: 0;
    transition: all 0.8s;
}

.oz-idle-feedback-send-btn:active::after {
    padding: 0;
    margin: 0;
    opacity: 1;
    transition: 0s;
}

.oz-idle-feedback-rate-panel.is-dislike-only #idle-feedback-resolution-wrap,
.oz-idle-feedback-rate-panel.is-dislike-only #idle-feedback-rate-wrap {
    display: none !important;
}

@media (max-width: 640px) {
    .oz-idle-feedback-rate-panel {
        width: 100%;
        padding: 14px 12px 12px 12px;
        border-radius: 14px;
        gap: 10px;
    }

    .oz-idle-feedback-panel-message {
        font-size: 14px;
    }

    .oz-idle-feedback-panel-message__icon {
        font-size: 18px;
    }

    .oz-idle-feedback-line {
        gap: 10px;
        flex-direction: row;
        align-items: center;
    }

    .oz-idle-feedback-stars {
        width: 100%;
        justify-content: flex-start;
    }

    .oz-idle-feedback-comment-input {
        min-height: 76px;
    }

    .oz-idle-feedback-send-btn {
        width: 100%;
        min-width: 0;
    }
}



/* ── Recording indicator ───────────── */

.oz-recording {

    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 10px 12px;
    position: relative;

}

.oz-recording__left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.oz-recording__mic-icon {
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.oz-recording__wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.oz-recording__wave i {
    display: block;
    width: 2px;
    height: 6px;
    background: #ef4444;
    border-radius: 2px;
    animation: oz-wave 1s ease-in-out infinite;
}

.oz-recording__wave i:nth-child(2) { animation-delay: 0.12s; }
.oz-recording__wave i:nth-child(3) { animation-delay: 0.24s; }
.oz-recording__wave i:nth-child(4) { animation-delay: 0.36s; }

@keyframes oz-wave {
    0%, 100% { transform: scaleY(0.55); opacity: 0.65; }
    50% { transform: scaleY(1.35); opacity: 1; }
}

.oz-recording__time {
    font-size: 22px;
    font-weight: 500;
    color: #111827;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.oz-recording__right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.oz-recording__action {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    color: #ffffff;
    background: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.oz-recording__send {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(227, 27, 41, 0.42);
}

.oz-recording__send:hover {
    background: var(--color-primary-dark);
}

.oz-recording__send:active {
    background: var(--color-primary-darker);
}

.oz-recording__action:hover {
    background: #dc2626;
}

.oz-recording__action:active {
    transform: scale(0.95);
}



#mic-btn.is-recording {

    background: var(--color-error) !important;

    color: var(--color-white) !important;

    border-radius: 10px !important;

    animation: pulse 1s infinite;

}

.oz-composer.is-recording .oz-composer__toolbar {
    display: none;
}

.oz-composer.is-recording .oz-composer__textarea {
    display: none;
}

.oz-composer.is-recording .oz-composer__box {
    gap: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}



/* Recording swipe hints */

.oz-recording__hints {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    font-size: 12px;

    color: var(--color-gray-500);

    padding: 0 4px;

}



.oz-recording__hint {

    display: flex;

    align-items: center;

    gap: 4px;

    opacity: 0.7;

}



.oz-recording__hint--left { color: var(--color-error); }

.oz-recording__hint--right { color: var(--color-success); }



.oz-recording__hint svg {

    width: 14px;

    height: 14px;

}



/* Cancel button in recording indicator */

.oz-recording__cancel,
.oz-recording__send {
    margin: 0;
}



/* ── Media preview inside composer ──── */

.oz-preview {

    width: 100%;

    border: 2px solid var(--color-primary);

    background: var(--color-white);

    border-radius: var(--radius-lg);

    padding: 10px 12px;

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.oz-preview__remove {

    width: 34px;

    height: 34px;

    border-radius: var(--radius-full);

    border: 1px solid var(--color-warning-border);

    background: var(--color-error-bg);

    color: var(--color-error-text);

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    font-size: 20px;

    line-height: 1;

}

.oz-preview__remove:hover { background: #fee2e2; }



.oz-preview__send {

    padding: 10px 14px;

    border-radius: 14px;

    border: 0;

    background: var(--color-primary);

    color: var(--color-black);

    font-weight: 800;

    cursor: pointer;

    flex-shrink: 0;

}

.oz-preview__send:hover { background: var(--color-primary-dark); }



/* ═══════════════════════════════════════════════════════════════════════════

   11. COMPONENT — Audio player

   ═══════════════════════════════════════════════════════════════════════════ */



.oz-audio {

    display: flex;

    align-items: center;

    gap: 12px;

    background: var(--color-white);

    padding: 10px 14px;

    border-radius: var(--radius-xl);

    min-width: 200px;

    max-width: 280px;

    margin-right: 0;

    border: 2px solid var(--color-gray-200);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

}

.oz-user-content .oz-audio {
    margin-left: auto;
}



.oz-audio__play-btn {

    width: 38px;

    height: 38px;

    border-radius: var(--radius-full);

    background: var(--color-black);

    border: none;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    flex-shrink: 0;

    color: var(--color-white);

}



.oz-audio__progress { flex: 1; display: flex; flex-direction: column; gap: 6px; }



.oz-audio__bar {

    height: 6px;

    background: var(--color-gray-200);

    border-radius: 3px;

    overflow: hidden;

    cursor: pointer;

    position: relative;

}

.oz-audio__bar-fill {

    height: 100%;

    width: 0%;

    background: var(--color-black);

    border-radius: 3px;

    transition: width 0.1s linear;

}



.oz-audio__time {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 11px;

    color: var(--color-gray-500);

}



/* ═══════════════════════════════════════════════════════════════════════════

   12. COMPONENT — Modals (emoji + image zoom)

   ═══════════════════════════════════════════════════════════════════════════ */



.oz-modal {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.50);

    z-index: 3000;

    display: flex;

    align-items: center;

    justify-content: center;

    backdrop-filter: blur(4px);

}

.oz-modal--hidden { display: none; }



/* ── Emoji picker ──────────────────── */

.oz-emoji-picker {

    background: var(--color-white);

    border-radius: var(--radius-md);

    width: 320px;

    max-height: 400px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

}



.oz-emoji-picker__header {

    padding: 12px 16px;

    border-bottom: 1px solid var(--color-gray-200);

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-weight: 600;

    color: var(--color-gray-700);

}

.oz-emoji-picker__header button {

    background: none;

    border: none;

    cursor: pointer;

    color: var(--color-gray-500);

    padding: 4px;

    border-radius: 6px;

}

.oz-emoji-picker__header button:hover { background: var(--color-gray-100); }



.oz-emoji-grid {

    display: grid;

    grid-template-columns: repeat(8, 1fr);

    gap: 4px;

    padding: 12px;

    overflow-y: auto;

    max-height: 320px;

}



.oz-emoji {

    font-size: 24px;

    cursor: pointer;

    padding: 4px;

    border-radius: 4px;

    text-align: center;

    user-select: none;

    transition: background 0.2s;

}

.oz-emoji:hover { background: var(--color-gray-100); transform: scale(1.10); }



/* ── Image zoom ─────────────────────── */

.oz-zoom-modal {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    z-index: 999999;

    display: none;

    align-items: center;

    justify-content: center;

    background: rgba(0, 0, 0, 0.85);

}

.oz-zoom-modal.is-open { display: flex; }



.oz-zoom-modal__close {

    position: absolute;

    top: 20px;

    right: 20px;

    background: transparent;

    border: none;

    color: var(--color-white);

    cursor: pointer;

    padding: 8px;

}

.oz-zoom-modal__close:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 8px;
}



.oz-zoom-modal__img {

    max-width: 90%;

    max-height: 90%;

    border-radius: var(--radius-sm);

    object-fit: contain;

    cursor: zoom-out;

}



/* ═══════════════════════════════════════════════════════════════════════════

   13. COMPONENT — Toast notifications

   ═══════════════════════════════════════════════════════════════════════════ */



/* Base toast */

.oz-toast {

    position: fixed;

    left: 50%;

    transform: translateX(-50%);

    border-radius: var(--radius-sm);

    padding: 12px 20px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    z-index: 9999;

    font-size: var(--font-size-sm);

    font-weight: 500;

    white-space: nowrap;

}



/* Error toast */

.oz-toast--error {

    bottom: 80px;

    background: var(--color-error-bg);

    border: 1px solid var(--color-error-border);

    border-left: 4px solid var(--color-error);

    color: var(--color-error-text);

    animation: errorToastSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}



/* Success toast */

.oz-toast--success {

    top: 60px;

    background: var(--color-success-bg);

    border: 1px solid var(--color-success-border);

    border-left: 4px solid var(--color-success);

    color: var(--color-success-text);

    display: flex;

    align-items: center;

    gap: 8px;

    animation: toastSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);

}



.oz-toast--success svg {

    animation: checkmarkScale 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;

}



/* Mic error toast (rich) */

.oz-toast--mic {

    position: absolute;

    bottom: 80px;

    left: 12px;

    right: 12px;

    transform: none;

    background: var(--color-white);

    border: 1.5px solid var(--color-error-border);

    border-radius: 14px;

    padding: 14px 16px;

    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.15);

    animation: messageSlideIn 0.3s ease;

}



/* ═══════════════════════════════════════════════════════════════════════════

   14. COMPONENT — Bottom navigation

   ═══════════════════════════════════════════════════════════════════════════ */



.oz-nav {

    background: var(--color-white);

    border-top: 1px solid #eef0f4;

    display: flex;

    align-items: center;

    flex-shrink: 0;

    height: 82px;

    padding: 10px 18px 8px 18px;

    border-radius: 0 0 22px 22px;

    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);

}



.oz-nav__item {

    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 6px;

    cursor: pointer;

    padding: 6px 4px;

    border: none;

    background: none;

    font-size: 13px;

    font-weight: 700;

    color: #6b7280;

    transition: var(--transition-base);

    position: relative;

    border-radius: var(--radius-md);

    margin: 0 4px;

}



.oz-nav__item:hover         { color: #6b7280; background: transparent; }

.oz-nav__item.is-active     { color: #e31b29; }

.oz-nav__item.is-active .oz-nav__icon { color: #e31b29; }



.oz-nav__icon {

    display: flex;

    align-items: center;

    justify-content: center;

    color: #6b7280;

    transition: color 0.3s;

}

.oz-nav__icon svg {

    width: 28px;

    height: 28px;

    stroke-width: 2.4;

}



.oz-nav__label { font-size: 13px; font-weight: 800; }



.oz-nav__badge {

    position: absolute;

    top: 2px;

    right: calc(50% - 16px);

    background: linear-gradient(135deg, #ef4444, #dc2626);

    color: var(--color-white);

    font-size: 9px;

    font-weight: 700;

    min-width: 16px;

    height: 16px;

    border-radius: var(--radius-full);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 4px;

    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.40);

    animation: badgePulse 2s infinite;

    z-index: 10;

}



/* ═══════════════════════════════════════════════════════════════════════════

   15. COMPONENT — Reclamation grid

   ═══════════════════════════════════════════════════════════════════════════ */



.oz-reclamation {

    padding: 50px 0;

    display: flex;

    flex-direction: column;

    gap: 16px;

}



.oz-reclamation__title {

    font-size: var(--font-size-2xl);

    font-weight: 700;

    color: var(--color-gray-900);

    margin: 0;

    text-align: center;

}



.oz-reclamation__subtitle {

    font-size: var(--font-size-sm);

    color: var(--color-gray-500);

    margin: 0;

    text-align: center;

}



.oz-reclamation__grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

}



.oz-reclamation__btn {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 16px 8px;

    background: linear-gradient(135deg, var(--color-white), var(--color-gray-50));

    border: 1px solid var(--color-gray-200);

    border-radius: var(--radius-md);

    cursor: pointer;

    transition: all 0.3s ease;

    aspect-ratio: 1;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

}



.oz-reclamation__btn:hover {

    background: linear-gradient(135deg, #fffbeb, #fef3c7);

    border-color: #f59e0b;

    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.20);

}



.oz-reclamation__icon {

    display: flex;

    align-items: center;

    justify-content: center;

    color: #f59e0b;

    transition: transform 0.3s;

}

.oz-reclamation__btn:hover .oz-reclamation__icon { transform: scale(1.10); }



.oz-reclamation__label {

    font-size: 11px;

    font-weight: 600;

    color: var(--color-gray-700);

    text-align: center;

    line-height: 1.3;

    transition: color 0.3s;

}

.oz-reclamation__btn:hover .oz-reclamation__label { color: var(--color-warning-text); }



#reclamation-form-view { animation: formViewSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1); }



/* ═══════════════════════════════════════════════════════════════════════════

   16. COMPONENT — Forms (reclamation, tracking, livreur)

   ═══════════════════════════════════════════════════════════════════════════ */



.oz-form-group { margin-bottom: 18px; }



.oz-form-label {

    display: block;

    font-size: var(--font-size-sm);

    font-weight: 600;

    color: var(--color-gray-700);

    margin-bottom: 8px;

    transition: color 0.2s ease;

}



.oz-form-input,

.oz-form-textarea {

    width: 100%;

    padding: 14px 16px;

    border: 2px solid var(--color-gray-200);

    border-radius: var(--radius-md);

    font-size: var(--font-size-md);

    background: var(--color-gray-50);

    color: var(--color-black);

    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    outline: none;

}



.oz-form-input:hover,

.oz-form-textarea:hover  { background: var(--color-white); border-color: var(--color-gray-300); }



.oz-form-input:focus,

.oz-form-textarea:focus {

    background: var(--color-white);

    border-color: var(--color-primary);

    box-shadow: 0 0 0 4px rgba(255, 204, 15, 0.20), 0 4px 12px rgba(255, 204, 15, 0.15);

    transform: translateY(-1px);

}



.oz-form-input::placeholder,

.oz-form-textarea::placeholder { color: var(--color-gray-400); font-weight: 400; }



.oz-form-input[readonly] {

    background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-200));

    color: var(--color-gray-600);

    cursor: default;

    border-color: var(--color-gray-200);

    font-weight: 500;

}



.oz-form-textarea { resize: vertical; min-height: 100px; max-height: 200px; }

.oz-address-mode__hint {
    margin: 0 0 10px 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.oz-address-mode {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.oz-address-mode__btn {
    flex: 1;
    border: 1px solid var(--color-gray-300);
    background: var(--color-white);
    color: var(--color-gray-700);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.oz-address-mode__btn:hover {
    border-color: var(--color-primary-dark);
    color: var(--color-black);
}

.oz-address-mode__btn.is-active {
    border-color: var(--color-primary-dark);
    background: linear-gradient(135deg, rgba(255, 204, 15, 0.25), rgba(255, 204, 15, 0.08));
    color: var(--color-black);
}

.oz-address-map {
    margin-top: 12px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background: var(--color-white);
    padding: 10px;
}

.oz-address-map__help {
    margin: 0 0 8px 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.oz-address-map__canvas {
    height: 220px;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
}



.oz-form-actions {

    display: flex;

    gap: 12px;

    padding-top: 16px;

    margin-top: auto;

}



/* ── Buttons ───────────────────────── */

.oz-form-btn {

    flex: 1;

    padding: 14px 24px;

    border: none;

    border-radius: var(--radius-md);

    font-size: var(--font-size-md);

    font-weight: 600;

    cursor: pointer;

    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;

    overflow: hidden;

}



/* Shimmer on hover */

.oz-form-btn::after {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.30), transparent);

    transition: left 0.5s ease;

}

.oz-form-btn:hover::after { left: 100%; }



.oz-form-btn--secondary {

    background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-200));

    color: var(--color-gray-700);

    border: 2px solid var(--color-gray-200);

}

.oz-form-btn--secondary:hover  { background: linear-gradient(135deg, var(--color-gray-200), var(--color-gray-300)); border-color: var(--color-gray-300); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.oz-form-btn--secondary:active { transform: translateY(0); }



.oz-form-btn--primary {

    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));

    color: var(--color-black);

    box-shadow: 0 4px 12px var(--color-primary-glow);

}

.oz-form-btn--primary:hover   { background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-darker)); transform: translateY(-2px); box-shadow: 0 6px 20px var(--color-primary-glow); }

.oz-form-btn--primary:active  { transform: translateY(0); box-shadow: 0 2px 8px var(--color-primary-glow); }

.oz-form-btn--primary:disabled { background: linear-gradient(135deg, var(--color-gray-300), var(--color-gray-400)); cursor: not-allowed; box-shadow: none; transform: none; }



/* Loading state */

.oz-form-btn--primary.is-loading { color: transparent; pointer-events: none; }

.oz-form-btn--primary.is-loading::before {

    content: '';

    position: absolute;

    top: 50%;

    left: 50%;

    width: 20px;

    height: 20px;

    margin: -10px 0 0 -10px;

    border: 2px solid var(--color-black);

    border-top-color: transparent;

    border-radius: var(--radius-full);

    animation: btnSpinner 0.8s linear infinite;

}



/* ═══════════════════════════════════════════════════════════════════════════

   16b. COMPONENT — Tracking Validation Message

   ═══════════════════════════════════════════════════════════════════════════ */



.oz-validation-msg {

    font-size: var(--font-size-sm);

    font-weight: 600;

    padding: 6px 10px;

    border-radius: var(--radius-sm);

    margin-bottom: 6px;

    display: inline-block;

    min-height: 28px;

    transition: all 0.3s ease;

}



.oz-validation-msg--checking {

    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);

    color: var(--color-gray-600);

    border: 1px solid var(--color-gray-300);

}



.oz-validation-msg--success {

    background: linear-gradient(135deg, #f0fdf4, #dcfce7);

    color: var(--color-success-text);

    border: 1px solid var(--color-success-border);

}



.oz-validation-msg--success::before {

    content: '✓ ';

    font-weight: 800;

}



.oz-validation-msg--error {

    background: linear-gradient(135deg, #fef2f2, #fee2e2);

    color: var(--color-error-text);

    border: 1px solid var(--color-error-border);

}



.oz-validation-msg--error::before {

    content: '✗ ';

    font-weight: 800;

}



/* ═══════════════════════════════════════════════════════════════════════════

   17. COMPONENT — Tracking Card

   ═══════════════════════════════════════════════════════════════════════════ */



.oz-tracking-card {

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 16px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

}



.oz-tracking-card__header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 12px;

    padding-bottom: 12px;

    border-bottom: 1px solid #f3f4f6;

}



.oz-tracking-card__code {

    font-size: 16px;

    font-weight: 700;

    color: #1f2937;

    font-family: monospace;

}



.oz-tracking-card__badge {

    font-size: 11px;

    font-weight: 600;

    padding: 4px 10px;

    border-radius: 20px;

    text-transform: uppercase;

    letter-spacing: 0.3px;

}



.oz-tracking-card__badge--success {

    background: #dcfce7;

    color: #166534;

}



.oz-tracking-card__badge--error {

    background: #fee2e2;

    color: #991b1b;

}



.oz-tracking-card__body {

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.oz-tracking-card__section {

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.oz-tracking-card__divider {

    height: 1px;

    background: #f3f4f6;

    margin: 4px 0;

}



.oz-tracking-card__row {

    display: flex;

    gap: 8px;

    align-items: flex-start;

}



.oz-tracking-card__label {

    font-size: 13px;

    font-weight: 500;

    color: #6b7280;

    min-width: 80px;

    flex-shrink: 0;

}



.oz-tracking-card__value {

    font-size: 13px;

    color: #1f2937;

    word-break: break-word;

}



.oz-tracking-card__value--highlight {

    font-weight: 600;

    color: #059669;

}



/* Error card */

.oz-tracking-card--error {

    background: #fef2f2;

    border-color: #fecaca;

    text-align: center;

    padding: 24px 16px;

}



.oz-tracking-card__error-message {

    font-size: 14px;

    color: #991b1b;

    font-weight: 500;

}



/* Empty state */

.oz-tracking-card--empty {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 32px 16px;

    background: #f9fafb;

    border-style: dashed;

}



.oz-tracking-card--empty svg {

    margin-bottom: 12px;

    opacity: 0.5;

}



.oz-tracking-card--empty p {

    font-size: 14px;

    color: #9ca3af;

    margin: 0;

}



/* ═══════════════════════════════════════════════════════════════════════════

   18. RESPONSIVE — Mobile overrides

   ═══════════════════════════════════════════════════════════════════════════ */



/* Grands écrans (>1200px) - Widget plus grand */

@media (min-width: 1200px) {

    .oz-widget {

        width: 520px;

        height: 760px;

        max-height: 85vh;

    }



    .oz-widget--expanded {

        width: 700px;

        height: 85vh;

        max-height: 900px;

    }

}



/* Écrans moyens (768px - 1199px) - Taille standard */

@media (max-width: 1199px) and (min-width: 768px) {

    .oz-widget {

        width: 480px;

        height: 720px;

        max-height: 80vh;

    }

}



/* Petits écrans / Tablettes (481px - 767px) */

@media (max-width: 767px) and (min-width: 481px) {

    .oz-widget {

        width: 420px;

        height: 600px;

        max-height: 75vh;

        right: 20px;

    }



    .oz-widget--expanded {

        width: calc(100% - 40px);

        height: 80vh;

        right: 20px;

    }

}



/* Mobile (<480px) - Plein écran */

@media (max-width: 480px) {

    .oz-widget {

        width: calc(100% - 32px);

        right: 16px;

        left: 16px;

        bottom: 80px;

        height: calc(100vh - 100px);

        max-height: none;

    }



    .oz-fab {

        width: 52px;

        height: 52px;

        right: 16px;

        bottom: 16px;

    }



    .oz-reclamation__grid {

        grid-template-columns: repeat(2, 1fr);

    }



    .oz-contact-buttons {

        right: 16px;

        bottom: 90px;

    }



    .oz-contact-btn {

        width: 46px;

        height: 46px;

        margin-left: 6px;

    }

    .oz-agent-closure-actions {

        right: 10px;

        bottom: 18px;

        gap: 10px;

    }

    .oz-agent-closure-action__btn {

        width: 46px;

        height: 46px;

    }

    .oz-agent-closure-action__label {

        max-width: 170px;

        white-space: normal;

        text-align: right;

    }

}



/* ═══════════════════════════════════════════════════════════════════════════

   Agent header active status animation

   ═══════════════════════════════════════════════════════════════════════════ */



@keyframes pulse-dot {

    0% {

        transform: scale(1);

        opacity: 1;

    }

    50% {

        transform: scale(1.2);

        opacity: 0.7;

    }

    100% {

        transform: scale(1);

        opacity: 1;

    }

}



/* ═══════════════════════════════════════════════════════════════════════════

   FEEDBACK SECTION STYLES

   ═══════════════════════════════════════════════════════════════════════════ */



.oz-feedback-section {

    margin-top: 32px;

    padding: 24px 20px;

    background: #ffffff;

    border-radius: 12px;

    border: 1px solid #e5e7eb;

    text-align: center;

}



.oz-feedback-title {

    font-size: 15px;

    font-weight: 600;

    color: #374151;

    margin: 0 0 16px 0;

    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

}

.oz-feedback-title--conversation-style {

    font-size: 13px;

    font-weight: 600;

    color: #000000;

    text-align: center;

    font-style: italic;

    font-family: Georgia, "Times New Roman", Times, serif;

    line-height: 1.45;

}



.oz-feedback-buttons {

    display: flex;

    gap: 12px;

    justify-content: center;

    flex-wrap: wrap;

}



.oz-feedback-btn {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 12px 24px;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;

    border: 2px solid transparent;

    background: #ffffff;

    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

}



.oz-feedback-btn--yes {

    color: #16a34a;

    border-color: #16a34a;

}



.oz-feedback-btn--yes:hover {

    background: #dcfce7;

}



.oz-feedback-btn--yes:active {

    background: #bbf7d0;

}



.oz-feedback-btn--no {

    color: #dc2626;

    border-color: #dc2626;

}



.oz-feedback-btn--no:hover {

    background: #fee2e2;

}



.oz-feedback-btn--no:active {

    background: #fecaca;

}



.oz-feedback-btn:disabled {

    opacity: 0.5;

    cursor: not-allowed;

}

.oz-feedback-step-title {

    margin: 0 0 8px 0;

    font-size: 13px;

    font-weight: 600;

    color: #334155;

    text-align: left;

    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

}

.oz-feedback-btn.is-selected {

    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);

    transform: translateY(-1px);

}

.oz-feedback-stars {

    display: flex;

    justify-content: center;

    gap: 6px;

    margin-top: 12px;

}

.oz-feedback-star {

    width: 34px;

    height: 34px;

    border: none;

    background: transparent;

    color: #d1d5db;

    font-size: 30px;

    line-height: 1;

    cursor: pointer;

    transition: transform 0.15s ease, color 0.15s ease;

}

.oz-feedback-star:hover {

    color: #f59e0b;

    transform: scale(1.08);

}

.oz-feedback-star.is-active {

    color: #f59e0b;

}

.oz-feedback-star:disabled {

    opacity: 0.5;

    cursor: not-allowed;

    transform: none;

}

.oz-feedback-flow {
    margin-top: 10px;
}

.oz-feedback-flow__rate,
.oz-feedback-flow__comment {
    margin-top: 8px;
}

.oz-feedback-flow__resolution,
.oz-feedback-flow__rate {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
}

.oz-feedback-flow__resolution .oz-feedback-step-title,
.oz-feedback-flow__rate .oz-feedback-step-title {
    margin: 0;
    white-space: nowrap;
    width: 84px;
    flex: 0 0 84px;
}

.oz-feedback-flow__resolution .oz-feedback-stars,
.oz-feedback-flow__rate .oz-feedback-stars {
    margin-top: 0;
    justify-content: flex-start;
}



.oz-feedback-thanks {

    font-size: 14px;

    color: #16a34a;

    font-weight: 600;

    margin: 16px 0 0 0;

    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

}





/* OzonBot specific feedback styling */

.oz-feedback-ozonbot {

    margin-top: 24px;

}



/* Floating mascot FAB override */

.oz-fab-shell {
    position: fixed;
    right: 24px;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    opacity: 0;
    animation: ozFabSlideInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.oz-fab-dismiss {
    position: absolute;
    left: -8px;
    top: -8px;
    width: 22px;
    height: 22px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px) scale(0.94);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 3;
}

.oz-fab:hover .oz-fab-dismiss,
.oz-fab-dismiss:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.oz-fab-dismiss:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

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

.oz-fab-bubble {
    max-width: min(420px, calc(100vw - 120px));
    width: max-content;
    margin-bottom: 40px;
    padding: 10px 15px;
    border-radius: 18px;
    border-bottom-right-radius: 2px;
    background: #ffd54f;
    color: #333;
    direction: rtl;
    font-size: clamp(11px, 1.15vw, 13px);
    font-weight: 600;
    line-height: 1.45;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    position: relative;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.oz-fab-bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #ffd54f;
    transform: translateY(-50%) rotate(45deg);
}

.oz-fab-bubble.show {
    opacity: 1;
    transform: translateX(0);
}

.oz-fab {
    position: relative;
    right: auto;
    bottom: auto;
    width: 90px;
    height: 90px;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    color: var(--color-black);
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.oz-fab::before {
    content: none;
}

.oz-fab:hover {
    transform: scale(1.05);
}

.oz-fab:active {
    transform: scale(0.96);
}

.oz-fab:not(.oz-fab--minimized) {
    animation: ozFabFloat 3s ease-in-out infinite;
}

@keyframes ozFabFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.oz-fab-shell.oz-fab-shell--open {
    gap: 0;
}

.oz-fab-shell.oz-fab-shell--open .oz-fab-bubble {
    opacity: 0;
    transform: translateX(20px);
}

.oz-fab.oz-fab--minimized {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 2px 8px rgba(255, 204, 15, 0.5);
}

.oz-fab.oz-fab--minimized .oz-fab__logo {
    display: none;
}

.oz-fab.oz-fab--minimized::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-right: 3px solid #000;
    border-bottom: 3px solid #000;
    transform: rotate(45deg);
}

.oz-fab.oz-fab--minimized:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 204, 15, 0.7);
}

.oz-fab__logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
    position: static;
}

@media (max-width: 768px) {
    .oz-fab-shell {
        right: 16px;
    }

    .oz-fab-bubble {
        max-width: calc(100vw - 92px);
        margin-bottom: 34px;
        padding: 9px 13px;
        font-size: 11px;
    }

    .oz-fab {
        width: 70px;
        height: 70px;
    }

    .oz-fab__logo {
        width: 70px;
        height: 70px;
    }

    .oz-fab.oz-fab--minimized {
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
        margin-bottom: 16px;
    }

    .oz-fab-dismiss {
        display: none;
    }
}
