.tbba-contact-hub {
    --hub-navy: #0a1834;
    --hub-blue: #1e4fa8;
    --hub-sky: #38bdf8;
    --hub-red: #d9273c;
    --hub-ink: #14213a;
    --hub-muted: #6b7890;
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 1500;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.tbba-contact-hub *,
.tbba-contact-hub *::before,
.tbba-contact-hub *::after { box-sizing: border-box; }
.tbba-contact-hub [hidden] { display: none !important; }

.tbba-contact-launcher {
    position: relative;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: linear-gradient(145deg, #245dbd 0%, #123b82 48%, #091d43 100%);
    color: #fff;
    box-shadow: 0 14px 34px rgba(8, 28, 65, .3), 0 0 0 6px rgba(30, 79, 168, .1);
    display: grid;
    place-items: center;
    align-items: center;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, opacity .18s ease;
}
.tbba-contact-launcher::before {
    content: '';
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(56, 189, 248, .32);
    border-radius: 50%;
    opacity: .65;
    pointer-events: none;
    animation: tbbaContactPulse 2.7s ease-out infinite;
}
.tbba-contact-launcher::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 9px;
    width: 15px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
    transform: rotate(32deg);
    pointer-events: none;
}
@keyframes tbbaContactPulse {
    0%, 45% { transform: scale(.92); opacity: .55; }
    75%, 100% { transform: scale(1.18); opacity: 0; }
}
.tbba-contact-launcher:hover,
.tbba-contact-launcher:focus-visible {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 20px 42px rgba(8, 28, 65, .38), 0 0 0 7px rgba(56, 189, 248, .16);
    outline: none;
}
.tbba-contact-launcher[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: translateY(8px) scale(.96); }
.tbba-contact-launcher-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    display: grid;
    place-items: center;
}
.tbba-contact-launcher-icon > .fa-headset {
    color: #fff;
    font-size: 19px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .18));
}
.tbba-contact-launcher-status {
    position: absolute;
    right: -4px;
    bottom: 0;
    width: 11px;
    height: 11px;
    border: 2px solid #123b82;
    border-radius: 50%;
    background: #2dd4a3;
    box-shadow: 0 0 0 3px rgba(45, 212, 163, .17);
}
.tbba-contact-launcher-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    width: max-content;
    padding: 9px 13px;
    border: 1px solid #e1e8f1;
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 12px 30px rgba(8, 28, 65, .15);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translate(8px, -50%);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    pointer-events: none;
}
.tbba-contact-launcher-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-top: 1px solid #e1e8f1;
    border-right: 1px solid #e1e8f1;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
}
.tbba-contact-launcher-tooltip small {
    display: block;
    margin-bottom: 2px;
    color: #77849a;
    font-size: 8px;
    font-weight: 600;
}
.tbba-contact-launcher-tooltip strong {
    display: block;
    color: var(--hub-navy);
    font: 700 11px/1.25 'Outfit', sans-serif;
}
.tbba-contact-launcher:hover .tbba-contact-launcher-tooltip,
.tbba-contact-launcher:focus-visible .tbba-contact-launcher-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

.tbba-contact-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(374px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 30px 78px rgba(7, 20, 46, .3), 0 8px 22px rgba(7, 20, 46, .1);
    transform-origin: bottom right;
    animation: tbbaContactIn .26s cubic-bezier(.22, 1, .36, 1);
}
@keyframes tbbaContactIn {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to { opacity: 1; transform: none; }
}

.tbba-contact-header {
    position: relative;
    padding: 15px 16px;
    background: linear-gradient(125deg, #08162f 0%, #102a5d 70%, #174287 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
}
.tbba-contact-header::before {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    right: -65px;
    top: -110px;
    border-radius: 50%;
    background: rgba(56, 189, 248, .18);
}
.tbba-contact-header::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, var(--hub-red), var(--hub-sky), transparent 84%);
}
.tbba-contact-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; min-width: 0; }
.tbba-contact-brand > span {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: rgba(255, 255, 255, .97);
    display: grid;
    place-items: center;
    box-shadow: 0 7px 16px rgba(0, 0, 0, .14);
}
.tbba-contact-brand img { width: 19px; height: 31px; object-fit: contain; }
.tbba-contact-brand small { display: block; margin-bottom: 3px; color: #7dd3fc; font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.tbba-contact-brand strong { display: block; color: #fff; font: 700 14px/1.25 'Outfit', sans-serif; }
.tbba-contact-header > button {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 11px;
    background: rgba(255, 255, 255, .07);
    color: #c6d4e8;
    cursor: pointer;
}
.tbba-contact-header > button:hover,
.tbba-contact-header > button:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; outline: none; }

.tbba-contact-body {
    padding: 18px 17px 16px;
    background: radial-gradient(circle at 100% 0, rgba(219, 234, 254, .7), transparent 35%), #f8faff;
}
.tbba-contact-body > p { margin: 0 0 13px; color: var(--hub-muted); font-size: 9px; line-height: 1.55; }
.tbba-contact-primary-actions { display: grid; gap: 9px; }
.tbba-contact-primary-actions > a {
    min-height: 60px;
    padding: 10px 12px;
    border: 1px solid #dfe7f1;
    border-radius: 15px;
    background: rgba(255, 255, 255, .92);
    color: var(--hub-ink);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 7px 18px rgba(24, 48, 89, .05);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tbba-contact-primary-actions > a:hover,
.tbba-contact-primary-actions > a:focus-visible { transform: translateY(-2px); border-color: #9ac1f5; box-shadow: 0 11px 24px rgba(30, 79, 168, .1); outline: none; }
.tbba-contact-primary-actions > a > span { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; }
.tbba-contact-call > span { background: #eaf3ff; color: var(--hub-blue); }
.tbba-contact-inquiry { border-color: #b9e7d6 !important; background: linear-gradient(135deg, #f3fdf9, #ecfaf5) !important; }
.tbba-contact-inquiry > span { background: #d9f6eb; color: #07805b; }
.tbba-contact-primary-actions strong { flex: 1; color: inherit; font: 700 10px/1.2 'Outfit', sans-serif; }
.tbba-contact-primary-actions small { display: block; margin-top: 4px; color: #8290a4; font: 500 8px/1.35 'Plus Jakarta Sans', sans-serif; }
.tbba-contact-primary-actions > a > i { color: #a7b3c3; font-size: 9px; }

.tbba-contact-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.tbba-contact-shortcuts a {
    min-height: 66px;
    padding: 10px 7px;
    border: 1px solid #e1e7ef;
    border-radius: 13px;
    background: rgba(255, 255, 255, .72);
    color: #506079;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    font-size: 7.5px;
    font-weight: 700;
}
.tbba-contact-shortcuts a i { color: var(--hub-blue); font-size: 12px; }
.tbba-contact-shortcuts a:hover,
.tbba-contact-shortcuts a:focus-visible { border-color: #b8d2f5; background: #fff; color: var(--hub-blue); outline: none; }

.tbba-contact-footer {
    padding: 10px 15px;
    border-top: 1px solid #e5eaf1;
    background: #fff;
    color: #8b97a8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 7px;
    line-height: 1.4;
}
.tbba-contact-footer i { color: #4d87ce; }

@media (max-width: 540px) {
    .tbba-contact-hub { right: 14px; bottom: 14px; }
    .tbba-contact-launcher { width: 56px; height: 56px; }
    .tbba-contact-launcher-icon { width: 39px; height: 39px; }
    .tbba-contact-launcher-tooltip { display: none; }
    .tbba-contact-panel { position: fixed; right: 10px; bottom: 10px; width: min(374px, calc(100vw - 20px)); }
}

@media (prefers-reduced-motion: reduce) {
    .tbba-contact-panel { animation: none; }
    .tbba-contact-launcher::before { animation: none; }
    .tbba-contact-launcher,
    .tbba-contact-primary-actions > a { transition: none; }
}
