/**
 * Smart PWA Install Notice Banner Styling
 */

.smart-pwa-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    margin: 0 auto;
    z-index: 999998;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: smartPwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-sizing: border-box;
}

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

.smart-pwa-banner__inner {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    box-sizing: border-box;
}

.smart-pwa-banner__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-pwa-banner__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smart-pwa-banner__content {
    flex: 1 1 auto;
    min-width: 0;
}

.smart-pwa-banner__title {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
}

.smart-pwa-banner__text {
    margin: 0;
    font-size: 12px;
    color: #666666;
    line-height: 1.35;
}

.smart-pwa-banner__action {
    flex: 0 0 auto;
}

.smart-pwa-banner__install-btn {
    background: #fcb800;
    color: #111111;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    display: block;
}

.smart-pwa-banner__install-btn:hover {
    background: #000000;
    color: #ffffff;
}

.smart-pwa-banner__install-btn:active {
    transform: scale(0.97);
}

/* Close button - dedicated flex item at far right, no overlapping */
.smart-pwa-banner__close {
    position: static !important;
    order: 4;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    background: #f1f3f4;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    color: #666666;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
    margin: 0 0 0 4px;
}

.smart-pwa-banner__close:hover {
    background: #e2e4e7;
    color: #111111;
    transform: scale(1.05);
}

.smart-pwa-banner__close:active {
    transform: scale(0.95);
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    .smart-pwa-banner {
        bottom: 75px; /* Sits above sticky mobile bottom bar */
        left: 12px;
        right: 12px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .smart-pwa-banner__inner {
        padding: 10px 12px;
        gap: 8px;
    }

    .smart-pwa-banner__icon {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    .smart-pwa-banner__title {
        font-size: 13px;
    }

    .smart-pwa-banner__text {
        font-size: 11px;
    }

    .smart-pwa-banner__install-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .smart-pwa-banner__close {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}
