/* Smart Banner Styles */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 99999;
    direction: rtl;
    font-family: inherit;
    padding: 15px;
    box-sizing: border-box;
    display: none; /* Hidden by default */
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-banner-icon img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-left: 15px;
}

.pwa-banner-text {
    flex-grow: 1;
    text-align: right;
}

.pwa-banner-text h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.pwa-banner-text p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.pwa-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: 15px;
}

.pwa-btn {
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s;
    text-align: center;
    min-width: 80px;
}

.pwa-btn-install {
    background: #0073aa;
    color: #fff;
}

.pwa-btn-install:hover {
    background: #005177;
}

.pwa-btn-later {
    background: #f0f0f1;
    color: #555;
}

.pwa-btn-later:hover {
    background: #e0e0e1;
}

/* iOS Instructions Modal */
.pwa-ios-instructions {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Show at bottom like iOS sheets */
    padding-bottom: 20px;
}

.pwa-ios-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

.pwa-ios-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.pwa-ios-content p {
    margin: 10px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.pwa-ios-content img {
    vertical-align: middle;
}

/* WoodMart Compatibility */
.woodmart-theme .pwa-install-banner {
    font-family: "IRANSans", "Tahoma", sans-serif;
}
