/*
 * Payment instructions — WooCommerce order-received page.
 * Shown only when payment method is "bacs" (Direct Bank Transfer).
 * Enqueued via hexa_enqueue_assets() only on is_wc_endpoint_url('order-received').
 */

/* ── Section wrapper ───────────────────────────────────────────────────── */
.hx-pay-section {
    margin: 2.5rem 0;
    padding: 2rem 2.5rem 2.25rem;
    background: #ffffff;
    border: 1px solid #e2e2e6;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.hx-pay-heading {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.55rem;
    font-weight: 400;
    color: #0a0a0a;
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.hx-pay-subheading {
    font-size: 0.9rem;
    color: #52525a;
    margin: 0 0 2rem;
    line-height: 1.6;
}

.hx-pay-subheading strong {
    color: #0a0a0a;
    font-weight: 600;
}

/* ── Two-card grid ─────────────────────────────────────────────────────── */
.hx-pay-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ── Individual card ───────────────────────────────────────────────────── */
.hx-pay-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.5rem 1.5rem;
    border: 1px solid #e2e2e6;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    background: #fafafa;
    transition: box-shadow 0.18s ease;
}

.hx-pay-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ── Brand name ─────────────────────────────────────────────────────────── */
.hx-pay-brand {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
    padding-bottom: 1rem;
    width: 100%;
    border-bottom: 2px solid currentColor;
    opacity: 0.9;
}

.hx-pay-card--zelle  .hx-pay-brand { color: #6D1ED4; }
.hx-pay-card--venmo  .hx-pay-brand { color: #008CFF; }

/* ── QR code image ──────────────────────────────────────────────────────── */
.hx-pay-qr {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    margin-bottom: 1.1rem;
    background: #ffffff;
    padding: 6px;
    border: 1px solid #e2e2e6;
}

/* ── Handle ─────────────────────────────────────────────────────────────── */
.hx-pay-handle {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.88rem;
    color: #0a0a0a;
    font-weight: 500;
    margin: 0 0 1.25rem;
    word-break: break-all;
}

/* ── Open App button ─────────────────────────────────────────────────────── */
.hx-pay-btn {
    display: inline-block;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: filter 0.18s ease, transform 0.12s ease;
    margin-top: auto;
    white-space: nowrap;
}

.hx-pay-btn:hover {
    color: #ffffff;
    text-decoration: none;
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.hx-pay-card--zelle  .hx-pay-btn { background: #6D1ED4; }
.hx-pay-card--venmo  .hx-pay-btn { background: #008CFF; }

/* ── Bottom note ─────────────────────────────────────────────────────────── */
.hx-pay-note {
    font-size: 0.8rem;
    color: #71717a;
    margin: 1.75rem 0 0;
    line-height: 1.65;
    text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hx-pay-section {
        padding: 1.5rem 1.25rem 1.5rem;
    }

    .hx-pay-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .hx-pay-qr {
        width: 160px;
        height: 160px;
    }
}
