/*
 * Keeps the legacy "Shoppers" theme (css/style.css, built for Bootstrap 4.1)
 * looking the same on Bootstrap 5.3. Loaded after style.css.
 *
 * Only differences that change the look are covered here. Markup is written
 * with Bootstrap 5 classes (ms-*, me-*, ratio, data-bs-*, w-100 …) as pages
 * are ported, so no class aliases are needed.
 */

/* Bootstrap 5 adds a 1320px container at ≥1400px; the site was designed for 1140px. */
@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1140px;
    }
}

/* Bootstrap 5 makes the font-family a CSS variable; keep the theme's Rubik. */
:root {
    --bs-body-font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-weight: 300;
    --bs-body-line-height: 1.7;
    --bs-body-color: #8c92a0;
}

/* Bootstrap 5 underlines links; the theme never did. */
a {
    text-decoration: none;
}

/* Bootstrap 4's form-group spacing, still used by the ported forms. */
.form-group {
    margin-bottom: 1rem;
}

/* Bootstrap 5 labels have no bottom margin by default. */
label {
    margin-bottom: .5rem;
}

/* The theme's sticky navbar has z-index 1999, above Bootstrap's modals
   (1055), so it covered the top of every popup. Keep popups on top. */
.modal-backdrop { z-index: 2040; }
.modal { z-index: 2050; }

/* Content pages from the admin (terms, privacy policy). */
.page-content { color: #333333; text-align: justify; }
.page-content h2 { font-size: 1.4rem; color: #000; margin: 2rem 0 1rem; }
.page-content h3 { font-size: 1.15rem; color: #000; margin: 1.5rem 0 .75rem; }
.page-content ol, .page-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content li { margin-bottom: .6rem; }
