/**
 * Help Widget Styles - Isabelle Account Manager Popup
 * Mobile-first, fixed position bottom-right
 */

/* ===================================
   Floating Button (Collapsed State)
   =================================== */
.help-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: var(--mac-font);
}

.help-widget-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--mac-white);
    border: none;
    border-radius: 28px;
    padding: 4px 16px 4px 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.help-widget-trigger:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.help-widget-trigger-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--mac-gray-200);
}

.help-widget-trigger-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mac-gray-800);
}

/* ===================================
   Expanded Card
   =================================== */
.help-widget-card {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 260px;
    background: var(--mac-white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    padding: 24px 20px 20px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.help-widget-card.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Close Button */
.help-widget-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--mac-gray-600);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.help-widget-close:hover {
    color: var(--mac-gray-800);
}

/* Photo in Card */
.help-widget-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--mac-gray-200);
    margin: 0 auto 14px;
    display: block;
}

/* Name */
.help-widget-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mac-gray-800);
    margin: 0 0 4px;
}

.help-widget-role {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--mac-gray-600);
    margin: 0 0 16px;
}

/* Divider */
.help-widget-divider {
    width: 100%;
    height: 1px;
    background: var(--mac-gray-200);
    margin: 0 0 16px;
}

/* Call Label */
.help-widget-call-label {
    font-size: 0.85rem;
    color: var(--mac-gray-600);
    margin: 0 0 10px;
}

/* Call Button */
.help-widget-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    background: #ff6b3d;
    color: var(--mac-white);
    border: none;
    border-radius: 8px;
    font-family: var(--mac-font);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.help-widget-call-btn:hover {
    background: #e55a2e;
    text-decoration: none;
    color: var(--mac-white);
}

.help-widget-call-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ===================================
   Hide trigger when card is open
   =================================== */
.help-widget.is-expanded .help-widget-trigger {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* ===================================
   Mobile adjustments
   =================================== */
@media (max-width: 400px) {
    .help-widget {
        bottom: 16px;
        right: 16px;
    }

    .help-widget-card {
        width: 240px;
    }
}
