.sgh-pwa-install,
.sgh-pwa-update {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(26, 115, 232, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
}

.sgh-pwa-install[hidden],
.sgh-pwa-update[hidden] {
    display: none !important;
}

.sgh-pwa-install__icon img {
    display: block;
    border-radius: 12px;
}

.sgh-pwa-install__copy,
.sgh-pwa-update > div {
    min-width: 0;
    flex: 1;
}

.sgh-pwa-install__copy strong,
.sgh-pwa-update strong {
    display: block;
    margin-bottom: 2px;
    color: #1a73e8;
}

.sgh-pwa-install__copy span,
.sgh-pwa-update span {
    display: block;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #4b5563;
}

.sgh-pwa-install__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sgh-pwa-btn {
    border: 0;
    border-radius: 10px;
    padding: 9px 13px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.sgh-pwa-btn--primary {
    background: #1a73e8;
    color: #fff;
}

.sgh-pwa-btn--ghost {
    background: transparent;
    color: #4b5563;
}

.sgh-pwa-btn:hover {
    filter: brightness(0.96);
}

body.dark-mode .sgh-pwa-install,
body.dark-mode .sgh-pwa-update {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .sgh-pwa-install__copy span,
body.dark-mode .sgh-pwa-update span,
body.dark-mode .sgh-pwa-btn--ghost {
    color: #d1d5db;
}

@media (max-width: 640px) {
    .sgh-pwa-install,
    .sgh-pwa-update {
        flex-wrap: wrap;
        gap: 10px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .sgh-pwa-install__copy,
    .sgh-pwa-update > div {
        min-width: calc(100% - 62px);
    }

    .sgh-pwa-install__actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.sgh-install-page .sgh-pwa-install,.sgh-install-page .sgh-pwa-update{display:none!important}
