/* AI Agent Floating Button */
.aafb-widget,
.aafb-widget * {
    box-sizing: border-box;
}

.aafb-widget {
    --aafb-green: #176b54;
    --aafb-mint: #e3f7ed;
    position: fixed;
    z-index: 999999;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 70px;
    max-width: min(340px, calc(100vw - 28px));
    padding: 9px 14px 9px 12px;
    border: 1px solid rgba(40, 137, 102, .18);
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fffa 100%);
    color: var(--aafb-green) !important;
    text-decoration: none !important;
    direction: rtl;
    box-shadow: 0 10px 34px rgba(22, 83, 62, .16), 0 2px 8px rgba(22, 83, 62, .08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.aafb-widget.aafb-right { right: 22px; }
.aafb-widget.aafb-left { left: 22px; }

.aafb-widget:hover,
.aafb-widget:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(40, 137, 102, .38);
    box-shadow: 0 16px 38px rgba(22, 83, 62, .22), 0 3px 10px rgba(22, 83, 62, .1);
    color: var(--aafb-green) !important;
    text-decoration: none !important;
}

.aafb-widget:focus-visible {
    outline: 3px solid rgba(42, 157, 112, .3);
    outline-offset: 4px;
}

.aafb-icon-wrap {
    position: relative;
    display: flex;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 17px;
    background: radial-gradient(circle at 30% 25%, #f4fff8 0%, #d9f3e5 65%, #c8ead8 100%);
}

.aafb-icon {
    display: block;
    width: 47px;
    height: 47px;
    object-fit: contain;
    filter: drop-shadow(0 2px 2px rgba(30, 90, 65, .12));
}

.aafb-online-dot {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #36bd7c;
    box-shadow: 0 0 0 3px rgba(54, 189, 124, .12);
}

.aafb-copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    line-height: 1.35;
}

.aafb-title {
    color: #155f4b;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.aafb-subtitle {
    color: #71877d;
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
}

.aafb-arrow {
    display: flex;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f6ee;
    color: #258361;
    font-family: Arial, sans-serif;
    font-size: 24px;
    line-height: 1;
    transition: transform .2s ease, background .2s ease;
}

.aafb-widget:hover .aafb-arrow {
    transform: translateX(-3px);
    background: #d8f0e3;
}

@media (max-width: 480px) {
    .aafb-widget {
        bottom: 14px;
        min-height: 62px;
        gap: 9px;
        padding: 7px 10px;
        border-radius: 19px;
        max-width: calc(100vw - 24px);
    }
    .aafb-widget.aafb-right { right: 12px; }
    .aafb-widget.aafb-left { left: 12px; }
    .aafb-icon-wrap {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }
    .aafb-icon { width: 42px; height: 42px; }
    .aafb-title { font-size: 13px; }
    .aafb-subtitle { font-size: 9.5px; }
}
