/* Website assistant (js/assistant.js) */
.hla { --hla: #399abe; --hla-d: #2b7c9b; --ink: #0a2540; font-family: "Google Sans", Arial, Helvetica, sans-serif; }
.hla * { box-sizing: border-box; }

.hla-fab {
    position: fixed; right: 28px; bottom: 28px; z-index: 9990;
    width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: var(--hla); color: #fff;
    box-shadow: 0 10px 30px rgba(57,154,190,.45), 0 0 0 6px rgba(57,154,190,.15);
    display: grid; place-items: center;
    opacity: 0; transform: scale(.4) translateY(30px); pointer-events: none;
    transition: opacity .3s ease, transform .4s cubic-bezier(.2,1.4,.4,1);
}
.hla-show .hla-fab { opacity: 1; transform: none; pointer-events: auto; }
.hla-fab:hover { box-shadow: 0 10px 30px rgba(57,154,190,.6), 0 0 0 9px rgba(57,154,190,.18); }
.hla-fab img { width: 26px; height: 26px; transition: transform .25s, opacity .2s; }
.hla-close-ico { position: absolute; font-size: 30px; line-height: 1; opacity: 0; transform: rotate(-90deg); transition: transform .25s, opacity .2s; }
.hla-open .hla-fab img { opacity: 0; transform: rotate(90deg); }
.hla-open .hla-close-ico { opacity: 1; transform: none; }

.hla-panel {
    position: fixed; right: 28px; bottom: 100px; z-index: 9991;
    width: 380px; height: min(620px, calc(100vh - 130px));
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    display: flex; flex-direction: column;
    animation: hla-in .28s ease;
}
.hla-panel[hidden] { display: none; }
@keyframes hla-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.hla-head { background: #0e0e0f; color: #fff; padding: 14px 16px 14px 18px; display: flex; align-items: center; gap: 12px; flex: none; }
.hla-av { width: 36px; height: 36px; border-radius: 10px; background: var(--hla); display: grid; place-items: center; flex: none; }
.hla-av img { width: 20px; height: 20px; }
.hla-ttl { min-width: 0; }
.hla-ttl b { display: block; font-size: 15px; font-weight: 600; }
.hla-ttl small { display: block; color: #8fd0e6; font-size: 12px; }
.hla-ttl small::before { content: "● "; }
.hla-x { margin-left: auto; background: none; border: 0; color: #aaa; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.hla-x:hover { color: #fff; }

.hla-tabs { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #eef0f2; flex: none; overflow-x: auto; }
.hla-tabs button { font: inherit; font-size: 12px; padding: 6px 11px; border-radius: 20px; border: 0; background: #f2f5f7; color: #45525c; cursor: pointer; white-space: nowrap; }
.hla-tabs button:hover { background: #e6edf1; }
.hla-tabs button.on { background: var(--hla); color: #fff; }

.hla-body { flex: 1; min-height: 0; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; background: #fafbfc; overscroll-behavior: contain; }
.hla-m { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; color: var(--ink); word-wrap: break-word; }
.hla-bot { background: #fff; border: 1px solid #e8ecef; border-top-left-radius: 4px; align-self: flex-start; }
.hla-me { background: var(--hla); color: #fff; align-self: flex-end; border-top-right-radius: 4px; }
.hla-err { background: #fff4f2; border: 1px solid #f3d0c9; color: #9b3b2b; align-self: flex-start; }

.hla-typing { display: flex; gap: 4px; padding: 13px 14px; }
.hla-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9fb2bd; animation: hla-dot 1s infinite ease-in-out; }
.hla-typing i:nth-child(2) { animation-delay: .15s; }
.hla-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hla-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

.hla-est { background: #fff; border: 1px solid #cfe4ee; border-radius: 12px; padding: 12px 13px; font-size: 13px; color: var(--ink); flex: none; }
.hla-est h4 { margin: 0 0 6px; font-size: 12px; color: var(--hla-d); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hla-big { font-size: 19px; font-weight: 700; margin: 2px 0 3px; }
.hla-s { color: #6b7a85; font-size: 12px; line-height: 1.45; }

.hla-work { display: flex; gap: 8px; flex: none; }
.hla-work > * { flex: 1; min-width: 0; height: 74px; border-radius: 9px; position: relative; overflow: hidden; background: linear-gradient(135deg, #2c2c2e, #555); display: block; }
.hla-work img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hla-work i { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 10.5px; color: #fff; font-style: normal; background: linear-gradient(transparent, rgba(0,0,0,.7)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hla-work a:hover img { transform: scale(1.05); transition: transform .3s; }

.hla-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: none; }
.hla-chips button { font: inherit; font-size: 12.5px; border: 1px solid var(--hla); color: var(--hla-d); padding: 6px 12px; border-radius: 20px; background: #fff; cursor: pointer; }
.hla-chips button:hover { background: var(--hla); color: #fff; }

.hla-send { background: #fff; border: 1px solid #cfe4ee; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: none; }
.hla-send p { margin: 0 0 2px; font-size: 13px; color: var(--ink); font-weight: 600; }
.hla-send input { font: inherit; font-size: 13.5px; border: 1px solid #d5dde3; border-radius: 9px; padding: 9px 11px; color: var(--ink); background: #fff; width: 100%; }
.hla-send input:focus, .hla-in textarea:focus { outline: none; border-color: var(--hla); box-shadow: 0 0 0 3px rgba(57,154,190,.15); }
.hla-row { display: flex; gap: 8px; }
.hla-row button { font: inherit; font-size: 13px; border-radius: 9px; padding: 8px 14px; cursor: pointer; border: 1px solid var(--hla); background: var(--hla); color: #fff; }
.hla-row .hla-cancel { background: #fff; color: #45525c; border-color: #d5dde3; }
.hla-row button:disabled { opacity: .6; cursor: default; }
.hla-ferr { color: #b0402c; font-size: 12px; font-style: normal; }
.hla-ferr:empty { display: none; }
.hla-done { background: #effaf3; border: 1px solid #c6e9d2; color: #1e6b3a; border-radius: 12px; padding: 10px 13px; font-size: 13px; line-height: 1.45; flex: none; }

.hla-in { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #eef0f2; background: #fff; flex: none; align-items: flex-end; }
.hla-in textarea { flex: 1; font: inherit; font-size: 14px; line-height: 1.4; border: 1px solid #d5dde3; border-radius: 10px; padding: 9px 12px; color: var(--ink); resize: none; max-height: 110px; background: #fff; }
.hla-in button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--hla); display: grid; place-items: center; color: #fff; cursor: pointer; font-size: 16px; flex: none; }
.hla-busy .hla-in button { opacity: .5; cursor: default; }

@media (max-width: 640px) {
    .hla-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
    .hla-panel { right: 0; left: 0; bottom: 0; top: 0; width: auto; height: auto; border-radius: 0; z-index: 9995; }
    .hla-open .hla-fab { opacity: 0; pointer-events: none; }
    .hla-in textarea, .hla-send input { font-size: 16px; } /* stops iPhone zooming in */
}

/* name + email / WhatsApp before chatting */
.hla-gate { margin: auto 0; background: #fff; border: 1px solid #cfe4ee; border-radius: 14px; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.hla-gate h3 { margin: 0; font-size: 16px; color: var(--ink); }
.hla-gate p { margin: 0 0 4px; font-size: 13px; line-height: 1.45; color: #6b7a85; }
.hla-gate input { font: inherit; font-size: 14px; border: 1px solid #d5dde3; border-radius: 10px; padding: 11px 12px; color: var(--ink); width: 100%; background: #fff; }
.hla-gate input:focus { outline: none; border-color: var(--hla); box-shadow: 0 0 0 3px rgba(57,154,190,.15); }
.hla-gate button { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 10px; padding: 11px; background: var(--hla); color: #fff; cursor: pointer; }
.hla-gate button:disabled { opacity: .6; cursor: default; }
.hla-locked .hla-in, .hla-locked .hla-tabs { opacity: .45; pointer-events: none; }
@media (max-width: 640px) { .hla-gate input { font-size: 16px; } }
