:root {
    --surface: #ffffff;
    --surface-soft: #f5f8ee;
    --border: rgba(33, 68, 98, 0.12);
    --shadow: 0 24px 60px rgba(33, 68, 98, 0.12);
    --text-muted: rgba(33, 68, 98, 0.72);
    --whatsapp: #25d366;
    --support-chat-header-height: 0px;
    --support-chat-viewport-height: 100svh;
}

.floating-widgets {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    direction: ltr;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    pointer-events: none;
    z-index: 1000;
}

.floating-widget {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-widget:hover,
.floating-widget:focus {
    transform: translateY(-2px);
    box-shadow: 0 28px 72px rgba(33, 68, 98, 0.2);
}

.floating-widget--support {
    background: linear-gradient(135deg, var(--bs-secondary) 0%, #2d5b82 100%);
    color: var(--bs-white);
    padding: 16px 24px;
    direction: rtl;
}

.floating-widget--whatsapp {
    width: auto;
    height: auto;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.floating-widget__icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-widget__icon svg {
    width: 100%;
    height: 100%;
}

.floating-widget__label {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.floating-widget--support .floating-widget__icon {
    width: 26px;
    height: 26px;
}

.floating-widget--support .floating-widget__label {
    font-size: 16px;
}

.floating-widget--whatsapp .floating-widget__icon {
    width: 68px;
    height: 68px;
}

.whatsapp-badge {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    filter: drop-shadow(0 18px 28px rgba(37, 211, 102, 0.28));
}

.whatsapp-badge i {
    line-height: 1;
    transform: translate(0.5px, 0.5px);
}

.floating-widget--whatsapp:hover,
.floating-widget--whatsapp:focus {
    box-shadow: none;
}

.scrollingUp {
    bottom: 116px !important;
    right: 34px !important;
    z-index: 1002 !important;
}

.support-chat-route #main-header {
    display: none !important;
}

.support-chat-route .breadcrumb-area {
    display: none;
}

.support-chat-route #footer-section,
.support-chat-route .scrollingUp {
    display: none !important;
}

.support-chat-route .floating-widgets {
    display: none !important;
}

body.support-chat-route {
    overflow: hidden;
}

.support-chat-page {
    direction: rtl;
    padding: clamp(12px, 2.4vh, 24px) 0 12px;
    box-sizing: border-box;
    min-height: calc(var(--support-chat-viewport-height, 100svh) - var(--support-chat-header-height, 96px));
    height: calc(var(--support-chat-viewport-height, 100svh) - var(--support-chat-header-height, 96px));
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(116, 189, 18, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(33, 68, 98, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(245, 248, 238, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
}

.support-chat-hero-section,
.support-chat-hero-section .container {
    height: 100%;
}

.support-chat-shell {
    max-width: 980px;
    box-sizing: border-box;
    height: 100%;
    padding-bottom: 16px;
    margin: 0 auto;
}

.support-chat-overview,
.support-chat-chat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.support-chat-overview {
    padding: 30px;
}

.support-chat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(116, 189, 18, 0.12);
    color: var(--bs-secondary);
    font-size: 13px;
    font-weight: 700;
}

.support-chat-overview h1 {
    margin: 18px 0 16px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.25;
    color: var(--bs-secondary);
}

.support-chat-intro {
    margin: 0 0 24px;
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 16px;
}

.support-chat-summary-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.support-chat-summary-card,
.support-chat-note-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px 20px;
}

.support-chat-summary-card strong,
.support-chat-note-card h2 {
    display: block;
    margin-bottom: 8px;
    color: var(--bs-secondary);
    font-size: 18px;
}

.support-chat-summary-card span,
.support-chat-note-card li {
    color: var(--text-muted);
    line-height: 1.85;
}

.support-chat-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.support-chat-feature-list li {
    position: relative;
    padding-right: 18px;
    margin-bottom: 10px;
}

.support-chat-feature-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.9em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bs-primary);
}

.support-chat-feature-list li:last-child {
    margin-bottom: 0;
}

.support-chat-chat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.support-chat-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(33, 68, 98, 0.98), rgba(45, 91, 130, 0.92));
    color: var(--bs-white);
}

.support-chat-chat-heading {
    display: flex;
    align-items: center;
    min-width: 0;
}

.support-chat-chat-heading h1,
.support-chat-chat-heading h2 {
    margin: 0;
    font-size: clamp(24px, 2.3vw, 30px);
    color: inherit;
}

.support-chat-chat-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.support-chat-chat-status__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8efc6a;
    box-shadow: 0 0 0 6px rgba(142, 252, 106, 0.14);
}

.support-chat-chat-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    background:
        linear-gradient(180deg, rgba(245, 248, 238, 0.68) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.support-chat-thread {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.support-chat-message {
    max-width: min(88%, 720px);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.support-chat-message--assistant {
    align-self: flex-start;
}

.support-chat-message--user {
    align-self: flex-end;
    align-items: flex-end;
}

.support-chat-bubble {
    padding: 16px 18px;
    border-radius: 22px;
    line-height: 1.95;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: 0 8px 18px rgba(33, 68, 98, 0.06);
}

.support-chat-message--assistant .support-chat-bubble {
    background: var(--surface);
    color: var(--bs-secondary);
    border: 1px solid rgba(33, 68, 98, 0.08);
    border-top-right-radius: 10px;
}

.support-chat-message--user .support-chat-bubble {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #8ad61c 100%);
    color: #11200a;
    border-top-left-radius: 10px;
}

.support-chat-message-meta {
    font-size: 12px;
    color: rgba(33, 68, 98, 0.55);
    padding: 0 6px;
}

.support-chat-message--typing .support-chat-bubble {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.support-chat-typing-dots {
    display: inline-flex;
    gap: 4px;
}

.support-chat-typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(33, 68, 98, 0.35);
    animation: supportPulse 1.1s infinite ease-in-out;
}

.support-chat-typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.support-chat-typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

.support-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 28px 18px;
}

.support-chat-suggestion {
    border: 1px solid rgba(33, 68, 98, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--bs-secondary);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.support-chat-suggestion:hover,
.support-chat-suggestion:focus {
    background: rgba(116, 189, 18, 0.14);
    border-color: rgba(116, 189, 18, 0.32);
}

.support-chat-composer {
    margin: auto 18px 18px;
    padding: 12px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(33, 68, 98, 0.1);
    box-shadow: 0 18px 40px rgba(33, 68, 98, 0.08);
}

.support-chat-composer-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.support-chat-composer textarea {
    width: 100%;
    flex: 1 1 auto;
    border: none;
    resize: none;
    min-height: 48px;
    background: transparent;
    color: var(--bs-secondary);
    font-size: 16px;
    line-height: 1.85;
    padding: 0;
}

.support-chat-composer textarea:focus {
    outline: none;
    box-shadow: none;
}

.support-chat-send {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: none;
    border-radius: 50%;
    background: var(--whatsapp);
    box-shadow: 0 14px 26px rgba(37, 211, 102, 0.28);
    position: relative;
    color: transparent;
    font-size: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.support-chat-send::before {
    content: "\f1d8";
    font-family: FontAwesome;
    font-size: 19px;
    color: #ffffff;
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-1px);
}

.support-chat-send:hover,
.support-chat-send:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(37, 211, 102, 0.32);
}

.support-chat-send:disabled {
    opacity: 0.78;
}

.support-chat-send.is-loading::before {
    animation: supportPulse 1.1s infinite ease-in-out;
}

.support-chat-empty-state {
    padding: 24px;
    border: 1px dashed rgba(33, 68, 98, 0.15);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-muted);
    line-height: 1.95;
}

.support-chat-hidden {
    display: none !important;
}

@keyframes supportPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.45;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 991px) {
    .support-chat-route .support-chat-page .container {
        max-width: 100%;
        padding-right: 10px;
        padding-left: 10px;
    }

    .scrollingUp {
        bottom: 112px !important;
        right: 36px !important;
        z-index: 1002 !important;
    }

    .support-chat-page {
        padding-top: 8px;
        padding-bottom: 10px;
    }

    .support-chat-shell {
        padding-top: 4px;
        padding-bottom: 10px;
    }

    .support-chat-chat-card {
        border-radius: 22px;
    }

    .support-chat-chat-header {
        gap: 12px;
        padding: 18px 20px 16px;
    }

    .support-chat-chat-heading h1,
    .support-chat-chat-heading h2 {
        font-size: 24px;
    }

    .support-chat-chat-status {
        font-size: 13px;
    }

    .support-chat-thread {
        padding: 14px 18px 10px;
        gap: 14px;
    }

    .support-chat-composer {
        margin: auto 10px 10px;
        padding: 11px 12px;
        border-radius: 20px;
    }

    .support-chat-composer textarea {
        min-height: 46px;
        font-size: 15px;
        line-height: 1.8;
    }

    .support-chat-send {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }
}

@media (max-width: 767px) {
    .floating-widgets {
        left: 16px;
        right: 16px;
        bottom: 16px;
        gap: 12px;
    }

    .floating-widget--support {
        padding: 13px 18px;
    }

    .floating-widget--support .floating-widget__icon {
        width: 24px;
        height: 24px;
    }

    .floating-widget--support .floating-widget__label {
        font-size: 14px;
    }

    .floating-widget--whatsapp .floating-widget__icon {
        width: 62px;
        height: 62px;
    }

    .whatsapp-badge {
        font-size: 34px;
    }

    .scrollingUp {
        bottom: 92px !important;
        right: 20px !important;
        z-index: 1002 !important;
    }

    .support-chat-chat-header,
    .support-chat-composer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .support-chat-page {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .support-chat-shell {
        padding-top: 8px;
        padding-bottom: 6px;
    }

    .support-chat-thread {
        padding-right: 14px;
        padding-left: 14px;
    }

    .support-chat-chat-header {
        gap: 10px;
        padding: 15px 17px 13px;
    }

    .support-chat-chat-heading h1,
    .support-chat-chat-heading h2 {
        font-size: 22px;
    }

    .support-chat-chat-status {
        font-size: 13px;
    }

    .support-chat-chat-status__dot {
        width: 8px;
        height: 8px;
        box-shadow: 0 0 0 4px rgba(142, 252, 106, 0.14);
    }

    .support-chat-composer {
        margin: auto 8px 8px;
        padding: 10px 12px;
        border-radius: 18px;
    }

    .support-chat-composer textarea {
        min-height: 44px;
        font-size: 15px;
        line-height: 1.8;
    }

    .support-chat-send {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .support-chat-send::before {
        font-size: 18px;
    }

    body.support-chat-input-active .support-chat-page {
        padding-top: 0;
    }

    body.support-chat-input-active .support-chat-chat-card {
        border-radius: 16px;
    }

    body.support-chat-input-active .support-chat-chat-header {
        gap: 8px;
        padding: 10px 14px;
    }

    body.support-chat-input-active .support-chat-chat-heading h1,
    body.support-chat-input-active .support-chat-chat-heading h2 {
        font-size: 18px;
    }

    body.support-chat-input-active .support-chat-chat-status {
        font-size: 11px;
        gap: 6px;
    }

    body.support-chat-input-active .support-chat-chat-status__dot {
        width: 7px;
        height: 7px;
        box-shadow: 0 0 0 3px rgba(142, 252, 106, 0.14);
    }

    body.support-chat-input-active .support-chat-thread {
        padding-top: 10px;
        padding-right: 12px;
        padding-left: 12px;
        gap: 12px;
    }

    body.support-chat-input-active .support-chat-composer {
        margin: auto 6px 6px;
        padding: 9px 10px;
        border-radius: 16px;
    }

    body.support-chat-input-active .support-chat-composer textarea {
        min-height: 40px;
        font-size: 14px;
        line-height: 1.7;
    }
}
