.mak-chatbot,
.mak-chatbot * {
    box-sizing: border-box;
}

.mak-chatbot {
    --mak-window-width: 400px;
    --mak-window-height: 600px;
    --mak-launcher-size: 58px;
    --mak-bottom-offset: 24px;
    --mak-side-offset: 24px;
    --mak-launcher-bg: #213A6F;
    --mak-launcher-color: #FFFFFF;
    --mak-launcher-text-size: 14px;
    --mak-launcher-text-weight: 600;
    --mak-launcher-border-width: 0px;
    --mak-launcher-border-color: #213A6F;
    --mak-launcher-radius: 50%;
    --mak-header-bg: #213A6F;
    --mak-header-color: #FFFFFF;
    --mak-status-bg: #F7FAFF;
    --mak-status-gradient-end: #EEF4FF;
    --mak-status-gradient: linear-gradient(135deg,#F7FAFF 0%,#EEF4FF 100%);
    --mak-status-text: #42526B;
    --mak-status-dot: #36D399;
    --mak-status-border: #D9E5F5;
    --mak-status-radius: 0px;
    --mak-status-pad-y: 10px;
    --mak-status-pad-x: 14px;
    --mak-status-animation-speed: 2s;
    --mak-control-color: #42526B;
    --mak-control-bg: #F3F6FB;
    --mak-control-hover-bg: #E5ECF7;
    --mak-control-size: 34px;
    --mak-control-gap: 6px;
    --mak-panel-bg: #FFFFFF;
    --mak-border-color: #D9E1EE;
    --mak-border-width: 1px;
    --mak-radius: 16px;
    --mak-z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #17213a;
    line-height: 1.4;
}

.mak-chatbot--floating {
    position: fixed;
    z-index: var(--mak-z-index);
    pointer-events: none;
    bottom: max(var(--mak-bottom-offset), env(safe-area-inset-bottom));
}

.mak-chatbot--bottom-right {
    right: max(var(--mak-side-offset), env(safe-area-inset-right));
}

.mak-chatbot--bottom-left {
    left: max(var(--mak-side-offset), env(safe-area-inset-left));
}

.mak-chatbot__launcher {
    pointer-events: auto;
    width: var(--mak-launcher-size);
    min-width: var(--mak-launcher-size);
    height: var(--mak-launcher-size);
    max-width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
    border: var(--mak-launcher-border-width) solid var(--mak-launcher-border-color);
    border-radius: var(--mak-launcher-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: calc(var(--mak-launcher-size) * .24);
    background: var(--mak-launcher-bg);
    color: var(--mak-launcher-color);
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(17, 35, 72, .25);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    font: inherit;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
}

.mak-chatbot__launcher:hover,
.mak-chatbot__launcher:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(17, 35, 72, .32);
    outline: none;
}

.mak-chatbot__launcher:focus-visible {
    box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 6px var(--mak-launcher-bg), 0 16px 36px rgba(17,35,72,.32);
}

.mak-chatbot__launcher-content {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.mak-chatbot__launcher-svg,
.mak-chatbot__launcher-image {
    width: 100%;
    height: 100%;
    display: block;
}

.mak-chatbot__launcher-svg { fill: currentColor; }
.mak-chatbot__launcher-image { object-fit: contain; }

.mak-chatbot__launcher-text {
    display: block;
    max-width: min(220px, calc(100vw - 60px));
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--mak-launcher-text-size);
    font-weight: var(--mak-launcher-text-weight);
    letter-spacing: .01em;
}

.mak-chatbot__launcher-theme-label {
    display: block;
    min-width: 0;
    max-width: min(180px, calc(100vw - 110px));
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--mak-launcher-text-size);
    font-weight: var(--mak-launcher-text-weight);
    line-height: 1.2;
}

/* Theme 1: classic corporate circle. */
.mak-chatbot--launcher-theme-1 .mak-chatbot__launcher {
    box-shadow: 0 12px 32px rgba(17, 35, 72, .25);
}

/* Theme 2: elevated soft square with a cleaner industrial edge. */
.mak-chatbot--launcher-theme-2 .mak-chatbot__launcher {
    box-shadow: 0 10px 24px rgba(17, 35, 72, .22), inset 0 1px 0 rgba(255,255,255,.14);
}
.mak-chatbot--launcher-theme-2 .mak-chatbot__launcher:hover { transform: translateY(-3px) scale(1.02); }

/* Theme 3: icon/image plus a readable corporate label. */
.mak-chatbot--launcher-theme-3 .mak-chatbot__launcher {
    width: auto;
    min-width: var(--mak-launcher-size);
    padding: 0 16px 0 10px;
    box-shadow: 0 12px 30px rgba(17, 35, 72, .23);
}
.mak-chatbot--launcher-theme-3 .mak-chatbot__launcher-content {
    width: calc(var(--mak-launcher-size) * .62);
    height: calc(var(--mak-launcher-size) * .62);
}
.mak-chatbot--launcher-theme-3.mak-chatbot--launcher-text .mak-chatbot__launcher-theme-label { display: none; }

/* Theme 4: minimal wide pill, especially suitable for a text launcher. */
.mak-chatbot--launcher-theme-4 .mak-chatbot__launcher {
    width: auto;
    min-width: calc(var(--mak-launcher-size) * 1.25);
    padding: 0 18px;
    box-shadow: 0 8px 22px rgba(17, 35, 72, .20);
}
.mak-chatbot--launcher-theme-4 .mak-chatbot__launcher-content {
    width: calc(var(--mak-launcher-size) * .52);
    height: calc(var(--mak-launcher-size) * .52);
}

/* Text launchers automatically get enough horizontal room on any theme. */
.mak-chatbot--launcher-text .mak-chatbot__launcher {
    width: auto;
    min-width: var(--mak-launcher-size);
    padding-left: 16px;
    padding-right: 16px;
}
.mak-chatbot--launcher-text .mak-chatbot__launcher-content {
    width: auto;
    height: auto;
}

.mak-chatbot__panel {
    background: var(--mak-panel-bg);
    border: var(--mak-border-width) solid var(--mak-border-color);
    border-radius: var(--mak-radius);
    overflow: hidden;
}

.mak-chatbot--floating .mak-chatbot__panel {
    pointer-events: auto;
    position: absolute;
    width: min(var(--mak-window-width), calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    height: min(var(--mak-window-height), calc(100vh - var(--mak-launcher-size) - 64px));
    height: min(var(--mak-window-height), calc(100dvh - var(--mak-launcher-size) - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    max-width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
    max-height: calc(100vh - var(--mak-launcher-size) - 64px);
    max-height: calc(100dvh - var(--mak-launcher-size) - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    bottom: calc(var(--mak-launcher-size) + 14px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.985);
    transform-origin: bottom right;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.mak-chatbot--bottom-right .mak-chatbot__panel { right: 0; }
.mak-chatbot--bottom-left .mak-chatbot__panel { left: 0; transform-origin: bottom left; }

.mak-chatbot--floating.is-open .mak-chatbot__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mak-chatbot--floating.is-open .mak-chatbot__launcher {
    transform: scale(.96);
}

.mak-chatbot--floating.is-dismissed {
    display: none !important;
}

.mak-chatbot--no-animation .mak-chatbot__panel,
.mak-chatbot--no-animation .mak-chatbot__launcher {
    transition: none !important;
}

.mak-chatbot--shadow-none .mak-chatbot__panel { box-shadow: none; }
.mak-chatbot--shadow-soft .mak-chatbot__panel { box-shadow: 0 18px 50px rgba(16, 31, 61, .18); }
.mak-chatbot--shadow-strong .mak-chatbot__panel { box-shadow: 0 24px 70px rgba(16, 31, 61, .30); }

.mak-chatbot__header {
    min-height: 76px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--mak-header-bg);
    color: var(--mak-header-color);
    flex: 0 0 auto;
}

.mak-chatbot__identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.mak-chatbot__brand-mark {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    display: grid;
    place-items: center;
}

.mak-chatbot__brand-mark--default > span {
    width: 17px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 4px;
    position: relative;
}

.mak-chatbot__brand-mark--default > span:after {
    content: "";
    position: absolute;
    left: 2px;
    bottom: -6px;
    width: 6px;
    height: 6px;
    border-left: 2px solid currentColor;
    transform: skew(-30deg);
}

.mak-chatbot__brand-mark--image {
    overflow: hidden;
    padding: 0;
}

.mak-chatbot__brand-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mak-chatbot__brand-mark--text {
    padding: 4px;
    text-align: center;
}

.mak-chatbot__brand-text {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
}

.mak-chatbot__heading-copy { min-width: 0; }
.mak-chatbot__title { font-size: 16px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mak-chatbot__status { margin-top: 3px; font-size: 12px; display: flex; align-items: center; gap: 7px; opacity: .92; font-weight: 600; letter-spacing: .01em; }
.mak-chatbot__status-dot { position: relative; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--mak-status-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mak-status-dot) 18%, transparent); }
.mak-chatbot--status-animated .mak-chatbot__status-dot::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--mak-status-dot); animation: mak-status-pulse var(--mak-status-animation-speed) ease-out infinite; }
@keyframes mak-status-pulse { 0% { transform: scale(.9); opacity: .65; } 70%,100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mak-chatbot--status-animated .mak-chatbot__status-dot::after { animation: none; } }

.mak-chatbot__status-bar {
    min-height: 44px;
    padding: var(--mak-status-pad-y) var(--mak-status-pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    background: var(--mak-status-gradient);
    color: var(--mak-status-text);
    border-bottom: 1px solid var(--mak-status-border);
    border-radius: var(--mak-status-radius) var(--mak-status-radius) 0 0;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.65);
}
.mak-chatbot__status-bar .mak-chatbot__status { margin-top: 0; }
.mak-chatbot__controls-bar {
    min-height: calc(var(--mak-control-size) + 12px);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    background: var(--mak-panel-bg);
    border-bottom: 1px solid var(--mak-border-color);
}

/* When both the MAK header and online status are hidden, controls float inside
   the existing panel instead of creating an extra top row. */
.mak-chatbot__controls-bar--overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8;
    min-height: 0;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    pointer-events: none;
}

.mak-chatbot__controls-bar--overlay .mak-chatbot__window-controls {
    margin-left: 0;
    padding: var(--mak-control-wrapper-padding);
    gap: var(--mak-control-wrapper-gap);
    border-radius: var(--mak-control-wrapper-radius);
    background: var(--mak-control-wrapper-bg);
    background: color-mix(in srgb, var(--mak-control-wrapper-color) var(--mak-control-wrapper-opacity), transparent);
    border: var(--mak-control-wrapper-border-width) solid var(--mak-control-wrapper-border);
    box-shadow: var(--mak-control-wrapper-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}

.mak-chatbot__window-controls {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--mak-control-gap);
    flex: 0 0 auto;
}

.mak-chatbot__window-control {
    flex: 0 0 var(--mak-control-size);
    width: var(--mak-control-size);
    height: var(--mak-control-size);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    padding: 0;
    margin: 0;
    background: var(--mak-control-bg);
    color: var(--mak-control-color);
    cursor: pointer;
    font: inherit;
    font-size: calc(var(--mak-control-size) * .65);
    font-weight: 500;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(33,58,111,.06);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.mak-chatbot__window-control > span {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}

.mak-chatbot__window-control:hover,
.mak-chatbot__window-control:focus-visible {
    background: var(--mak-control-hover-bg);
    transform: translateY(-1px);
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(33,58,111,.10), 0 4px 12px rgba(17,35,72,.10);
}

.mak-chatbot__header .mak-chatbot__window-control {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.mak-chatbot__body {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    background: var(--mak-panel-bg);
    overflow: hidden;
}

.mak-chatbot__body iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 100%;
    border: 0 !important;
    margin: 0;
    padding: 0;
    background: transparent;
}

.mak-chatbot--inline {
    width: min(100%, var(--mak-window-width));
    max-width: 100%;
    margin: 0;
}

.mak-chatbot--inline .mak-chatbot__panel {
    position: relative;
    width: 100%;
    height: var(--mak-window-height);
    max-width: 100%;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 767px) {
    .mak-chatbot--floating {
        bottom: max(14px, env(safe-area-inset-bottom));
    }
    .mak-chatbot--bottom-right {
        right: max(12px, env(safe-area-inset-right));
    }
    .mak-chatbot--bottom-left {
        left: max(12px, env(safe-area-inset-left));
    }
    .mak-chatbot--floating .mak-chatbot__panel {
        width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
        max-width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
        height: min(var(--mak-window-height), calc(100vh - var(--mak-launcher-size) - 52px));
        height: min(var(--mak-window-height), calc(100dvh - var(--mak-launcher-size) - 52px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
        max-height: calc(100dvh - var(--mak-launcher-size) - 52px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
    .mak-chatbot__header { min-height: 68px; padding: 12px 13px; }
    .mak-chatbot__controls-bar--overlay { top: 8px; right: 8px; }
    .mak-chatbot__brand-mark { flex-basis: 34px; width: 34px; height: 34px; }
    .mak-chatbot__title { font-size: 15px; }
    .mak-chatbot__launcher { max-width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)); }
    .mak-chatbot--launcher-theme-3 .mak-chatbot__launcher,
    .mak-chatbot--launcher-theme-4 .mak-chatbot__launcher,
    .mak-chatbot--launcher-text .mak-chatbot__launcher { padding-left: 13px; padding-right: 13px; }
    .mak-chatbot__launcher-theme-label { max-width: min(150px, calc(100vw - 100px)); }
    .mak-chatbot--inline { width: 100%; }
    .mak-chatbot--inline .mak-chatbot__panel {
        max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
}


@media (max-width: 480px) {
    .mak-chatbot--floating { bottom: max(10px, env(safe-area-inset-bottom)); }
    .mak-chatbot--bottom-right { right: max(8px, env(safe-area-inset-right)); }
    .mak-chatbot--bottom-left { left: max(8px, env(safe-area-inset-left)); }
    .mak-chatbot--floating .mak-chatbot__panel {
        width: calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
        max-width: calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
        height: min(var(--mak-window-height), calc(100dvh - var(--mak-launcher-size) - 42px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
        max-height: calc(100dvh - var(--mak-launcher-size) - 42px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        bottom: calc(var(--mak-launcher-size) + 10px);
    }
    .mak-chatbot__launcher-text { max-width: calc(100vw - 70px); }
}

.mak-chatbot-editor-placeholder {
    padding: 18px;
    border: 1px dashed #9aa7bd;
    background: #f7f9fc;
    color: #33415f;
    text-align: center;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Elementor MAK ChatBot Page - two full-page support themes
   -------------------------------------------------------------------------- */
.mak-chatbot-page,
.mak-chatbot-page * {
    box-sizing: border-box;
}

.mak-chatbot-page {
    --mak-page-intro-width: 40%;
    --mak-page-gap: 38px;
    --mak-page-accent: #4B80FF;
    position: relative;
    width: 100%;
    min-height: 720px;
    padding: 34px;
    overflow: hidden;
    isolation: isolate;
    background-color: #eef5ff;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #12284A;
}

.mak-chatbot-page::before,
.mak-chatbot-page::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mak-chatbot-page::before {
    z-index: 0;
    background: rgba(247,250,254,.78);
}

.mak-chatbot-page::after {
    z-index: 0;
    opacity: .9;
}

.mak-chatbot-page--theme-1::after {
    background:
        radial-gradient(circle at 4% 5%, rgba(255,255,255,.78) 0 7%, transparent 7.2%),
        radial-gradient(circle at 13% 88%, rgba(75,128,255,.14) 0 18%, transparent 18.2%),
        linear-gradient(90deg, rgba(220,236,255,.60) 0 34%, rgba(255,255,255,.15) 55%, rgba(255,255,255,.42) 100%);
}

.mak-chatbot-page--theme-2::after {
    background:
        radial-gradient(circle at 30% 0%, rgba(130,179,255,.20) 0 12%, transparent 12.2%),
        radial-gradient(circle at 8% 96%, rgba(75,128,255,.16) 0 20%, transparent 20.2%),
        linear-gradient(110deg, rgba(255,255,255,.84) 0 30%, rgba(238,247,255,.52) 49%, rgba(255,255,255,.30) 72%, rgba(255,255,255,.70) 100%);
}

.mak-chatbot-page__grid {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: inherit;
    display: grid;
    grid-template-columns: minmax(0, var(--mak-page-intro-width)) minmax(0, 1fr);
    gap: var(--mak-page-gap);
    align-items: stretch;
}

.mak-chatbot-page--no-intro .mak-chatbot-page__grid {
    grid-template-columns: minmax(0, 1fr);
}

.mak-chatbot-page__intro {
    position: relative;
    z-index: 2;
    min-width: 0;
    min-height: 100%;
    display: flex;
    align-items: center;
}

.mak-chatbot-page__intro-card {
    position: relative;
    z-index: 3;
    width: 100%;
    min-width: 0;
    padding: 34px 18px 34px 38px;
    border-radius: 26px;
}

.mak-chatbot-page--theme-1 .mak-chatbot-page__intro-card {
    align-self: flex-start;
    margin-top: 24px;
}

.mak-chatbot-page--theme-2 .mak-chatbot-page__intro-card {
    padding-left: 24px;
}

.mak-chatbot-page__copy {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 470px;
}

.mak-chatbot-page__eyebrow {
    margin: 0 0 24px;
    display: inline-flex;
    flex-direction: column;
    gap: 9px;
    color: #526987;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .34em;
    text-transform: uppercase;
}

.mak-chatbot-page__eyebrow-line {
    width: 48px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    opacity: .75;
}

.mak-chatbot-page__title {
    margin: 0;
    font-size: clamp(38px, 4vw, 64px);
    font-weight: 750;
    line-height: 1.03;
    letter-spacing: -.035em;
}

.mak-chatbot-page__title-main,
.mak-chatbot-page__title-highlight {
    display: block;
}

.mak-chatbot-page__title-main {
    color: #12284A;
}

.mak-chatbot-page__title-highlight {
    margin-top: 5px;
    color: var(--mak-page-accent);
}

.mak-chatbot-page__description {
    max-width: 430px;
    margin-top: 24px;
    color: #5A6D88;
    font-size: 17px;
    line-height: 1.55;
}

.mak-chatbot-page__chat {
    position: relative;
    z-index: 3;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mak-chatbot-page__chat-shell {
    position: relative;
    width: 100%;
    max-width: 760px;
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.70);
    border-radius: 26px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 28px 70px rgba(56,85,124,.14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.mak-chatbot-page--theme-1 .mak-chatbot-page__chat-shell {
    box-shadow: 0 30px 80px rgba(56,85,124,.16);
}

.mak-chatbot-page--theme-2 .mak-chatbot-page__chat-shell {
    border-color: rgba(255,255,255,.86);
    box-shadow: 0 24px 68px rgba(66,96,136,.14), inset 0 0 0 1px rgba(117,156,206,.08);
}

.mak-chatbot-page .mak-chatbot--inline {
    width: 100%;
    max-width: 100%;
}

.mak-chatbot-page .mak-chatbot--inline .mak-chatbot__panel {
    width: 100%;
    max-width: 100%;
    min-height: 260px;
    border-color: rgba(157,179,210,.28);
    border-radius: 19px;
    background: rgba(255,255,255,.96);
    box-shadow: none;
}

.mak-chatbot-page .mak-chatbot--inline .mak-chatbot__body {
    background: rgba(255,255,255,.98);
}

.mak-chatbot-page__decorations {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
}

.mak-chatbot-page__decor {
    position: absolute;
    display: block;
}

.mak-chatbot-page__decor--orb {
    left: -18%;
    bottom: -15%;
    width: 82%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.78);
    background: radial-gradient(circle at 60% 38%, rgba(255,255,255,.04) 0 48%, rgba(81,134,240,.11) 49% 100%);
}

.mak-chatbot-page__decor--curve {
    right: 4%;
    top: 41%;
    width: 36%;
    height: 32%;
    border-top: 2px dashed color-mix(in srgb, var(--mak-page-accent) 45%, transparent);
    border-right: 2px dashed color-mix(in srgb, var(--mak-page-accent) 45%, transparent);
    border-radius: 0 80% 0 0;
    transform: rotate(12deg);
    opacity: .55;
}

.mak-chatbot-page__decor--dots {
    right: 12%;
    top: 16%;
    width: 60px;
    height: 60px;
    opacity: .45;
    background-image: radial-gradient(circle, var(--mak-page-accent) 1.5px, transparent 1.7px);
    background-size: 12px 12px;
}

.mak-chatbot-page__decor-chip {
    position: absolute;
    z-index: 3;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 18px;
    background: rgba(255,255,255,.74);
    box-shadow: 0 14px 32px rgba(64,94,134,.10);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.mak-chatbot-page__decor-chip svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--mak-page-accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mak-chatbot-page__decor-chip--one { right: 24%; top: 30%; }
.mak-chatbot-page__decor-chip--two { right: 5%; top: 49%; }
.mak-chatbot-page__decor-chip--three { right: 17%; top: 69%; width: 64px; height: 64px; }

.mak-chatbot-page--theme-2 .mak-chatbot-page__decor-chip {
    display: none;
}

.mak-chatbot-page--theme-2 .mak-chatbot-page__decor--curve {
    left: -4%;
    right: auto;
    top: 61%;
    width: 62%;
    height: 30%;
    border-color: rgba(255,255,255,.84);
    border-left: 2px solid rgba(255,255,255,.80);
    border-right: 0;
    border-radius: 70% 0 0 0;
    transform: rotate(-7deg);
}

.mak-chatbot-page--theme-2 .mak-chatbot-page__decor--dots {
    left: 82%;
    right: auto;
    top: 12%;
}

.mak-chatbot-page--theme-2 .mak-chatbot-page__decor--orb {
    left: -12%;
    bottom: -30%;
    width: 92%;
    background: radial-gradient(circle at 55% 30%, transparent 0 56%, rgba(75,128,255,.12) 57% 100%);
}

.mak-chatbot-page--no-decorations .mak-chatbot-page__decorations {
    display: none;
}

@media (max-width: 1024px) {
    .mak-chatbot-page {
        --mak-page-gap: 24px;
        padding: 24px;
    }
    .mak-chatbot-page__intro-card {
        padding: 28px 10px 28px 20px;
    }
    .mak-chatbot-page__title {
        font-size: clamp(34px, 5vw, 52px);
    }
    .mak-chatbot-page__description {
        font-size: 16px;
    }
    .mak-chatbot-page__decor-chip {
        width: 62px;
        height: 62px;
    }
    .mak-chatbot-page__decor-chip--one { right: 20%; }
    .mak-chatbot-page__decor-chip--two { right: 1%; }
}

@media (max-width: 767px) {
    .mak-chatbot-page {
        --mak-page-gap: 18px;
        width: 100%;
        min-height: auto;
        padding: 18px 14px;
        overflow: hidden;
        background-position: center top;
    }

    .mak-chatbot-page__grid,
    .mak-chatbot-page--no-intro .mak-chatbot-page__grid {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--mak-page-gap);
    }

    .mak-chatbot-page__intro {
        min-height: 260px;
        align-items: flex-start;
    }

    .mak-chatbot-page__intro-card,
    .mak-chatbot-page--theme-1 .mak-chatbot-page__intro-card,
    .mak-chatbot-page--theme-2 .mak-chatbot-page__intro-card {
        margin: 0;
        padding: 24px 14px 24px;
    }

    .mak-chatbot-page__copy {
        max-width: min(100%, 520px);
    }

    .mak-chatbot-page__eyebrow {
        margin-bottom: 16px;
        font-size: 10px;
        letter-spacing: .25em;
    }

    .mak-chatbot-page__title {
        font-size: clamp(34px, 11vw, 48px);
    }

    .mak-chatbot-page__description {
        margin-top: 16px;
        font-size: 15px;
    }

    .mak-chatbot-page__chat {
        width: 100%;
        align-items: stretch;
    }

    .mak-chatbot-page__chat-shell {
        width: 100%;
        max-width: 100% !important;
        padding: 10px;
        border-radius: 18px;
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }

    .mak-chatbot-page .mak-chatbot--inline,
    .mak-chatbot-page .mak-chatbot--inline .mak-chatbot__panel {
        width: 100% !important;
        max-width: 100% !important;
    }

    .mak-chatbot-page .mak-chatbot--inline .mak-chatbot__panel {
        max-height: min(72dvh, 720px);
        border-radius: 14px;
    }

    .mak-chatbot-page__decor-chip--one {
        right: 14%;
        top: 28%;
        width: 52px;
        height: 52px;
    }

    .mak-chatbot-page__decor-chip--two {
        right: 2%;
        top: 52%;
        width: 50px;
        height: 50px;
    }

    .mak-chatbot-page__decor-chip--three {
        display: none;
    }

    .mak-chatbot-page__decor--dots {
        width: 48px;
        height: 48px;
        right: 2%;
        top: 10%;
    }
}

@media (max-width: 480px) {
    .mak-chatbot-page {
        padding: 12px 8px;
    }

    .mak-chatbot-page__intro {
        min-height: 230px;
    }

    .mak-chatbot-page__intro-card,
    .mak-chatbot-page--theme-1 .mak-chatbot-page__intro-card,
    .mak-chatbot-page--theme-2 .mak-chatbot-page__intro-card {
        padding: 20px 10px;
    }

    .mak-chatbot-page__title {
        font-size: clamp(31px, 12vw, 43px);
    }

    .mak-chatbot-page__chat-shell {
        padding: 6px;
        border-radius: 14px;
    }

    .mak-chatbot-page .mak-chatbot--inline .mak-chatbot__panel {
        min-height: 360px;
        max-height: min(75dvh, 660px);
    }

    .mak-chatbot-page__decor-chip--two {
        display: none;
    }
}

/* ===========================================================================
   MAK v1.3.9 - Premium floating assistant entrance and greeting
   Scoped to floating mode: no changes to Elementor inline/full-page widgets.
   =========================================================================== */
.mak-chatbot--floating .mak-chatbot__launcher {
    position: relative;
    z-index: 2;
}

.mak-chatbot--floating.is-launcher-ready:not(.mak-chatbot--no-animation) .mak-chatbot__launcher {
    animation: mak-chatbot-launcher-arrive .82s cubic-bezier(.2, .86, .24, 1.16) backwards;
}

@keyframes mak-chatbot-launcher-arrive {
    0% { opacity: 0; transform: translateY(22px) scale(.76); }
    58% { opacity: 1; transform: translateY(-5px) scale(1.055); }
    82% { opacity: 1; transform: translateY(2px) scale(.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.mak-chatbot--floating .mak-chatbot__launcher-aura {
    position: absolute;
    z-index: 0;
    width: calc(var(--mak-launcher-size) + 18px);
    height: calc(var(--mak-launcher-size) + 18px);
    right: -9px;
    bottom: -9px;
    border: 1px solid var(--mak-launcher-bg);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.mak-chatbot--bottom-left .mak-chatbot__launcher-aura { left: -9px; right: auto; }
.mak-chatbot--launcher-theme-3 .mak-chatbot__launcher-aura,
.mak-chatbot--launcher-theme-4 .mak-chatbot__launcher-aura { display: none; }

.mak-chatbot--floating.is-launcher-ready:not(.mak-chatbot--no-animation) .mak-chatbot__launcher-aura {
    animation: mak-chatbot-launcher-aura 1.8s ease-out .9s 2;
}
.mak-chatbot--floating.is-open .mak-chatbot__launcher-aura { display: none; }

@keyframes mak-chatbot-launcher-aura {
    0% { opacity: 0; transform: scale(.78); }
    23% { opacity: .27; }
    100% { opacity: 0; transform: scale(1.32); }
}

.mak-chatbot--floating .mak-chatbot__launcher-presence {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 1px;
    pointer-events: none;
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 50%;
    background-color: var(--mak-greeting-online, #22c55e);
    box-shadow: 0 1px 5px rgba(22, 74, 52, .2);
}
.mak-chatbot--bottom-left .mak-chatbot__launcher-presence { left: 0; right: auto; }
.mak-chatbot--floating.is-open .mak-chatbot__launcher-presence { opacity: 0; }

/* The welcome card lives alongside the button, not inside the remote iframe. */
.mak-chatbot--floating .mak-chatbot__greeting {
    position: absolute;
    z-index: 3;
    bottom: 0;
    right: calc(100% + 15px);
    width: var(--mak-greeting-width, 320px);
    max-width: min(var(--mak-greeting-width, 320px), calc(100vw - var(--mak-launcher-size) - var(--mak-side-offset) - 36px));
    min-width: 0;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateX(12px) translateY(7px) scale(.97);
    transform-origin: bottom right;
    transition: opacity .32s ease, transform .46s cubic-bezier(.18, .85, .26, 1.08), visibility .32s ease;
}
.mak-chatbot--bottom-left .mak-chatbot__greeting {
    left: calc(100% + 15px);
    right: auto;
    transform-origin: bottom left;
    transform: translateX(-12px) translateY(7px) scale(.97);
}
.mak-chatbot--floating .mak-chatbot__greeting.is-visible {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}
.mak-chatbot--floating.is-open .mak-chatbot__greeting,
.mak-chatbot--floating.is-dismissed .mak-chatbot__greeting {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

/* Small connecting notch visually links the card to the launcher. */
.mak-chatbot--floating .mak-chatbot__greeting::after {
    content: '';
    position: absolute;
    z-index: 1;
    width: 13px;
    height: 13px;
    right: -7px;
    bottom: 20px;
    transform: rotate(45deg);
    background-color: var(--mak-greeting-bg, #fff);
    border-top: 1px solid #e4eaf3;
    border-right: 1px solid #e4eaf3;
    pointer-events: none;
}
.mak-chatbot--bottom-left .mak-chatbot__greeting::after {
    right: auto;
    left: -7px;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid #e4eaf3;
    border-left: 1px solid #e4eaf3;
}

.mak-chatbot--floating .mak-chatbot__greeting-card {
    appearance: none;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: var(--mak-greeting-pad, 18px);
    border: 1px solid #e4eaf3;
    border-radius: var(--mak-greeting-radius, 17px);
    background: var(--mak-greeting-bg, #fff);
    box-shadow: 0 20px 58px rgba(18, 41, 81, .18), 0 5px 16px rgba(18, 41, 81, .07);
    text-align: left;
    color: var(--mak-greeting-text, #283b57);
    font: inherit;
    line-height: 1.35;
    white-space: normal;
    cursor: pointer;
    transition: box-shadow .22s ease, border-color .22s ease;
    overflow: hidden;
}
.mak-chatbot--floating .mak-chatbot__greeting-card:hover {
    box-shadow: 0 23px 62px rgba(18, 41, 81, .23), 0 5px 16px rgba(18, 41, 81, .08);
    border-color: #b9cbe1;
}
.mak-chatbot--floating .mak-chatbot__greeting-card:focus-visible,
.mak-chatbot--floating .mak-chatbot__greeting-dismiss:focus-visible {
    outline: 3px solid var(--mak-greeting-accent, #213a6f);
    outline-offset: 3px;
}
.mak-chatbot__greeting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    width: 45px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--mak-greeting-accent, #213a6f);
}
.mak-chatbot__greeting-head {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-right: 23px;
}
.mak-chatbot__greeting-avatar {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--mak-greeting-accent, #213a6f) 10%, #fff);
    color: var(--mak-greeting-accent, #213a6f);
}
.mak-chatbot__greeting-avatar svg { width: 22px; height: 22px; display: block; }
.mak-chatbot__greeting-identity { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.mak-chatbot__greeting-identity strong {
    display: block;
    font-size: var(--mak-greeting-heading-size, 13px);
    font-weight: 740;
    line-height: 1.25;
    letter-spacing: -.012em;
    color: var(--mak-greeting-heading, #213a6f);
}
.mak-chatbot__greeting-status {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    font-size: var(--mak-greeting-status-size, 10px);
    font-weight: 550;
    margin-top: 4px;
    line-height: 1.3;
    color: var(--mak-greeting-status-text, #65806e);
}
.mak-chatbot__greeting-status i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mak-greeting-online, #22c55e);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--mak-greeting-online, #22c55e) 15%, transparent);
}
.mak-chatbot__greeting-content {
    display: block;
    min-height: 76px;
    border-top: 1px solid #edf2f8;
    margin-top: 12px;
    padding-top: 13px;
}
.mak-chatbot__greeting-message {
    display: block;
    color: var(--mak-greeting-text, #283b57);
    font-size: var(--mak-greeting-message-size, 15px);
    font-weight: 650;
    line-height: 1.42;
    letter-spacing: -.015em;
    opacity: 0;
    transform: translateY(3px);
}
.mak-chatbot__greeting-action {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    gap: 7px;
    color: var(--mak-greeting-accent, #213a6f);
    font-size: var(--mak-greeting-cta-size, 11px);
    font-weight: 750;
    line-height: 1.4;
    margin-top: 10px;
    letter-spacing: .015em;
    opacity: 0;
    transform: translateY(4px);
}
.mak-chatbot__greeting-action svg { width: 14px; height: 14px; flex: 0 0 14px; transition: transform .18s ease; }
.mak-chatbot__greeting-card:hover .mak-chatbot__greeting-action svg { transform: translateX(3px); }
.mak-chatbot__greeting.is-message-ready .mak-chatbot__greeting-message,
.mak-chatbot__greeting.is-message-ready .mak-chatbot__greeting-action {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .25s ease, transform .3s ease;
}
.mak-chatbot__greeting-typing { display: none; height: 26px; align-items: center; gap: 5px; }
.mak-chatbot__greeting.is-typing .mak-chatbot__greeting-typing { display: flex; }
.mak-chatbot__greeting.is-typing .mak-chatbot__greeting-message,
.mak-chatbot__greeting.is-typing .mak-chatbot__greeting-action { display: none; }
.mak-chatbot__greeting-typing i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mak-greeting-accent, #213a6f);
    animation: mak-chatbot-typing .95s ease-in-out infinite;
}
.mak-chatbot__greeting-typing i:nth-child(2) { animation-delay: .14s; }
.mak-chatbot__greeting-typing i:nth-child(3) { animation-delay: .28s; }
@keyframes mak-chatbot-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: .34; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.mak-chatbot--floating .mak-chatbot__greeting-dismiss {
    appearance: none;
    position: absolute;
    z-index: 5;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 0;
    border-radius: 7px;
    padding: 5px;
    margin: 0;
    background: transparent;
    color: #8a9bb1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.mak-chatbot--floating .mak-chatbot__greeting-dismiss:hover { background: #eef3f9; color: #213a6f; }
.mak-chatbot__greeting-dismiss svg { width: 15px; height: 15px; display: block; }

/* On phones the greeting docks above the launcher to avoid horizontal clipping. */
@media (max-width: 767px) {
    .mak-chatbot--floating .mak-chatbot__greeting,
    .mak-chatbot--bottom-left .mak-chatbot__greeting {
        left: auto;
        right: 0;
        bottom: calc(var(--mak-launcher-size) + 15px);
        width: min(var(--mak-greeting-width, 320px), calc(100vw - 25px - env(safe-area-inset-left) - env(safe-area-inset-right)));
        max-width: min(var(--mak-greeting-width, 320px), calc(100vw - 25px - env(safe-area-inset-left) - env(safe-area-inset-right)));
        transform: translateX(0) translateY(12px) scale(.97);
        transform-origin: bottom right;
    }
    .mak-chatbot--bottom-left .mak-chatbot__greeting {
        left: 0;
        right: auto;
        transform-origin: bottom left;
    }
    .mak-chatbot--floating .mak-chatbot__greeting::after,
    .mak-chatbot--bottom-left .mak-chatbot__greeting::after {
        right: 21px;
        left: auto;
        bottom: -7px;
        border-top: none;
        border-left: none;
        border-right: 1px solid #e4eaf3;
        border-bottom: 1px solid #e4eaf3;
    }
    .mak-chatbot--bottom-left .mak-chatbot__greeting::after {
        left: 21px;
        right: auto;
    }
}

@media (max-width: 380px) {
    .mak-chatbot--floating .mak-chatbot__greeting-card { padding: min(var(--mak-greeting-pad, 18px), 14px); }
    .mak-chatbot__greeting-content { padding-top: 11px; margin-top: 10px; }
}

/* Respect both plugin animation setting and visitor accessibility preference. */
.mak-chatbot--no-animation .mak-chatbot__launcher-aura,
.mak-chatbot--no-animation .mak-chatbot__greeting-typing i { animation: none !important; }
.mak-chatbot--no-animation .mak-chatbot__greeting,
.mak-chatbot--no-animation .mak-chatbot__greeting-message,
.mak-chatbot--no-animation .mak-chatbot__greeting-action { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
    .mak-chatbot--floating .mak-chatbot__launcher,
    .mak-chatbot--floating .mak-chatbot__launcher-aura,
    .mak-chatbot--floating .mak-chatbot__greeting-typing i { animation: none !important; }
    .mak-chatbot--floating .mak-chatbot__greeting,
    .mak-chatbot--floating .mak-chatbot__greeting-message,
    .mak-chatbot--floating .mak-chatbot__greeting-action { transition: none !important; }
}

/* ==========================================================================
   MAK v1.3.11 - Browser-compatible iframe recovery presentation
   Loaded only when a frame is initializing, reconnecting or has failed.
   ========================================================================== */
.mak-chatbot__body { position: relative; }
.mak-chatbot__load-state[hidden],
.mak-chatbot__load-retry[hidden] { display: none !important; }
.mak-chatbot__load-state {
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 28px 22px;
    text-align: center;
    background: #F7FAFE;
    background: rgba(247, 250, 254, .97);
    color: #213A6F;
    font-family: Arial, sans-serif;
}
.mak-chatbot__load-spinner {
    display: block;
    width: 30px;
    height: 30px;
    margin-bottom: 15px;
    border: 3px solid #D3E0F0;
    border-top-color: #213A6F;
    border-radius: 50%;
    -webkit-animation: mak-chatbot-connect-spin .8s linear infinite;
    animation: mak-chatbot-connect-spin .8s linear infinite;
}
.mak-chatbot__load-text {
    display: block;
    max-width: 300px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}
.mak-chatbot__load-state.is-failed .mak-chatbot__load-spinner { display: none; }
.mak-chatbot__load-retry {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 18px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: #213A6F;
    font: 600 13px/1.2 Arial, sans-serif;
    cursor: pointer;
}
.mak-chatbot__load-retry:hover,
.mak-chatbot__load-retry:focus { background: #152C58; outline-offset: 2px; }
@-webkit-keyframes mak-chatbot-connect-spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
@keyframes mak-chatbot-connect-spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .mak-chatbot__load-spinner { -webkit-animation: none; animation: none; }
}

/* Chrome 49-78 does not implement min()/max() lengths. Preserve all modern
   declarations; supply equivalent sizing only to browsers without CSS min(). */
@supports not (width: min(10px, 20px)) {
    .mak-chatbot--floating { bottom: var(--mak-bottom-offset); }
    .mak-chatbot--bottom-right { right: var(--mak-side-offset); }
    .mak-chatbot--bottom-left { left: var(--mak-side-offset); }
    .mak-chatbot__launcher { max-width: calc(100vw - 24px); }
    .mak-chatbot__launcher-text { max-width: 220px; }
    .mak-chatbot__launcher-theme-label { max-width: 180px; }
    .mak-chatbot--floating .mak-chatbot__panel {
        width: var(--mak-window-width);
        height: var(--mak-window-height);
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - var(--mak-launcher-size) - 64px);
    }
    .mak-chatbot--inline { width: var(--mak-window-width); }
    .mak-chatbot--floating .mak-chatbot__greeting {
        max-width: calc(100vw - 120px);
    }
    @media (max-width: 767px) {
        .mak-chatbot--floating { bottom: 14px; }
        .mak-chatbot--bottom-right { right: 12px; }
        .mak-chatbot--bottom-left { left: 12px; }
        .mak-chatbot--floating .mak-chatbot__panel {
            width: calc(100vw - 24px);
            height: calc(100vh - 120px);
            max-height: calc(100vh - 120px);
        }
        .mak-chatbot--floating .mak-chatbot__greeting {
            width: calc(100vw - 32px);
            max-width: 320px;
        }
        .mak-chatbot--inline { width: 100%; }
    }
    @media (max-width: 480px) {
        .mak-chatbot--floating { bottom: 10px; }
        .mak-chatbot--bottom-right { right: 8px; }
        .mak-chatbot--bottom-left { left: 8px; }
        .mak-chatbot--floating .mak-chatbot__panel {
            width: calc(100vw - 16px);
            height: calc(100vh - 100px);
            max-height: calc(100vh - 100px);
        }
    }
}

/* Earlier Chrome versions did not implement CSS variables. A corporate-safe
   fallback keeps the actual iframe visible rather than collapsing the window.
   Modern Chrome continues to use every editable WordPress design setting. */
@supports not (color: var(--mak-compat-check)) {
    .mak-chatbot--floating { z-index: 999999; bottom: 24px; }
    .mak-chatbot--bottom-right { right: 24px; }
    .mak-chatbot--bottom-left { left: 24px; }
    .mak-chatbot__launcher {
        width: 58px; min-width: 58px; height: 58px;
        background: #213A6F; color: white; border: 0; border-radius: 50%; padding: 14px;
    }
    .mak-chatbot--launcher-theme-3 .mak-chatbot__launcher,
    .mak-chatbot--launcher-theme-4 .mak-chatbot__launcher,
    .mak-chatbot--launcher-text .mak-chatbot__launcher { width: auto; padding: 0 16px; }
    .mak-chatbot__panel { background: white; border: 1px solid #D6E1F3; border-radius: 16px; }
    .mak-chatbot--floating .mak-chatbot__panel {
        width: 400px; height: 600px; max-width: calc(100vw - 24px);
        max-height: calc(100vh - 100px); bottom: 72px;
    }
    .mak-chatbot--inline { width: 400px; }
    .mak-chatbot--inline .mak-chatbot__panel { height: 600px; }
    .mak-chatbot__header { background: #213A6F; color: white; }
    .mak-chatbot__status-bar { background: #F7FAFE; color: #213A6F; }
    .mak-chatbot__controls-bar { background: white; }
    .mak-chatbot__window-control { width: 34px; height: 34px; background: #F3F6FB; color: #42526B; }
    .mak-chatbot__body { background: white; }
    .mak-chatbot--floating .mak-chatbot__greeting { width: 300px; max-width: calc(100vw - 110px); }
    .mak-chatbot__greeting-card { background: #fff; color: #283B57; }
    .mak-chatbot__greeting-message { color: #283B57; }
    .mak-chatbot__greeting-action { color: #213A6F; }
    @media (max-width: 767px) {
        .mak-chatbot--floating { bottom: 14px; }
        .mak-chatbot--bottom-right { right: 12px; }
        .mak-chatbot--bottom-left { left: 12px; }
        .mak-chatbot--floating .mak-chatbot__panel { width: calc(100vw - 24px); height: calc(100vh - 110px); bottom: 72px; }
        .mak-chatbot--inline { width: 100%; }
        .mak-chatbot--floating .mak-chatbot__greeting { width: 300px; max-width: calc(100vw - 24px); }
    }
}
