/* MashPOS PWA install prompts */
.mashpos-pwa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
    width: min(340px, calc(100vw - 40px));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid #e5e7eb;
    padding: 20px;
    animation: mashposPwaSlideUp 0.35s ease-out;
}

.mashpos-pwa-float.is-hidden {
    display: none !important;
}

.mashpos-pwa-float-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 8px;
}

.mashpos-pwa-float-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.45;
}

.mashpos-pwa-floatElement {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mashpos-pwa-btn {
    display: block;
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.mashpos-pwa-btn:hover {
    transform: translateY(-1px);
}

.mashpos-pwa-btn-primary {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.mashpos-pwa-btn-secondary {
    background: #9ca3af;
    color: #fff;
}

.mashpos-pwa-dashboard-card {
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.08);
}

.mashpos-pwa-dashboard-card.is-hidden {
    display: none !important;
}

.mashpos-pwa-dashboard-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mashpos-pwa-dashboard-body {
    flex: 1;
    min-width: 180px;
}

.mashpos-pwa-dashboard-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 4px;
}

.mashpos-pwa-dashboard-body p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
}

.mashpos-pwa-dashboard-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@keyframes mashposPwaSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .mashpos-pwa-float {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }
}
