/* Ayrisoo LiveChat & WhatsApp Suite - Storefront Widget Styles */
:root {
    --ay-lc-primary: #0f172a;
    --ay-lc-accent: #25D366;
    --ay-lc-bg: #ffffff;
    --ay-lc-border: rgba(0, 0, 0, 0.08);
    --ay-lc-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
    --ay-lc-radius: 18px;
}

.ayrisoo-lc-container {
    position: fixed;
    z-index: 9999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    bottom: 24px;
}
.ayrisoo-lc-pos-bottom-right {
    right: 24px;
}
.ayrisoo-lc-pos-bottom-left {
    left: 24px;
}

/* Launcher Button */
.ayrisoo-lc-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ay-lc-primary, #008749);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
    position: relative;
    padding: 0;
    z-index: 10;
}
.ayrisoo-lc-launcher:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.ayrisoo-lc-launcher svg {
    color: #ffffff;
    display: block;
}

/* Style 2: Pill (Extended Horizontal) */
.ayrisoo-lc-launcher.ayrisoo-lc-style-pill {
    width: auto !important;
    height: 52px !important;
    border-radius: 26px !important;
    padding: 0 22px !important;
}
.ayrisoo-pill-content {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ayrisoo-pill-label {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    white-space: nowrap;
}

/* Style 3: Corporate Animated Badge (ilknuryilmaz.com / ARContactUs 1:1 - Refined Compact Size) */
.ayrisoo-lc-launcher.ayrisoo-lc-style-corporate_badge {
    position: relative !important;
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    background: var(--ay-lc-primary, #00a859) !important;
    flex-direction: column !important;
    animation: none !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2), 0 0 0 6px color-mix(in srgb, var(--ay-lc-primary, #00a859) 20%, transparent) !important;
    overflow: visible !important;
}
.ayrisoo-lc-launcher.ayrisoo-lc-style-corporate_badge:hover {
    transform: scale(1.06);
}

/* Filled Breathing Pulsation Waves (ARContactUs exact .pulsation - dead-center concentric) */
.ayrisoo-arcu-pulse {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 62px !important;
    height: 62px !important;
    margin-top: -31px !important;
    margin-left: -31px !important;
    border-radius: 50% !important;
    background-color: var(--ay-lc-primary, #00a859) !important;
    pointer-events: none;
    z-index: -1;
    transform-origin: center center !important;
    animation: ayrisoo-arcu-pulse 2s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ayrisoo-arcu-pulse.pulse-2 {
    animation-delay: 0.65s;
}
.ayrisoo-lc-launcher.is-open .ayrisoo-arcu-pulse,
.ayrisoo-lc-launcher.is-open .ayrisoo-arcu-dot {
    display: none;
}

/* Bright Green Online Dot (top-right corner of the halo) */
.ayrisoo-arcu-dot {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 7px rgba(34, 197, 94, 0.85);
    pointer-events: none;
    z-index: 3;
    animation: ayrisoo-dot-blink 2s ease-in-out infinite;
}

@keyframes ayrisoo-arcu-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        opacity: 0.24;
    }
    100% {
        transform: scale(1.42);
        opacity: 0;
    }
}

@keyframes ayrisoo-dot-blink {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.22);
        opacity: 0.75;
    }
}

/* Phase 1 <-> Phase 2 Smooth Scale Switch (ARContactUs exact timing) */
@keyframes ayrisoo-arcu-show-static {
    0%, 55% {
        transform: scale(1);
        opacity: 1;
    }
    60%, 92% {
        transform: scale(0);
        opacity: 0;
    }
    97%, 100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ayrisoo-arcu-show-icons {
    0%, 55% {
        transform: scale(0);
        opacity: 0;
    }
    60%, 92% {
        transform: scale(1);
        opacity: 1;
    }
    97%, 100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes ayrisoo-arcu-slide-1 {
    0%, 73% {
        opacity: 1;
        transform: scale(1);
    }
    76%, 94% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ayrisoo-arcu-slide-2 {
    0%, 73% {
        opacity: 0;
        transform: scale(0.5);
    }
    76%, 94% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.ayrisoo-corp-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ayrisoo-arcu-static {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    animation: ayrisoo-arcu-show-static 9s infinite ease-in-out;
}
.ayrisoo-arcu-icons {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ay-lc-primary, #00a859);
    animation: ayrisoo-arcu-show-icons 9s infinite ease-in-out;
}
.ayrisoo-arcu-icons svg {
    width: 20px !important;
    height: 20px !important;
    color: var(--ay-lc-primary, #00a859) !important;
}
.ayrisoo-arcu-icon-slide {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ayrisoo-arcu-icon-slide.slide-1 {
    animation: ayrisoo-arcu-slide-1 9s infinite ease-in-out;
}
.ayrisoo-arcu-icon-slide.slide-2 {
    animation: ayrisoo-arcu-slide-2 9s infinite ease-in-out;
}
.ayrisoo-launcher-svg-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
}
.ayrisoo-lc-style-corporate_badge .ayrisoo-launcher-svg-wrap svg {
    width: 19px !important;
    height: 19px !important;
}
.ayrisoo-corp-label {
    display: block;
    font-size: 7.8px;
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.01em;
    color: #ffffff;
}
/* Style 4: Classic Pure WhatsApp Circle (seydayasar.com style) */
.ayrisoo-lc-launcher.ayrisoo-lc-style-whatsapp_classic {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #25d366 0%, #00b83e 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42) !important;
    padding: 0 !important;
    margin: 0 !important;
    animation: none !important;
}
.ayrisoo-lc-launcher.ayrisoo-lc-style-whatsapp_classic:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.52) !important;
}
.ayrisoo-wa-classic-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ayrisoo-lc-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* ==========================================================================
   Quick Action Popup Menu (ilknuryilmaz.com / ARContactUs Exact Style)
   ========================================================================== */
.ayrisoo-lc-quick-menu {
    position: absolute;
    bottom: calc(100% + 16px);
    width: 270px;
    max-width: calc(100vw - 36px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16), 0 4px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px;
    z-index: 9999999;
    box-sizing: border-box;
    animation: ayLcFadeUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.ayrisoo-lc-pos-bottom-right .ayrisoo-lc-quick-menu {
    right: 0;
    transform-origin: bottom right;
}
.ayrisoo-lc-pos-bottom-left .ayrisoo-lc-quick-menu {
    left: 0;
    transform-origin: bottom left;
}

/* Caret Arrow pointer pointing down to circular button */
.ayrisoo-lc-quick-menu::after {
    content: '';
    position: absolute;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ayrisoo-lc-pos-bottom-right .ayrisoo-lc-quick-menu::after {
    right: 28px;
}
.ayrisoo-lc-pos-bottom-left .ayrisoo-lc-quick-menu::after {
    left: 28px;
}

/* Menu Items (WhatsApp & Arama Talebi Bırak) */
.ayrisoo-qm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f4f5f7;
    border-radius: 10px;
    margin-bottom: 8px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}
.ayrisoo-qm-item:last-child {
    margin-bottom: 0;
}
.ayrisoo-qm-item:hover {
    background: #ebeef2;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}
.ayrisoo-qm-item:active {
    transform: scale(0.98);
}

/* Icons */
.ayrisoo-qm-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}
.ayrisoo-qm-icon.wa {
    background: #00a884; /* WhatsApp Teal matching reference */
}
.ayrisoo-qm-icon.phone {
    background: #22c55e; /* Vibrant Green matching reference */
}
.ayrisoo-qm-label {
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.01em;
}

/* Callback Request Form Inside Popup */
.ayrisoo-qm-cb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 10px;
}
.ayrisoo-qm-cb-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.ayrisoo-qm-cb-back, .ayrisoo-qm-cb-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #64748b;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.ayrisoo-qm-cb-back:hover, .ayrisoo-qm-cb-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.ayrisoo-qm-cb-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.4;
}
.ayrisoo-qm-field {
    margin-bottom: 8px;
}
.ayrisoo-qm-field input,
.ayrisoo-qm-field select,
.ayrisoo-qm-field textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.15s ease;
}
.ayrisoo-qm-field input:focus,
.ayrisoo-qm-field select:focus,
.ayrisoo-qm-field textarea:focus {
    border-color: #16a34a;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.ayrisoo-qm-submit-btn {
    width: 100%;
    padding: 10px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
    margin-top: 4px;
}
.ayrisoo-qm-submit-btn:hover {
    background: #15803d;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}
.ayrisoo-qm-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Card */
.ayrisoo-qm-success-content {
    text-align: center;
    padding: 16px 8px;
}
.ayrisoo-qm-check-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #16a34a;
}
.ayrisoo-qm-success-content h4 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #0f172a;
    font-weight: 700;
}
.ayrisoo-qm-success-content p {
    margin: 0 0 16px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}
.ayrisoo-qm-done-btn {
    padding: 8px 24px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Chat Window Modal */
.ayrisoo-lc-window {
    position: absolute;
    bottom: 74px;
    width: 375px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 120px);
    background: var(--ay-lc-bg);
    border-radius: var(--ay-lc-radius);
    box-shadow: var(--ay-lc-shadow);
    border: 1px solid var(--ay-lc-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: ayLcFadeUp 0.25s ease-out;
}
.ayrisoo-lc-pos-bottom-right .ayrisoo-lc-window {
    right: 0;
}
.ayrisoo-lc-pos-bottom-left .ayrisoo-lc-window {
    left: 0;
}

@keyframes ayLcFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.ayrisoo-lc-header {
    background: var(--ay-lc-primary);
    color: #ffffff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ayrisoo-lc-header-avatar {
    position: relative;
    flex-shrink: 0;
}
.ayrisoo-lc-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.ayrisoo-lc-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    background: var(--ay-lc-accent);
    border-radius: 50%;
    border: 2px solid var(--ay-lc-primary);
}
.ayrisoo-lc-header-info {
    flex-grow: 1;
    min-width: 0;
}
.ayrisoo-lc-header-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}
.ayrisoo-lc-header-info p {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.2;
}
.ayrisoo-lc-header-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background 0.15s ease;
}
.ayrisoo-lc-header-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Tabs */
.ayrisoo-lc-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid var(--ay-lc-border);
}
.ayrisoo-lc-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}
.ayrisoo-lc-tab:hover {
    color: var(--ay-lc-primary);
}
.ayrisoo-lc-tab.active {
    color: var(--ay-lc-primary);
    border-bottom-color: var(--ay-lc-primary);
    background: #ffffff;
}

/* Context Banner (Product preview inside chat) */
.ayrisoo-lc-context-banner {
    background: #f1f5f9;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ay-lc-border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.ayrisoo-lc-context-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.ayrisoo-lc-context-info {
    flex-grow: 1;
    min-width: 0;
}
.ayrisoo-lc-context-title {
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.ayrisoo-lc-context-price {
    color: #059669;
    font-weight: 700;
    margin: 2px 0 0;
}

/* Views Container */
.ayrisoo-lc-view {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}
.ayrisoo-lc-view.active {
    display: flex;
}

/* Messages Stream */
.ayrisoo-lc-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}
.ayrisoo-lc-time-divider {
    text-align: center;
    margin: 4px 0 8px;
}
.ayrisoo-lc-time-divider span {
    background: #e2e8f0;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

/* Bubbles */
.ayrisoo-lc-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.45;
    word-break: break-word;
    position: relative;
    animation: ayLcMsgIn 0.15s ease-out;
}
@keyframes ayLcMsgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.ayrisoo-lc-msg-admin {
    align-self: flex-start;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid var(--ay-lc-border);
    border-bottom-left-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.ayrisoo-lc-msg-visitor {
    align-self: flex-end;
    background: var(--ay-lc-primary);
    color: #ffffff;
    border-bottom-right-radius: 3px;
}
.ayrisoo-lc-msg-sender {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
}
.ayrisoo-lc-msg-time {
    font-size: 9.5px;
    opacity: 0.65;
    margin-top: 4px;
    text-align: right;
}

/* Lead Bar */
.ayrisoo-lc-lead-bar {
    padding: 8px 14px;
    background: #f1f5f9;
    border-top: 1px solid var(--ay-lc-border);
}
.ayrisoo-lc-lead-bar input {
    width: 100%;
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
}

/* Input Bar */
.ayrisoo-lc-input-bar {
    padding: 10px 14px;
    background: #ffffff;
    border-top: 1px solid var(--ay-lc-border);
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.ayrisoo-lc-input-bar textarea {
    flex-grow: 1;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13.5px;
    line-height: 1.4;
    resize: none;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    max-height: 80px;
    transition: border-color 0.15s ease;
}
.ayrisoo-lc-input-bar textarea:focus {
    border-color: var(--ay-lc-primary);
}
.ayrisoo-lc-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ay-lc-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease;
    padding: 0;
}
.ayrisoo-lc-send-btn:hover {
    transform: scale(1.08);
}

/* WhatsApp View */
.ayrisoo-lc-wa-card {
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}
.ayrisoo-lc-wa-icon-large {
    margin-bottom: 12px;
}
.ayrisoo-lc-wa-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #1e293b;
}
.ayrisoo-lc-wa-card p {
    margin: 0 0 16px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}
.ayrisoo-lc-wa-preview-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}
.ayrisoo-lc-wa-preview-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.ayrisoo-lc-wa-preview-box p {
    margin: 0;
    font-size: 12px;
    color: #334155;
    font-style: italic;
    white-space: pre-wrap;
    word-break: break-word;
}
.ayrisoo-lc-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 999px;
    background: #25D366;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}
.ayrisoo-lc-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

/* Footer Branding */
.ayrisoo-lc-footer {
    padding: 6px 12px;
    background: #f1f5f9;
    text-align: center;
    font-size: 10.5px;
    color: #94a3b8;
    border-top: 1px solid var(--ay-lc-border);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .ayrisoo-lc-window {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
}


/* Pre-Chat Required Info Gate */
.ayrisoo-lc-prechat-gate {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 18px;
    background: #f8fafc;
    overflow-y: auto;
}
.ayrisoo-prechat-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.ayrisoo-prechat-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--ay-lc-primary, #00a859) 12%, #ffffff);
    color: var(--ay-lc-primary, #00a859);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.ayrisoo-prechat-card h4 {
    margin: 0 0 6px;
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}
.ayrisoo-prechat-card p {
    margin: 0 0 16px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #64748b;
    text-align: center;
}
.ayrisoo-prechat-field {
    margin-bottom: 12px;
}
.ayrisoo-prechat-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}
.ayrisoo-prechat-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13.5px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.ayrisoo-prechat-field input:focus {
    border-color: var(--ay-lc-primary, #00a859);
    background: #ffffff;
}
.ayrisoo-prechat-error {
    margin: 0 0 10px;
    padding: 8px 11px;
    border-radius: 9px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
}
.ayrisoo-prechat-submit {
    width: 100%;
    padding: 11px 16px;
    border: none;
    border-radius: 11px;
    background: var(--ay-lc-primary, #00a859);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    transition: filter 0.2s ease, transform 0.2s ease;
}
.ayrisoo-prechat-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}


/* Storefront Chat Bubbles: Sender Avatar + Name */
.ayrisoo-lc-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 100%;
}
.ayrisoo-lc-msg-visitor .ayrisoo-lc-msg-row {
    flex-direction: row-reverse;
}
.ayrisoo-lc-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 16px;
}
.ayrisoo-lc-msg-avatar.is-admin {
    background: color-mix(in srgb, var(--ay-lc-primary, #00a859) 14%, #ffffff);
    color: var(--ay-lc-primary, #00a859);
    border: 1px solid color-mix(in srgb, var(--ay-lc-primary, #00a859) 30%, transparent);
}
.ayrisoo-lc-msg-avatar.is-visitor {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.ayrisoo-lc-msg-col {
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 36px);
}
.ayrisoo-lc-msg-visitor .ayrisoo-lc-msg-col {
    align-items: flex-end;
}
.ayrisoo-lc-msg-admin .ayrisoo-lc-msg-col {
    align-items: flex-start;
}
.ayrisoo-lc-msg-sender {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin: 0 2px 3px;
}
.ayrisoo-lc-msg-visitor .ayrisoo-lc-msg-sender {
    color: rgba(255, 255, 255, 0.9) !important;
}


/* Storefront Attach Button & File Attachment Rendering */
.ayrisoo-lc-attach-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
}
.ayrisoo-lc-attach-btn:hover {
    border-color: var(--ay-lc-primary, #00a859);
    color: var(--ay-lc-primary, #00a859);
    background: #ffffff;
}
.ayrisoo-lc-attach-btn.is-uploading {
    opacity: 0.55;
    pointer-events: none;
}
.ayrisoo-lc-file-img-link {
    display: block;
    line-height: 0;
}
.ayrisoo-lc-file-img {
    max-width: 190px;
    max-height: 190px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.ayrisoo-lc-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.06);
    color: inherit !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 600;
    word-break: break-all;
}
.ayrisoo-lc-msg-visitor .ayrisoo-lc-file-chip {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}
