/* PWA Install Prompt - Compact Jewellery Theme */
.pwa-install-prompt {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg,
            rgba(20, 15, 10, 0.98) 0%,
            rgba(45, 32, 18, 0.98) 50%,
            rgba(20, 15, 10, 0.98) 100%);
    color: white;
    box-shadow: 0 -3px 20px rgba(212, 175, 55, 0.35);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 14px 14px 0 0;
    border-top: 2px solid rgba(212, 175, 55, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@media (min-width: 769px) {
    .pwa-install-prompt {
        display: none !important;
    }
}

.pwa-install-prompt.active {
    transform: translateY(0);
}

.pwa-inner-wrapper {
    padding: 0.85rem 1rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 10px));
    width: 100%;
}

/* Single row: icon | text | install button | close button */
.pwa-prompt-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

/* App icon */
.pwa-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
}

.pwa-icon i {
    color: white;
    -webkit-text-fill-color: white;
}

.pwa-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 7px;
}

/* Title + subtitle - takes remaining space */
.pwa-content {
    flex: 1;
    min-width: 0;
}

.pwa-content h3 {
    font-size: 0.82rem;
    margin: 0 0 0.1rem 0;
    font-weight: 700;
    color: #d4af37;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-content p {
    font-size: 0.68rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Install button */
.pwa-btn-install {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1000;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 22px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.45);
    white-space: nowrap;
    flex-shrink: 0;
}

.pwa-btn-install:active {
    transform: scale(0.95);
}

.pwa-btn-install i {
    font-size: 0.75rem;
}

/* Close button - inline after install button */
.pwa-btn-close {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 !important;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.pwa-btn-close:active {
    background: rgba(255, 255, 255, 0.2);
}

.pwa-btn-close i {
    font-size: 0.65rem;
}

@media (max-width: 360px) {
    .pwa-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .pwa-content h3 {
        font-size: 0.76rem;
    }

    .pwa-btn-install {
        padding: 0.48rem 0.8rem;
        font-size: 0.74rem;
    }
}

.pwa-mode .pwa-install-prompt {
    display: none !important;
}