﻿/* AZI Accountant Chatbot Styles */
.azi-chatbot-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --azi-rose: #e94d57;
    --azi-rose-muted: #e94d57;
    --azi-rose-soft: #f3e9ea;
}

.azi-chat-launcher {
    position: fixed;
    bottom: 30px;
    right: 56px;
    z-index: 9999;
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.azi-chat-launcher-label {
    position: absolute;
    right: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(50%);
    background: #e94d57;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    padding: 7px 14px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(233, 77, 87, 0.35);
    pointer-events: none;
    animation: azi-label-pop 2.8s ease-in-out infinite;
}

.azi-chat-launcher-label::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: #e94d57;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
}

@keyframes azi-label-pop {
    0%, 100% { transform: translateX(50%) translateY(0); }
    50% { transform: translateX(50%) translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .azi-chat-launcher-label {
        animation: none;
    }
}

.azi-chatbot-wrapper:has(.azi-chat-container.open) .azi-chat-launcher-label,
.azi-chat-launcher.is-chat-open .azi-chat-launcher-label {
    opacity: 0;
    visibility: hidden;
}

.floating-chat-icon {
    position: relative;
    width: 70px;
    height: 70px;
    background: #e94d57;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 22px rgba(40, 20, 22, 0.18);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.floating-chat-icon:hover {
    transform: scale(1.06);
    background: #e94d57;
    box-shadow: 0 10px 24px rgba(40, 20, 22, 0.22);
}

.azi-chat-container {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 32px;
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: min(640px, calc(100vh - 200px));
    max-height: calc(100vh - 200px);
    position: fixed;
    bottom: 120px;
    right: 30px;
    z-index: 10000;
    max-width: 440px;
    width: calc(100% - 60px);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(20px);
    transition: opacity 0.2s ease, transform 0.25s ease, visibility 0.2s;
    transform-origin: bottom right;
}

.azi-chat-container.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.chat-header {
    background: #e94d57;
    color: white;
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
}

.chat-header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 22px;
    flex-shrink: 0;
}

.chat-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.azi-header-beta {
    display: inline-block;
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    line-height: 1.2;
    pointer-events: none;
}

.azi-chat-container .header-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.azi-chat-container .header-content {
    flex: 1;
    min-width: 0;
}

.azi-chat-container .header-content .header-tagline {
    font-size: 12px;
    opacity: 0.95;
    margin: 0 0 3px 0;
    line-height: 1.35;
    white-space: normal;
}

.azi-chat-container .header-content p {
    margin: 0;
}

.azi-chat-container .status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    line-height: 1.3;
}

.azi-chat-container .status-dot {
    width: 8px;
    height: 8px;
    background: #e8f3ea;
    border-radius: 50%;
}

@keyframes azi-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.user-type-selector {
    display: flex;
    padding: 12px 20px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    gap: 8px;
}

.azi-chat-container .type-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #CBD5E1;
    background: white;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.azi-chat-container .type-btn i {
    font-size: 12px;
}

.azi-chat-container .type-btn.active {
    background: #e94d57;
    color: white;
    border-color: transparent;
}

.azi-chat-container .chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f7f7f8;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.azi-chat-container .message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    line-height: 1.45;
    font-size: 13px;
    animation: azi-slideIn 0.3s ease;
    word-wrap: break-word;
}

@keyframes azi-slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.azi-chat-container .user-message {
    align-self: flex-end;
    background: #f3e9ea;
    color: #3d2c2e;
    border: 1px solid #ead8da;
    border-bottom-right-radius: 4px;
}

.azi-chat-container .bot-message {
    align-self: flex-start;
    background: #ffffff;
    color: #0F172A;
    border: 1px solid #e8e8ea;
    border-bottom-left-radius: 4px;
}

/* Service cards styling */
.azi-chat-container .bot-message p.azi-bot-card-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 0 6px 0;
}

.azi-chat-container .bot-message p {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.45;
    margin: 0 0 8px 0;
}

.azi-chat-container .bot-message ul li {
    font-size: 12px !important;
    font-weight: 400 !important;
    margin-bottom: 6px;
}

.azi-chat-container .bot-message strong {
    color: #e94d57;
}

/* Welcome card inside chat (flow main) */
.azi-chat-container .custom-welcome-card {
    text-align: left;
    padding: 4px 2px 2px;
}

.azi-chat-container .custom-welcome-card .welcome-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.25;
    color: #5c3a3d;
}
.azi-chat-container .custom-welcome-card .welcome-assist {
    font-size: 12px;
    line-height: 1.4;
    color: #475569;
}

.azi-chat-container .typing-indicator {
    align-self: flex-start;
    background: white;
    padding: 10px 18px 12px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    display: flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.azi-chat-container .typing-ellipsis-dots {
    display: inline-flex;
    align-items: flex-end;
    gap: 1px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #64748B;
    letter-spacing: 0.02em;
}

.azi-chat-container .typing-ellipsis-dots .typing-dot {
    display: inline-block;
    animation: azi-ellipsis-dot 1.2s ease-in-out infinite;
}

.azi-chat-container .typing-ellipsis-dots .typing-dot:nth-child(1) { animation-delay: 0s; }
.azi-chat-container .typing-ellipsis-dots .typing-dot:nth-child(2) { animation-delay: 0.15s; }
.azi-chat-container .typing-ellipsis-dots .typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes azi-ellipsis-dot {
    0%, 100% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

.azi-chat-container .suggestions {
    padding: 10px 16px 12px;
    background: #fff;
    border-top: 1px solid #E2E8F0;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.azi-chat-container .suggestions-title {
    font-size: 11px;
    color: #64748B;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.azi-chat-container .suggestions-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
}

.azi-chat-container .suggestions .suggestion-chip {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    background: #F1F5F9;
    color: #1E293B;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Chips outside the suggestions strip (e.g. in chat) keep compact pill style */
.azi-chat-container .suggestion-chip {
    background: #F1F5F9;
    color: #1E293B;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.azi-chat-container .suggestion-chip:hover {
    background: #e94d57;
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: none;
}

/* Chat Footer - FIXED for mobile */
.azi-chat-container .chat-footer {
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #ececec;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.azi-chat-container .input-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
}

.azi-chat-container .chat-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #e2e2e4;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    background: #f7f7f8;
}

.azi-chat-container .chat-input:focus {
    border-color: #e94d57;
    background: white;
    box-shadow: 0 0 0 3px rgba(233, 77, 87, 0.08);
}

.azi-chat-container .send-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #e94d57;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
}

.azi-chat-container .send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

/* Voice Controls - FIXED layout */
.voice-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.voice-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #F1F5F9;
    border: 2px solid #E2E8F0;
    border-radius: 50%;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.voice-btn:hover {
    background: #E2E8F0;
    transform: scale(1.05);
}

.voice-btn.listening {
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: transparent;
    color: white;
    animation: voice-pulse-green 1.5s infinite;
}

.voice-btn.speaking {
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: transparent;
    color: white;
    animation: voice-wave 1s ease-in-out infinite;
}

@keyframes voice-pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

@keyframes voice-wave {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Voice status indicator */
.voice-status {
    font-size: 11px;
    color: #64748B;
    padding: 4px 10px;
    display: none;
    align-items: center;
    gap: 6px;
    background: #F8FAFC;
    border-radius: 20px;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    white-space: nowrap;
}

.voice-status.show {
    display: flex;
}

.voice-status.listening i {
    color: #10b981;
    animation: pulse 1s infinite;
}

.voice-status.speaking i {
    color: #10b981;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* REMOVED settings button - not showing anymore */
.settings-btn {
    display: none !important;
}

/* Voice settings panel - hidden since we removed the button */
.voice-settings {
    display: none !important;
}

/* Speech permission notice */
.speech-permission-notice {
    background: #FEF3C7;
    color: #92400E;
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 8px;
    z-index: 100;
}

.speech-permission-notice.show {
    display: flex;
}

.speech-permission-notice button {
    background: none;
    border: none;
    color: #e94d57;
    cursor: pointer;
    font-weight: 600;
    margin-left: auto;
}

/* Quick Services Bar */
.azi-chat-container .quick-services-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 12px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    max-height: 90px;
    overflow-y: auto;
}

.azi-chat-container .service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.azi-chat-container .service-btn:hover {
    background: #e94d57;
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.azi-chat-container .service-btn i {
    font-size: 18px;
    color: #e94d57;
}

.azi-chat-container .service-btn:hover i {
    color: white;
}

/* Clear and close chat buttons */
.clear-chat-btn,
.close-chat-btn,
.azi-header-consult {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

.clear-chat-btn {
    margin: 0;
}

.clear-chat-btn:hover {
    background: rgba(255,255,255,0.3);
}

.clear-chat-btn:hover i {
    color: #FF4D4D;
}

.close-chat-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* Scrollbar */
.azi-chat-container .chat-body::-webkit-scrollbar {
    width: 4px;
}

.azi-chat-container .chat-body::-webkit-scrollbar-track {
    background: #F1F5F9;
}

.azi-chat-container .chat-body::-webkit-scrollbar-thumb {
    background: #e94d57;
    border-radius: 10px;
}

/* ========== MOBILE RESPONSIVE FIXES ========== */
@media (max-width: 768px) {
    .azi-chat-launcher {
        bottom: 20px;
        right: 36px;
        width: 55px;
    }

    .floating-chat-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .azi-chat-container {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 90px;
        max-width: none;
        height: 80vh;
        max-height: 80vh;
        border-radius: 24px;
    }

    .azi-chat-container .chat-header {
        padding: 8px 12px 12px;
    }

    .chat-header-top {
        min-height: 20px;
    }

    .azi-header-beta {
        font-size: 9px;
        padding: 3px 8px;
    }

    .azi-chat-container .header-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .azi-chat-container .header-content .header-tagline {
        font-size: 10px;
    }

    .azi-chat-container .header-content p {
        font-size: 10px;
    }

    .azi-chat-container .custom-welcome-card .welcome-title {
        font-size: 14px;
    }
    .azi-chat-container .custom-welcome-card .welcome-assist {
        font-size: 11px;
    }

    .azi-chat-container .chat-body {
        padding: 16px;
    }

    .azi-chat-container .message {
        max-width: 90%;
        padding: 9px 12px;
        font-size: 12px;
    }

    /* Fixed footer layout for mobile */
    .azi-chat-container .chat-footer {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .voice-controls {
        gap: 5px;
    }

    .voice-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 14px;
    }

    .azi-chat-container .send-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 14px;
    }

    .azi-chat-container .chat-input {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Service chips */
    .azi-chat-container .suggestion-chip {
        padding: 5px 12px;
        font-size: 11px;
    }

    /* Typing indicator */
    .azi-chat-container .typing-indicator {
        padding: 10px 14px;
    }

    /* Voice status on mobile - reposition */
    .voice-status {
        font-size: 10px;
        white-space: normal;
        max-width: 200px;
        text-align: center;
    }

    /* Consultation form mobile */
    .azi-consultation-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: max(12px, env(safe-area-inset-top, 12px));
    }

    .azi-consultation-modal {
        max-width: calc(100vw - 20px);
        width: calc(100vw - 20px);
        margin: 0 auto;
        max-height: calc(100vh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        border-radius: 18px;
    }

    .azi-consultation-header {
        padding: 16px;
    }

    .azi-consultation-body {
        padding: 16px;
    }

    .azi-consultation-footer {
        padding: 16px;
        flex-direction: column;
    }

    .azi-btn {
        width: 100%;
        justify-content: center;
    }

    .azi-form-row {
        flex-direction: column;
        gap: 10px;
    }

    .azi-form-row > .azi-form-group {
        flex: 1 1 auto;
        min-width: 0;
    }

    .azi-form-row--3 {
        grid-template-columns: 1fr;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .azi-chat-launcher {
        bottom: 15px;
        right: 28px;
        width: 50px;
    }

    .floating-chat-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .azi-chat-container {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 80px;
        height: 85vh;
        max-height: 85vh;
        border-radius: 20px;
    }

    .azi-chat-container .chat-header {
        padding: 8px 10px 10px;
    }

    .azi-chat-container .header-icon {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }

    .header-actions {
        gap: 6px;
    }

    .azi-chat-container .chat-body {
        padding: 12px;
    }

    .azi-chat-container .chat-footer {
        padding: 8px 10px;
        gap: 6px;
    }

    .voice-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 12px;
    }

    .azi-chat-container .send-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 12px;
    }

    .azi-chat-container .chat-input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .clear-chat-btn,
    .close-chat-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Consultation form button */
.azi-consultation-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #e94d57;
    color: white !important;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: none;
}

.azi-consultation-card-btn:hover {
    transform: translateY(-1px);
    background: #e94d57;
    box-shadow: none;
    color: white !important;
}

/* Contact icon buttons */
.azi-contact-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1F2933;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.azi-contact-icon-btn:hover {
    background: #e94d57;
    color: #fff;
    border-color: transparent;
}

/* Consultation modal */
.azi-consultation-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2.5vw, 20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.azi-consultation-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.azi-consultation-modal {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: min(820px, calc(100vw - 24px));
    min-width: 0;
    min-height: 0;
    max-height: min(96vh, 980px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s ease;
}

.azi-consultation-overlay.is-open .azi-consultation-modal {
    transform: scale(1) translateY(0);
}

.azi-consultation-modal--wide {
    max-width: min(920px, calc(100vw - 24px));
    width: min(920px, calc(100vw - 24px));
}

.azi-consultation-body--cal {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
}

.azi-scheduler {
    display: flex;
    flex: 1;
    min-height: 480px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.azi-cal-panel {
    flex: 1 1 58%;
    min-width: 0;
    width: 58%;
    padding: 22px 24px 20px;
    background: linear-gradient(180deg, #fff 0%, #faf7f7 100%);
    border-right: 1px solid #ead8da;
}

.azi-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.azi-cal-month {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #3d2c2e;
    letter-spacing: -0.02em;
}

.azi-cal-nav-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ead8da;
    background: #fff;
    border-radius: 50%;
    color: #e94d57;
    cursor: pointer;
}

.azi-cal-nav-btn:hover {
    background: #f7f1f2;
}

.azi-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #8a6e71;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.azi-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.azi-cal-day {
    aspect-ratio: 1;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #3d2c2e;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.azi-cal-day:hover:not(:disabled):not(.is-empty) {
    background: #f3e9ea;
}

.azi-cal-day.is-today {
    box-shadow: inset 0 0 0 1.5px #e94d57;
}

.azi-cal-day.is-selected {
    background: #e94d57;
    color: #fff;
    box-shadow: 0 6px 14px rgba(233, 77, 87, 0.28);
}

.azi-cal-day.is-disabled,
.azi-cal-day.is-empty {
    color: #c9b8ba;
    cursor: default;
    background: transparent;
}

.azi-slots-panel {
    flex: 0 0 320px;
    width: 320px;
    min-width: 0;
    padding: 18px 16px 16px;
    opacity: 1;
    overflow: hidden;
    background: #fff8f8;
    display: flex;
    flex-direction: column;
}

.azi-slots-back {
    align-self: flex-start;
    border: 0;
    background: transparent;
    color: #e94d57;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 0 10px;
}

.azi-slots-back:hover {
    color: #e94d57;
}

.azi-slots-heading {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #3d2c2e;
}

.azi-slots-date {
    margin: 0 0 14px;
    font-size: 13px;
    color: #e94d57;
    font-weight: 600;
}

.azi-slots-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow-y: auto;
    max-height: 360px;
}

.azi-slot-btn {
    border: 1px solid #ead8da;
    background: #fff;
    border-radius: 10px;
    padding: 11px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #3d2c2e;
    cursor: pointer;
}

.azi-slot-btn:hover {
    border-color: #e94d57;
    color: #e94d57;
}

.azi-slot-btn.is-selected {
    background: #e94d57;
    border-color: #e94d57;
    color: #fff;
}

.azi-slots-empty,
.azi-slots-loading {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    font-size: 13px;
    color: #6b5a5c;
}

.azi-slots-empty--idle {
    text-align: center;
    padding: 36px 16px;
    background: #fff;
    border: 1px dashed #ead8da;
    border-radius: 12px;
    color: #8a6e71;
    font-weight: 600;
}

.azi-details-overlay {
    z-index: 2147483010;
}

.azi-details-modal {
    max-width: min(640px, calc(100vw - 24px));
}

.azi-slot-summary {
    margin: 4px 0 0 !important;
    font-weight: 600 !important;
    opacity: 0.95;
}

@media (max-width: 800px) {
    .azi-scheduler {
        flex-direction: column;
        min-height: 0;
    }
    .azi-cal-panel {
        flex: 0 0 auto;
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #ead8da;
    }
    .azi-slots-panel {
        flex: 1 1 auto;
        width: 100%;
        max-height: 280px;
    }
    .azi-slots-list {
        max-height: 220px;
    }
}

.azi-pay-step {
    display: none;
}

.azi-pay-step.is-active {
    display: block;
}

.azi-pay-choice-label {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #3d2c2e;
}

.azi-pay-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.azi-pay-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    border: 1px solid #ead8da;
    background: #fff;
    border-radius: 14px;
    padding: 14px 14px;
    cursor: pointer;
    color: #3d2c2e;
}

.azi-pay-choice:hover {
    border-color: #e94d57;
    background: #fff8f8;
}

.azi-pay-choice-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f3e9ea;
    color: #e94d57;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.azi-pay-choice-icon--paypal {
    background: #e8f0fb;
    color: #003087;
}

.azi-pay-choice-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.azi-pay-choice-copy strong {
    font-size: 15px;
}

.azi-pay-choice-copy span {
    font-size: 12px;
    color: #6b5a5c;
}

.azi-pay-choice-arrow {
    color: #c9b8ba;
    font-size: 12px;
}

.azi-pay-back {
    border: 0;
    background: transparent;
    color: #e94d57;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 0 12px;
}

.azi-pay-back:hover {
    color: #e94d57;
}

.azi-pay-pane {
    display: none;
}

.azi-pay-pane.is-active {
    display: block;
}

.azi-stripe-mount {
    min-height: 80px;
    margin-bottom: 14px;
}

.azi-pay-submit {
    width: 100%;
    justify-content: center;
}

.azi-payment-modal {
    max-width: min(520px, calc(100vw - 24px));
}

.azi-consultation-header {
    background: #e94d57;
    color: white;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 24px 24px 0 0;
    flex-shrink: 0;
    position: relative;
}

.azi-consultation-header-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.azi-consultation-header-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.azi-consultation-header-content .azi-panel-title,
.azi-consultation-header-content #medibillConsultationTitle {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.azi-consultation-header-content p {
    font-size: 12px;
    opacity: 0.95;
    margin: 0;
}

.azi-consultation-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.2s;
    flex-shrink: 0;
}

.azi-consultation-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Form fills space under header so the body scrolls and footer stays visible */
.azi-consultation-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.azi-consultation-body {
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.azi-form-section {
    margin-bottom: 20px;
}

.azi-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 16px;
}

.azi-form-row > .azi-form-group {
    flex: 1 1 calc(50% - 8px);
    min-width: min(100%, 200px);
    margin-bottom: 0;
}

.azi-form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #e94d57;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.azi-form-section > .azi-form-group {
    margin-bottom: 14px;
}

.azi-form-section > .azi-form-group:last-child {
    margin-bottom: 0;
}

.azi-form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.azi-form-label .required {
    color: #dc2626;
}

.azi-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 13px;
    color: #0F172A;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.azi-form-input:focus {
    outline: none;
    border-color: #e94d57;
    box-shadow: 0 0 0 3px rgba(233, 77, 87, 0.1);
}

.azi-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.azi-consultation-body .azi-form-textarea {
    max-height: min(220px, 36vh);
}

.azi-form-select {
    appearance: auto;
    cursor: pointer;
}

.azi-form-select--multiple {
    padding: 10px;
    min-height: 100px;
}

.azi-form-hint {
    font-size: 11px;
    color: #64748B;
    margin: 5px 0 0 0;
}

.azi-field-error {
    display: block;
    font-size: 11px;
    color: #dc2626;
    margin-top: 4px;
}

.azi-form-message {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 16px;
}

.azi-form-message--error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.azi-form-message--success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.azi-consultation-footer {
    padding: 16px 20px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
    background: #fff;
}

.azi-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.azi-btn--primary {
    background: #e94d57;
    color: white;
    box-shadow: none;
}

.azi-btn--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #e94d57;
}

.azi-btn--secondary {
    background: white;
    color: #475569;
    border-color: #E2E8F0;
}

.azi-btn--secondary:hover {
    border-color: #e94d57;
    color: #e94d57;
}

.azi-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toast notification */
.azi-chatbot-wrapper .toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0F172A;
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 13px;
    transition: transform 0.3s ease;
    z-index: 11000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.azi-chatbot-wrapper .toast.show {
    transform: translateX(-50%) translateY(0);
}

.azi-chatbot-wrapper .toast i {
    color: #e94d57;
}

/* Grid flow buttons */
.azi-chat-container .azi-flow-grid.vertical-scroll {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    gap: 6px !important;
    padding: 6px;
    max-height: 86px;
}

.azi-chat-container .grid-flow-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto;
    width: 100% !important;
    min-width: 0 !important;
    height: 56px !important;
    background: white !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    padding: 4px 3px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-align: center;
    white-space: normal;
    transition: all 0.2s ease;
}

.azi-chat-container .grid-flow-btn i {
    font-size: 14px !important;
    color: #e94d57 !important;
    margin-bottom: 2px !important;
}

.azi-chat-container .grid-flow-btn:hover {
    border-color: #e94d57 !important;
    background: #f7f4f4 !important;
    box-shadow: none !important;
    transform: translateY(-1px);
    color: #e94d57 !important;
}

/* Flow follow-up choices (e.g. Credentialing â†’ New Enrollment): tight pill tags, wrap like filter chips */
.azi-chat-container .azi-flow-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 4px 4px;
    max-width: 100%;
}

.azi-chat-container .azi-flow-pill-btn {
    flex: 0 0 auto;
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px !important;
    margin: 0;
    border: none !important;
    border-radius: 999px !important;
    background: #f3f4f6 !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.azi-chat-container .azi-flow-pill-btn:hover:not(:disabled) {
    background: #e5e7eb !important;
    color: #0f172a !important;
}

.azi-chat-container .azi-flow-pill-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

/* Stripe payment modal (same stacking as consultation) */
.azi-payment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2.5vw, 20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.azi-payment-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.azi-payment-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: min(560px, calc(100vw - 24px));
    min-width: 0;
    min-height: 0;
    max-height: min(90vh, 720px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.25s ease;
}

.azi-payment-overlay.is-open .azi-payment-modal {
    transform: scale(1) translateY(0);
}

.azi-payment-header {
    background: linear-gradient(135deg, #635bff 0%, #0a2540 100%);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
    border-radius: 20px 20px 0 0;
}

.azi-payment-header-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.azi-payment-header-content {
    flex: 1;
    min-width: 0;
}

.azi-payment-header-content .azi-panel-title,
.azi-payment-header-content #medibillPaymentTitle {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.azi-payment-header-content p {
    font-size: 12px;
    opacity: 0.95;
    margin: 0;
}

.azi-payment-close {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.azi-payment-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.azi-payment-body {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.azi-payment-intro {
    font-size: 13px;
    color: #475569;
    margin: 0 0 12px 0;
}

.azi-payment-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    margin-bottom: 12px;
}

.azi-stripe-mount {
    min-height: 120px;
}

.azi-payment-loading {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    padding: 12px 0;
}

.azi-payment-amount-section {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.azi-payment-amount-label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.azi-payment-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.azi-payment-preset {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.azi-payment-preset:hover {
    border-color: #635bff;
    background: #eef2ff;
}

.azi-payment-preset.is-active {
    border-color: #635bff;
    background: linear-gradient(135deg, rgba(99, 91, 255, 0.12) 0%, rgba(10, 37, 64, 0.08) 100%);
    color: #1e1b4b;
}

.azi-payment-custom-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.azi-payment-custom-label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.azi-payment-custom-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.azi-payment-amount-input {
    flex: 1 1 120px;
    min-width: 100px;
    max-width: 200px;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.azi-payment-apply-btn {
    flex: 0 0 auto;
}

.azi-payment-phase-receipt {
    margin-top: 4px;
}

.azi-payment-receipt {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.5;
}

.azi-payment-receipt .azi-receipt-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.azi-payment-receipt .azi-receipt-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
}

.azi-payment-receipt .azi-receipt-row:last-of-type {
    border-bottom: none;
}

.azi-payment-receipt .azi-receipt-muted {
    color: #64748b;
    font-size: 12px;
}

.azi-payment-receipt .azi-receipt-support {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
}

.azi-payment-receipt .azi-receipt-support a {
    color: #e94d57;
    word-break: break-all;
}

.azi-payment-receipt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    justify-content: flex-end;
}

@media print {
    body * {
        visibility: hidden;
    }
    .azi-payment-overlay.is-open,
    .azi-payment-overlay.is-open * {
        visibility: visible;
    }
    .azi-payment-overlay.is-open {
        position: absolute;
        inset: 0;
        background: #fff;
        padding: 0;
    }
    .azi-payment-overlay.is-open .azi-payment-header,
    .azi-payment-overlay.is-open .azi-payment-close,
    .azi-payment-overlay.is-open .azi-payment-footer,
    .azi-payment-overlay.is-open #medibillPaymentPhaseForm,
    .azi-payment-overlay.is-open .azi-payment-receipt-actions {
        display: none !important;
    }
    .azi-payment-overlay.is-open .azi-payment-modal {
        box-shadow: none;
        max-height: none;
    }
    .azi-payment-overlay.is-open .azi-payment-receipt {
        border: none;
        background: #fff;
    }
}

.azi-payment-footer {
    padding: 14px 18px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
    background: #fff;
}

@media (max-width: 768px) {
    .azi-payment-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: max(12px, env(safe-area-inset-top, 12px));
    }

    .azi-payment-modal {
        max-width: calc(100vw - 20px);
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        border-radius: 16px;
    }

    .azi-payment-footer {
        flex-direction: column;
    }

    .azi-payment-footer .azi-btn {
        width: 100%;
        justify-content: center;
    }
}

.azi-options-container {
    padding: 8px 12px 4px;
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #ececec;
}

.azi-chat-disclaimer {
    margin: 0;
    padding: 6px 14px 10px;
    font-size: 10px;
    line-height: 1.35;
    color: #6b6b6b;
    background: #fff;
    flex-shrink: 0;
}

.azi-service-card {
    background: #fff;
    border-radius: 12px;
    padding: 4px 0;
}

.azi-bot-card-title {
    color: #e94d57;
    margin: 0 0 8px;
    font-weight: 700;
}

.azi-service-list {
    margin: 8px 0 0 18px;
    padding: 0;
}

.azi-service-list li {
    margin-bottom: 4px;
}

.azi-disclaimer-mini {
    font-size: 11px;
    color: #64748B;
    margin-top: 10px;
}

.azi-service-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.azi-chat-container .message-content {
    overflow-wrap: anywhere;
}

.azi-header-consult:hover {
    background: rgba(255,255,255,0.3);
}

.azi-firm-meta {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #ead8da;
    font-size: 11px;
    color: #5c4a4c;
    line-height: 1.45;
}

.azi-firm-meta p {
    margin: 0 0 4px 0 !important;
}

.azi-firm-meta i {
    width: 14px;
    color: #e94d57;
}

.azi-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 2147483100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.azi-confirm-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.azi-confirm-modal {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px 18px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.azi-confirm-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #3d2c2e;
}

.azi-confirm-text {
    margin: 0 0 16px;
    font-size: 13px;
    color: #5c4a4c;
    line-height: 1.45;
}

.azi-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.azi-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483640;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(28, 18, 20, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.azi-success-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.azi-success-card {
    position: relative;
    overflow: hidden;
    width: min(440px, calc(100vw - 32px));
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px 22px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
}

.azi-success-poppers {
    margin: 0 0 6px;
    font-size: 52px;
    line-height: 1;
    animation: azi-popper-bounce 0.7s ease;
}

.azi-success-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e94d57;
}

.azi-success-title {
    margin: 0 0 8px;
    font-size: 24px;
    color: #3d2c2e;
}

.azi-success-lead {
    margin: 0 0 16px;
    color: #6b5a5c;
    font-size: 14px;
}

.azi-success-summary {
    margin: 0 0 20px;
    padding: 14px 16px;
    text-align: left;
    background: #fff8f8;
    border: 1px solid #ead8da;
    border-radius: 12px;
}

.azi-success-summary div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #f3e9ea;
    font-size: 13px;
}

.azi-success-summary div:last-child {
    border-bottom: 0;
}

.azi-success-summary dt {
    margin: 0;
    color: #8a6e71;
    font-weight: 600;
}

.azi-success-summary dd {
    margin: 0;
    color: #3d2c2e;
    font-weight: 700;
    text-align: right;
}

.azi-popper-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.azi-popper-piece {
    position: absolute;
    left: 50%;
    top: 36%;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    animation: azi-popper-fly 1.1s ease-out forwards;
}

@keyframes azi-popper-bounce {
    0% { transform: scale(0.4) rotate(-12deg); }
    60% { transform: scale(1.15) rotate(8deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes azi-popper-fly {
    0% { transform: translate(-50%, 0) rotate(0) scale(1); opacity: 1; }
    100% {
        transform: translate(calc(-50% + var(--x)), var(--y)) rotate(var(--r)) scale(0.7);
        opacity: 0;
    }
}

.azi-success-chat {
    text-align: left;
}

.azi-success-chat p {
    margin: 0 0 8px;
}

.azi-success-chat ul {
    margin: 0;
    padding-left: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .azi-success-poppers,
    .azi-popper-piece {
        animation: none;
    }
}
