#hypwa-connectivity-notice {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999999;
    max-width: 360px;
    width: calc(100% - 40px);
    padding: 14px 16px;
    background: var(--hypwa-connectivity-bg, #1a1a2e);
    color: var(--hypwa-connectivity-color, #f7c1c1);
    border-radius: 14px;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 14px;

    transform: translateY(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.25s ease,
        visibility 0.25s ease;
    overflow: hidden;
}

#hypwa-connectivity-notice.hypwa-is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Icon box — tinted from user's bg color via opacity layer */
.hypwa-connectivity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--hypwa-connectivity-color, #f09595);
    transition: background 0.3s ease, color 0.3s ease;
}

.hypwa-connectivity-body {
    flex: 1;
    min-width: 0;
}

.hypwa-connectivity-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 3px;
    line-height: 1.3;
    color: var(--hypwa-connectivity-color, #f7c1c1);
    transition: color 0.3s ease;
}

.hypwa-connectivity-description {
    font-size: 12px;
    line-height: 1.5;
    color: var(--hypwa-connectivity-color, rgba(247, 193, 193, 0.65));
    opacity: 0.75;
    margin: 0;
    transition: color 0.3s ease, opacity 0.3s ease;
    font-weight: 400;
}

.hypwa-connectivity-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hypwa-connectivity-color, #e24b4a);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    margin-top: 5px;
    animation: hypwa-pulse 1.8s ease-in-out infinite;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hypwa-connectivity-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#hypwa-connectivity-notice.hypwa-is-online .hypwa-connectivity-progress,
#hypwa-connectivity-notice.hypwa-is-visible:not(.hypwa-is-online) .hypwa-connectivity-progress {
    opacity: 1;
}

.hypwa-connectivity-progress-bar {
    height: 100%;
    width: 100%;
    background: var(--hypwa-connectivity-color, #639922);
    transform-origin: left;
}

.hypwa-connectivity-progress-bar.hypwa-animating {
    animation: hypwa-shrink 2.5s linear forwards;
}

@keyframes hypwa-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); }
    50%       { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06); }
}

@keyframes hypwa-shrink {
    from { width: 100%; }
    to   { width: 0%; }
}

@media (max-width: 480px) {
    #hypwa-connectivity-notice {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
    }
}