/* i20 Visa Overseas - Predefined Chat Assistant (static, no API) */

.i20cb-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000088;
    color: #fff;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.6rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.i20cb-fab:hover {
    background: #E20935;
    transform: translateY(-2px);
}

.i20cb-fab .i20cb-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #E20935;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.i20cb-nudge {
    position: fixed;
    right: 90px;
    bottom: 34px;
    z-index: 9998;
    max-width: 220px;
    background: #fff;
    color: #333;
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    animation: i20cb-fade-in 0.3s ease;
}

.i20cb-nudge:after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: 18px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 3px -3px 6px rgba(0, 0, 0, 0.04);
}

.i20cb-nudge .i20cb-nudge-close {
    position: absolute;
    top: 2px;
    right: 6px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px;
}

@keyframes i20cb-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.i20cb-panel {
    position: fixed;
    right: 20px;
    bottom: 92px;
    z-index: 9999;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 130px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: inherit;
}

.i20cb-panel.i20cb-open {
    display: flex;
}

.i20cb-header {
    background: linear-gradient(135deg, #000088, #1a3fd6);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.i20cb-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.i20cb-header-text {
    flex: 1;
    line-height: 1.2;
}

.i20cb-header-text strong {
    display: block;
    font-size: 0.95rem;
}

.i20cb-header-text span {
    font-size: 0.75rem;
    opacity: 0.85;
}

.i20cb-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    opacity: 0.85;
}

.i20cb-close:hover {
    opacity: 1;
}

.i20cb-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f4f6fb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.i20cb-msg {
    max-width: 85%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    white-space: pre-line;
}

.i20cb-msg-bot {
    background: #fff;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.i20cb-msg-user {
    background: #000088;
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.i20cb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 2px 2px;
}

.i20cb-chip {
    background: #fff;
    border: 1px solid #000088;
    color: #000088;
    border-radius: 20px;
    padding: 7px 13px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-align: left;
}

.i20cb-chip:hover {
    background: #000088;
    color: #fff;
}

.i20cb-chip.i20cb-chip-cta {
    border-color: #E20935;
    color: #E20935;
}

.i20cb-chip.i20cb-chip-cta:hover {
    background: #E20935;
    color: #fff;
}

.i20cb-footer {
    padding: 10px 12px;
    border-top: 1px solid #e9ecef;
    background: #fff;
    display: flex;
    gap: 8px;
}

.i20cb-footer a {
    flex: 1;
    text-align: center;
    padding: 9px 8px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.i20cb-footer .i20cb-whatsapp {
    background: #25D366;
    color: #fff;
}

.i20cb-footer .i20cb-book {
    background: #E20935;
    color: #fff;
}

@media (max-width: 480px) {
    .i20cb-panel {
        right: 16px;
        left: 16px;
        width: auto;
        bottom: 86px;
    }

    .i20cb-nudge {
        right: 16px;
        max-width: calc(100vw - 100px);
    }

    .i20cb-fab {
        right: 16px;
        bottom: 16px;
    }
}
