.upkeo-pwa-assistant {
    align-items: flex-start;
    background: var(--upkeo-theme-surface-elevated, #ffffff);
    border: 1px solid var(--upkeo-theme-border, rgba(15, 23, 42, .12));
    border-radius: 8px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--upkeo-theme-shadow-lg, 0 14px 34px rgba(15, 23, 42, .22));
    color: var(--upkeo-theme-text, #1f2937);
    display: none;
    gap: 10px;
    left: 12px;
    max-width: min(560px, calc(100vw - 24px));
    padding: 12px;
    position: fixed;
    right: 12px;
    z-index: 1040;
}

.upkeo-pwa-assistant.is-visible {
    display: flex;
}

.upkeo-pwa-assistant__icon {
    align-items: center;
    background: var(--upkeo-theme-primary-soft, #f0f6ff);
    border-radius: 8px;
    color: var(--upkeo-theme-primary, var(--primary-bg-color, #0d6efd));
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.upkeo-pwa-assistant__body {
    flex: 1 1 auto;
    min-width: 0;
}

.upkeo-pwa-assistant__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 3px;
}

.upkeo-pwa-assistant__message,
.upkeo-pwa-assistant__instructions {
    font-size: 12px;
    line-height: 1.35;
}

.upkeo-pwa-assistant__message {
    color: var(--upkeo-theme-muted, #4b5563);
}

.upkeo-pwa-assistant__instructions {
    background: var(--upkeo-theme-surface-muted, #f8fafc);
    border-radius: 8px;
    color: var(--upkeo-theme-text-soft, #334155);
    display: none;
    margin-top: 8px;
    padding: 8px;
}

.upkeo-pwa-assistant__instructions.is-visible {
    display: block;
}

.upkeo-pwa-assistant__actions {
    align-items: stretch;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.upkeo-pwa-assistant__actions .btn {
    white-space: nowrap;
}

.upkeo-pwa-assistant__close {
    align-items: center;
    color: var(--upkeo-theme-muted, #6c757d) !important;
    display: inline-flex;
    height: 31px;
    justify-content: center;
    min-width: 31px;
}

.upkeo-pwa-assistant__close:hover,
.upkeo-pwa-assistant__close:focus {
    background: var(--upkeo-theme-surface-hover, rgba(15, 23, 42, .06));
    color: var(--upkeo-theme-text, #1f2937) !important;
}

.dark-mode .upkeo-pwa-assistant {
    background: var(--upkeo-theme-surface-elevated, #1f2937);
    border-color: var(--upkeo-theme-border, rgba(255, 255, 255, .14));
    color: var(--upkeo-theme-text, #f8fafc);
}

.dark-mode .upkeo-pwa-assistant__message {
    color: var(--upkeo-theme-muted, #cbd5e1);
}

.dark-mode .upkeo-pwa-assistant__instructions {
    background: var(--upkeo-theme-surface-muted, rgba(15, 23, 42, .55));
    color: var(--upkeo-theme-text-soft, #e2e8f0);
}

@media (min-width: 576px) {
    .upkeo-pwa-assistant {
        left: auto;
    }
}

@media (max-width: 420px) {
    .upkeo-pwa-assistant {
        flex-wrap: wrap;
    }

    .upkeo-pwa-assistant__actions {
        flex: 1 0 100%;
        justify-content: flex-end;
    }
}
