/* =============================================================================
   Industrial Hub AI Advisor – стилове на widget-а
   -----------------------------------------------------------------------------
   Всички класове започват с „iha-“, за да не се смесват със стиловете на сайта.
   Цветовете и шрифтът следват сайта (Manrope, #4F5252, #D2BC5D).
   Позицията на бутона се променя с --iha-offset-right / --iha-offset-bottom.
   ============================================================================= */

.iha {
    --iha-graphite: #4F5252;
    --iha-graphite-deep: #3A3D3D;
    --iha-gold: #D2BC5D;
    --iha-gold-soft: #F4EDD3;
    --iha-mist: #EAECEB;
    --iha-paper: #FFFFFF;
    --iha-ink: #262828;
    --iha-ink-muted: #6F7371;
    --iha-line: #D9DCDB;
    --iha-danger: #A8452F;

    --iha-offset-right: 20px;
    --iha-offset-bottom: 20px;
    --iha-panel-width: 400px;
    --iha-panel-height: 640px;

    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--iha-ink);
    line-height: 1.45;
}

.iha *,
.iha *::before,
.iha *::after {
    box-sizing: border-box;
}

.iha-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Плаващ квадратен бутон -------------------------------------------------- */

.iha-launcher {
    position: fixed;
    right: calc(var(--iha-offset-right) + env(safe-area-inset-right, 0px));
    bottom: calc(var(--iha-offset-bottom) + env(safe-area-inset-bottom, 0px));
    z-index: 1400; /* под overlay менюто на сайта (1500) и банера за бисквитки */
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: var(--iha-graphite);
    color: var(--iha-gold);
    /* Светъл контур – бутонът остава видим и върху тъмни снимки/секции. */
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 10px 24px -8px rgba(38, 40, 40, 0.55);
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.iha-launcher:hover {
    background: var(--iha-gold);
    color: var(--iha-graphite-deep);
}

.iha-launcher:active {
    transform: scale(0.96);
}

.iha-launcher:focus-visible,
.iha button:focus-visible,
.iha a:focus-visible,
.iha textarea:focus-visible {
    outline: 3px solid var(--iha-gold);
    outline-offset: 2px;
}

.iha-launcher svg {
    width: 56px;
    height: 56px;
    overflow: visible;
}

/* --- Знакът на бутона: лого, чиято последна линия става „?“ ------------------
   Два плътни цвята, без преливане:
     нормално        – бяло лого, златист „?“;
     при посочване   – тъмно лого, бял „?“ (фонът става златист). */

.iha-launcher {
    --iha-launcher-logo: var(--iha-paper);
    --iha-launcher-question: var(--iha-gold);
}

.iha-launcher:hover {
    --iha-launcher-logo: var(--iha-graphite-deep);
    --iha-launcher-question: var(--iha-paper);
}

.iha-launcher__mark {
    fill: var(--iha-launcher-logo);
    transition: fill 0.18s ease;
}

.iha-launcher__question-line {
    fill: none;
    stroke: var(--iha-launcher-question);
    stroke-width: 21; /* малко по-дебела от перките (18) – оптическа компенсация в малък размер */
    stroke-linejoin: miter;
    stroke-linecap: butt;
    transition: stroke 0.18s ease;
    /* Линията се „изтегля“ отдолу нагоре – от логото към куката. */
    stroke-dasharray: 100 100;
    stroke-dashoffset: 0;
    animation: iha-question-draw 8s ease-in-out 2s infinite;
}

.iha-launcher__question-dot {
    fill: var(--iha-launcher-question);
    transition: fill 0.18s ease;
}

.iha-launcher:hover .iha-launcher__question-line {
    animation: none;
}

/* На всеки 8 секунди куката се прибира в линията и израства отново.
   Изключва се автоматично при prefers-reduced-motion (виж края на файла). */
@keyframes iha-question-draw {
    0%, 85%, 100% { stroke-dashoffset: 0; }
    88%           { stroke-dashoffset: 62; }
    90%           { stroke-dashoffset: 62; }
    97%           { stroke-dashoffset: 0; }
}

/* --- AI иконите (балонче + искра) -------------------------------------------
   Цветове: нормално – бяло балонче, златиста искра на графитен фон;
            при посочване – тъмно балонче, бяла искра на златист фон.
   --iha-launcher-surface е цветът на фона на бутона: с него се рисуват
   точките/надписът в балончето и тънкият „процеп“ около искрата. */

.iha-launcher {
    --iha-launcher-fg: var(--iha-paper);
    --iha-launcher-accent: var(--iha-gold);
    --iha-launcher-surface: var(--iha-graphite);
    --iha-launcher-repeats: 6;
}

.iha-launcher:hover {
    --iha-launcher-fg: var(--iha-graphite-deep);
    --iha-launcher-accent: var(--iha-paper);
    --iha-launcher-surface: var(--iha-gold);
}

.iha-launcher__bubble {
    fill: var(--iha-launcher-fg);
    transition: fill 0.18s ease;
}

.iha-launcher__bubble-outline {
    fill: none;
    stroke: var(--iha-launcher-fg);
    stroke-width: 6;
    stroke-linejoin: round;
    transition: stroke 0.18s ease;
}

.iha-launcher__logo {
    fill: var(--iha-launcher-fg);
    transition: fill 0.18s ease;
}

.iha-launcher__dots circle,
.iha-launcher__ai-text {
    fill: var(--iha-launcher-surface);
    transition: fill 0.18s ease;
}

.iha-launcher__ai-text {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
}

.iha-launcher__spark-main,
.iha-launcher__spark-small {
    fill: var(--iha-launcher-accent);
    transition: fill 0.18s ease;
}

/* Тънък процеп с цвета на фона – отделя искрата от балончето. */
.iha-launcher__spark-gap {
    fill: none;
    stroke: var(--iha-launcher-surface);
    stroke-width: 6;
    stroke-linejoin: round;
    transition: stroke 0.18s ease;
}

/* --- Анимация -------------------------------------------------------------------
   Искрата „проблясва“ (увеличава се и се завърта), точките подскачат една след
   друга като „пише…“. Повтаря се --iha-launcher-repeats пъти на всеки 7 сек.
   и спира. При посочване проблясва веднъж. При prefers-reduced-motion е
   изключена (виж края на файла). */

.iha-launcher__spark-main,
.iha-launcher__spark-small,
.iha-launcher__dots circle {
    transform-box: fill-box;
    transform-origin: center;
}

.iha-launcher__spark-main {
    animation: iha-spark-twinkle 7s ease-in-out 1.5s var(--iha-launcher-repeats);
}

.iha-launcher__spark-small {
    animation: iha-spark-twinkle 7s ease-in-out 1.75s var(--iha-launcher-repeats);
}

.iha-launcher__dots circle {
    animation: iha-dot-typing 7s ease-in-out 1.5s var(--iha-launcher-repeats);
}

.iha-launcher__dots circle:nth-child(2) { animation-delay: 1.65s; }
.iha-launcher__dots circle:nth-child(3) { animation-delay: 1.8s; }

.iha-launcher:hover .iha-launcher__spark-main,
.iha-launcher:hover .iha-launcher__spark-small {
    animation: iha-spark-hover 0.7s ease-in-out 1;
}

.iha-launcher--static .iha-launcher__spark-main,
.iha-launcher--static .iha-launcher__spark-small,
.iha-launcher--static .iha-launcher__dots circle,
.iha-launcher--static .iha-launcher__question-line {
    animation: none;
}

@keyframes iha-spark-twinkle {
    0%, 78%, 100% { transform: scale(1) rotate(0deg); }
    84%           { transform: scale(1.35) rotate(45deg); }
    90%           { transform: scale(0.85) rotate(90deg); }
    95%           { transform: scale(1) rotate(90deg); }
}

@keyframes iha-spark-hover {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(1.3) rotate(45deg); }
}

@keyframes iha-dot-typing {
    0%, 80%, 100% { transform: translateY(0); }
    85%           { transform: translateY(-5px); }
    90%           { transform: translateY(0); }
}

/* --- Надпис до бутона („Попитайте AI асистента“) – само текст --------------------
   Появява се с „изскачане“ отдясно; на всеки ~4 сек. (--iha-teaser-shimmer-repeats
   пъти) през текста минава златист отблясък, а надписът леко „побутва“ към
   бутона на чата.
   При prefers-reduced-motion всичко е статично (виж края на файла). */

.iha-teaser {
    position: fixed;
    /* 64px бутон + 26px разстояние, в което е стрелката. */
    right: calc(var(--iha-offset-right) + 64px + 26px + env(safe-area-inset-right, 0px));
    bottom: calc(var(--iha-offset-bottom) + 10px + env(safe-area-inset-bottom, 0px));
    z-index: 1400;
    display: flex;
    align-items: center;
    max-width: min(300px, calc(100vw - 110px));
    border-radius: 999px;
    background: var(--iha-paper);
    /* Контурът е box-shadow, а сянката – drop-shadow, за да обхваща и стрелката. */
    --iha-teaser-outline: rgba(210, 188, 93, 0.75);
    box-shadow: 0 0 0 1px var(--iha-teaser-outline);
    filter: drop-shadow(0 8px 14px rgba(38, 40, 40, 0.28));
    opacity: 0;
    visibility: hidden;
    transform: translateX(16px) scale(0.92);
    transform-origin: right center;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    --iha-teaser-shimmer-repeats: 5;
}

.iha-teaser--visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    transition: visibility 0s;
}

/* Стрелка към бутона: заострена и издължена, с контур като надписа.
   ::before е контурът (по-голям триъгълник с цвета на контура),
   ::after е бялото запълване (по-малък триъгълник отгоре). */
.iha-teaser::before,
.iha-teaser::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
    border-right-width: 0;
    pointer-events: none;
}

/* Основите на триъгълниците са леко навътре в заобления край на надписа,
   за да няма шев: бялото запълване покрива контура на надписа там. */
.iha-teaser::before {
    right: -20px;
    margin-top: -7px;
    border-top-width: 7px;
    border-bottom-width: 7px;
    border-left-width: 21.5px;
    border-left-color: var(--iha-teaser-outline);
}

.iha-teaser::after {
    right: -18.5px;
    margin-top: -6px;
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 21px;
    border-left-color: var(--iha-paper);
}

/* „Побутване“ към бутона на чата в началото на всеки цикъл на отблясъка. */
.iha-teaser--visible {
    animation:
        iha-teaser-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        iha-teaser-nudge 4s ease-in-out 0.7s var(--iha-teaser-shimmer-repeats);
}

/* Златист отблясък, който минава през самия текст (background-clip: text). */
.iha-teaser__text {
    color: var(--iha-graphite-deep);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .iha-teaser--visible .iha-teaser__text {
        background-image: linear-gradient(100deg,
            var(--iha-graphite-deep) 0%, var(--iha-graphite-deep) 40%,
            #B89A2E 46%, var(--iha-gold) 50%, #B89A2E 54%,
            var(--iha-graphite-deep) 60%, var(--iha-graphite-deep) 100%);
        background-size: 300% 100%;
        background-position: 100% 0;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: iha-teaser-shine 4s ease-in-out 0.7s var(--iha-teaser-shimmer-repeats);
    }
}

/* teaser_shimmer_repeats = 0: само „изскачане“, без отблясък и побутване. */
.iha-teaser--no-shimmer.iha-teaser--visible {
    animation: iha-teaser-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.iha-teaser--no-shimmer .iha-teaser__text {
    animation: none !important;
}

.iha-teaser__open {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--iha-graphite-deep);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.iha[data-open="true"] .iha-teaser {
    display: none;
}

@keyframes iha-teaser-pop {
    0%   { opacity: 0; transform: translateX(16px) scale(0.92); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes iha-teaser-shine {
    0%        { background-position: 100% 0; }
    45%, 100% { background-position: 0% 0; }
}

@keyframes iha-teaser-nudge {
    0%, 12%, 100% { transform: translateX(0) scale(1); }
    4%            { transform: translateX(5px) scale(1); }
    8%            { transform: translateX(-1px) scale(1); }
}

/* --- Бутон „Изпрати запитване“ при насочване към консултант -------------------- */

.iha-handoff {
    align-self: flex-start;
    margin-top: -4px;
}

.iha[data-open="true"] .iha-launcher {
    display: none;
}

/* --- Панел -------------------------------------------------------------------- */

.iha-panel {
    position: fixed;
    right: calc(var(--iha-offset-right) + env(safe-area-inset-right, 0px));
    bottom: calc(var(--iha-offset-bottom) + env(safe-area-inset-bottom, 0px));
    z-index: 1450;
    width: min(var(--iha-panel-width), calc(100vw - 2 * var(--iha-offset-right)));
    height: min(var(--iha-panel-height), calc(100vh - 2 * var(--iha-offset-bottom)));
    display: flex;
    flex-direction: column;
    background: var(--iha-paper);
    border-radius: 8px;
    box-shadow: 0 24px 60px -18px rgba(38, 40, 40, 0.5), 0 0 0 1px rgba(79, 82, 82, 0.12);
    overflow: hidden;
}

.iha-panel[hidden] {
    display: none;
}

.iha[data-open="true"] .iha-panel {
    animation: iha-panel-in 0.2s ease-out;
}

@keyframes iha-panel-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Заглавна лента */
.iha-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px 14px 18px;
    background: var(--iha-graphite);
    color: var(--iha-paper);
    border-bottom: 3px solid var(--iha-gold);
}

.iha-header__text {
    flex: 1;
    min-width: 0;
}

/* с подчертавка
.iha-header__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--iha-paper);
}
*/
/* без подчертавка */
.iha-header__heading {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.00;
    color: var(--iha-paper);
}
/******/

.iha-header__subtitle {
    margin: 2px 0 0;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--iha-gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iha-icon-button {
    flex: none;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--iha-paper);
    cursor: pointer;
}

.iha-icon-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.iha-icon-button svg {
    width: 20px;
    height: 20px;
}

/* Съобщения */
.iha-messages {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #F7F8F8;
}

.iha-message {
    max-width: 88%;
    padding: 10px 14px;
    font-size: 14.5px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.iha-message--assistant {
    align-self: flex-start;
    background: var(--iha-paper);
    border: 1px solid var(--iha-line);
    border-radius: 2px 12px 12px 12px;
}

.iha-message--user {
    align-self: flex-end;
    background: var(--iha-graphite);
    color: var(--iha-paper);
    border-radius: 12px 2px 12px 12px;
}

.iha-message--error {
    align-self: stretch;
    max-width: none;
    background: #FBF1EE;
    border: 1px solid #EBCFC6;
    color: var(--iha-danger);
    border-radius: 6px;
}

.iha-message__retry {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--iha-graphite);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* Индикатор „пише…“ */
.iha-typing {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 14px;
    background: var(--iha-paper);
    border: 1px solid var(--iha-line);
    border-radius: 2px 12px 12px 12px;
}

.iha-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--iha-gold);
    animation: iha-typing 1.1s infinite ease-in-out;
}

.iha-typing span:nth-child(2) { animation-delay: 0.15s; }
.iha-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes iha-typing {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40%           { opacity: 1;   transform: translateY(-3px); }
}

/* --- Карта на препоръчан модул ------------------------------------------------
   Изградена като „табела на обект“ от ситуационен план: златиста лента
   отляво, име на модула и ключовите площи в решетка. */

.iha-cards {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iha-card {
    position: relative;
    background: var(--iha-paper);
    border: 1px solid var(--iha-line);
    border-left: 4px solid var(--iha-gold);
    border-radius: 4px;
    overflow: hidden;
}

.iha-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    background: var(--iha-mist);
}

.iha-card__body {
    padding: 12px 14px 14px;
}

.iha-card__rank {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    margin-right: 8px;
    padding: 0 6px;
    border-radius: 3px;
    background: var(--iha-graphite);
    color: var(--iha-gold);
    font-size: 13px;
    font-weight: 800;
    vertical-align: 2px;
}

.iha-card__name {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--iha-graphite-deep);
}

.iha-card__park {
    margin: 1px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--iha-ink-muted);
}

.iha-card__reason {
    margin: 10px 0 0;
    font-size: 13.5px;
    color: var(--iha-ink);
}

.iha-card__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 12px 0 0;
    padding: 0;
    background: var(--iha-line);
    border: 1px solid var(--iha-line);
}

.iha-card__spec {
    margin: 0;
    padding: 7px 9px;
    background: var(--iha-paper);
}

.iha-card__spec dt {
    font-size: 11px;
    font-weight: 600;
    color: var(--iha-ink-muted);
}

.iha-card__spec dd {
    margin: 1px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--iha-graphite-deep);
}

.iha-card__more {
    margin-top: 8px;
    font-size: 12.5px;
}

.iha-card__more summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--iha-graphite);
}

.iha-card__more .iha-card__specs {
    margin-top: 8px;
}

.iha-card__fit {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.iha-card__fit li {
    padding: 3px 8px;
    border-radius: 3px;
    background: var(--iha-gold-soft);
    font-size: 12px;
    font-weight: 600;
    color: #5F5323;
}

.iha-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: 14px;
}

.iha-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 4px;
    background: var(--iha-graphite);
    color: var(--iha-paper) !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}

.iha-button-primary:hover {
    background: var(--iha-graphite-deep);
}

.iha-link {
    color: var(--iha-graphite) !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: underline !important;
    text-decoration-color: var(--iha-gold) !important;
    text-underline-offset: 3px;
}

/* --- Бързи отговори ----------------------------------------------------------- */

.iha-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 10px;
    background: #F7F8F8;
}

.iha-quick:empty {
    display: none;
}

.iha-chip {
    padding: 7px 12px;
    border: 1px solid var(--iha-graphite);
    border-radius: 999px;
    background: var(--iha-paper);
    color: var(--iha-graphite);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.iha-chip:hover {
    background: var(--iha-graphite);
    color: var(--iha-paper);
}

.iha-chip:disabled {
    opacity: 0.5;
    cursor: default;
}

/* --- Поле за писане ------------------------------------------------------------ */

.iha-composer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--iha-line);
    background: var(--iha-paper);
}

.iha-composer textarea {
    flex: 1;
    min-height: 42px;
    max-height: 120px;
    padding: 10px 12px;
    border: 1px solid var(--iha-line);
    border-radius: 6px;
    background: #FBFBFB;
    color: var(--iha-ink);
    font: inherit;
    font-size: 15px; /* ≥ 16px на мобилни – виж медийната заявка (без zoom в iOS) */
    line-height: 1.4;
    resize: none;
}

.iha-composer textarea:focus {
    border-color: var(--iha-graphite);
    background: var(--iha-paper);
    outline: none;
}

.iha-send {
    flex: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: var(--iha-gold);
    color: var(--iha-graphite-deep);
    cursor: pointer;
}

.iha-send:hover {
    background: #C4AD4C;
}

.iha-send:disabled {
    background: var(--iha-mist);
    color: var(--iha-ink-muted);
    cursor: default;
}

.iha-send svg {
    width: 20px;
    height: 20px;
}

.iha-footnote {
    margin: 0;
    padding: 0 14px 10px;
    background: var(--iha-paper);
    font-size: 11px;
    color: var(--iha-ink-muted);
    line-height: 1.4;
}

.iha-footnote a {
    color: var(--iha-ink-muted);
    text-decoration: underline;
}

.iha-counter {
    float: right;
    margin-left: 8px;
    font-weight: 600;
}

.iha-counter--warn {
    color: var(--iha-danger);
}

/* --- Мобилни устройства: панелът заема целия екран ---------------------------- */

@media (max-width: 560px) {
    .iha {
        --iha-offset-right: 14px;
        --iha-offset-bottom: 14px;
    }

    .iha-panel {
        inset: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        border-radius: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .iha-header {
        padding-top: calc(14px + env(safe-area-inset-top, 0px));
    }

    .iha-composer textarea {
        font-size: 16px;
    }

    .iha-message {
        max-width: 92%;
    }
}

html.iha-scroll-locked,
html.iha-scroll-locked body {
    overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
    .iha *,
    .iha *::before,
    .iha *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .iha {
        display: none !important;
    }
}
