/* ============================================================
   BIDA PWA — Install banner
   ============================================================ */

/* Backdrop overlay */
.bida-pwa-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bida-pwa-backdrop--visible {
    opacity: 1;
    pointer-events: auto;
}

/* Banner card — centred modal */
.bida-pwa-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 999999;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28);
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    border-radius: 20px;
    width: calc(100vw - 48px);
    max-width: 420px;
    pointer-events: none;
}

.bida-pwa-banner--visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.bida-pwa-banner--hiding {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    pointer-events: none;
}

/* iOS variant — taller to fit the Share instruction */
.bida-pwa-banner--ios {
    flex-wrap: wrap;
}

/* App icon */
.bida-pwa-banner__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: #92FF57;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bida-pwa-banner__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Text */
.bida-pwa-banner__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.bida-pwa-banner__body strong {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    display: block;
}

.bida-pwa-banner__body span {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* iOS share icon inline */
.bida-pwa-ios-share {
    display: inline-block;
    vertical-align: middle;
    margin: 0 2px;
    stroke: #3b82f6;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Install button */
.bida-pwa-banner__install {
    border: none;
    background: #92FF57;
    color: #111827;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: opacity 0.2s;
}

.bida-pwa-banner__install:active {
    opacity: 0.75;
}

/* Close button */
.bida-pwa-banner__close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    min-width: 32px;
    transition: background 0.2s;
}

.bida-pwa-banner__close:hover {
    background: #e5e7eb;
}

.bida-pwa-banner__close svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}
