/* ═══════════════════════════════════════════════════════
   reset.css — CSS reset + normalize for all QR Merchant pages
   Loaded first in every layout before any other stylesheet.
   ═══════════════════════════════════════════════════════ */

/* 1. Box model — apply universally */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2. Remove UA default margin + padding */
* {
    margin: 0;
    padding: 0;
}

/* 3. HTML root
   • line-height: 1.15 — normalize discrepancy in all browsers
   • -webkit-text-size-adjust — prevent iOS Safari from inflating
     font sizes when device orientation changes
   • tab-size — consistent tab rendering (Firefox needs -moz-) */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust:    100%;
    text-size-adjust:         100%;
    -moz-tab-size: 4;
    tab-size:      4;
}

/* 4. Body
   • -webkit-font-smoothing — sub-pixel → grayscale AA on macOS/iOS
     (makes text crisper and more consistent with design intent)
   • -moz-osx-font-smoothing — same fix for Firefox on macOS */
body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing:  antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 5. Media defaults
   • display: block — removes the baseline gap under inline images
   • max-width: 100% — prevents images from overflowing their container */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* 6. Form elements — inherit font from body instead of UA default
   (UA renders inputs in Times New Roman in some browsers) */
input, button, textarea, select, optgroup {
    font: inherit;
    color: inherit;
}

/* 7. Cursor on buttons — normalize across browsers */
button {
    cursor: pointer;
}

/* 8. Text overflow — prevent long words from breaking layouts */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* 9. HR — normalize height + color inheritance across browsers */
hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

/* 10. Abbreviation — consistent underline style */
abbr[title] {
    -webkit-text-decoration: underline dotted;
    text-decoration:         underline dotted;
}

/* 11. Code / pre — consistent monospace stack + normalize font-size */
code, kbd, samp, pre {
    font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 1em;
}

/* 12. Small */
small { font-size: 80%; }

/* 13. Sub / sup — prevent them from affecting line-height */
sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sub { bottom: -0.25em; }
sup { top:    -0.5em; }

/* 14. Tables — remove spacing between cells */
table {
    text-indent:    0;
    border-color:   inherit;
    border-collapse: collapse;
}

/* 15. Fieldset / legend — normalize cross-browser */
fieldset { border: none; }
legend   { padding: 0; }

/* 16. Progress — normalize vertical alignment in Chrome */
progress { vertical-align: baseline; }

/* 17. Summary — Safari ignores display:list-item by default */
summary { display: list-item; }
