/* Base + merchant product cards */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background: #f5f5f5;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.brand-logo {
    height: 38px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.navbar-dark .brand-logo,
.bg-dark .brand-logo,
.bg-primary .brand-logo {
    filter: none;
}

.brand-logo--header {
    height: 38px;
    max-width: 140px;
}

.balance-frac {
    font-size: 0.62em;
    font-weight: 600;
}

.brand-logo--platform {
    height: 40px;
    max-width: 160px;
}

.brand-logo--auth {
    height: 64px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.product-card-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-placeholder {
    padding: 1rem;
    text-align: center;
}

.product-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

@media (min-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
}

/* Order / invoice print sheets (screen preview) */
.order-print-sheet,
.invoice-print-sheet {
    max-width: 210mm;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    html,
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .navbar,
    .no-print,
    .alert {
        display: none !important;
    }

    main.container {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .order-print-sheet,
    .invoice-print-sheet {
        max-width: none;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .order-print-sheet .table,
    .invoice-print-sheet .table {
        color: #000;
    }

    .order-print-sheet a,
    .invoice-print-sheet a {
        color: #000;
        text-decoration: none;
    }
}
