/*
 * CMS content spacing (spec §6.6): tight, Quill-native compact spacing, kept in
 * parity with the editor (public/assets/css/editor-content.css). Scoped to the
 * CMS content wrappers (.cms-body — templates/page/show.php, news/show.php) so
 * the rest of the storefront typography (theme p / h1-h6 in style.css) is
 * unchanged. Paragraphs rely on line-height for the single-line gap; a
 * deliberate blank line (empty <p>) is how the owner adds space.
 *
 * .cms-body p / h1-h6 are class+tag (0,1,1), and custom.css loads after
 * style.css, so these override the theme's global tag-level margins.
 */
.cms-body p {
    margin: 0;
}

.cms-body h1,
.cms-body h2,
.cms-body h3,
.cms-body h4,
.cms-body h5,
.cms-body h6 {
    margin: 0;
}

/*
 * Checkout "Your order" summary (#order-summary): use a fixed two-column layout
 * so a long label like the Tax row's "Calculated with shipping" wraps inside its
 * cell instead of widening the table past its column and being clipped. Scoped to
 * the summary table by id — global table styles are untouched.
 */
#order-summary {
    table-layout: fixed;
    width: 100%;
}

#order-summary th,
#order-summary td {
    white-space: normal;
    overflow-wrap: anywhere;
}

/*
 * Admin forms: the theme's global `form { display: flex; flex-wrap: wrap }` is
 * meant for Bason `.form-block` forms (whose children are width:100% and stack).
 * The admin's plain <form>s aren't .form-block, so they became flex rows — a
 * SAVE button ended up beside a table/fields and align-items:stretch blew it up
 * to the container's full height. Restore normal block flow for admin forms;
 * intentional flex forms (the .row-based mail-test / login forms) keep theirs.
 * Scoped to .admin-ui (admin layout only), so storefront forms are untouched.
 */
.admin-ui form:not(.row) {
    display: block;
}
