/* ============================================================
   app_box_handle — custom styles
   Only rules NOT already covered by the Insya framework.
   ============================================================ */


/* ── Full-page centering ─────────────────────────────────── */
.bid-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-primary);
    padding: 32px 16px;
    box-sizing: border-box;
}


/* ── Card ────────────────────────────────────────────────── */
.bid-card {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 32px 28px;
    box-sizing: border-box;
    text-align: center;
    gap: 0;
}


/* ── Logo ────────────────────────────────────────────────── */
.bid-logo {
    margin-bottom: 28px;
}

.bid-logo-img {
    height: 42px;
    width: auto;
    display: block;
}


/* ── Section wrapper (desktop/mobile panels) ─────────────── */
.bid-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}


/* ── Text ────────────────────────────────────────────────── */
.bid-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bid-sub {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 280px;
}

.bid-sub-small {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: -6px;
}


/* ── QR wrapper ──────────────────────────────────────────── */
.bid-qr-wrap {
    padding: 14px;
    background: #ffffff;
    border-radius: var(--ins-radius-l, 12px);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* min dimensions so the container is visible before QR loads */
    min-width: 228px;
    min-height: 228px;
}


/* ── Open button ─────────────────────────────────────────── */
.bid-open-btn {
    width: 100%;
    max-width: 300px;
    text-decoration: none;
}


/* ── Store badges ────────────────────────────────────────── */
.bid-store-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.bid-store-btn {
    display: inline-flex;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.18s ease;
}

.bid-store-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.bid-store-btn img {
    height: 40px;
    width: auto;
    display: block;
}


/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .bid-card {
        max-width: 100%;
        padding: 28px 20px 24px;
    }
    .bid-logo-img {
        height: 36px;
    }
}