/**
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 * We offer the best and most useful modules PrestaShop and modifications
 * for your online store.
 *
 * @author    knowband.com <support@knowband.com>
 * @copyright 2026 Knowband
 * @license   see file: LICENSE.txt
 * @category  PrestaShop Module
 */

/* Inter, SIL Open Font License 1.1 — see views/fonts/OFL.txt.
   Self-hosted rather than a system stack: a system stack renders Segoe UI on
   Windows and SF on macOS, so the spacing below would be tuned for neither.
   Paths are relative to this stylesheet: views/css/ -> views/fonts/ */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/inter-700.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/inter-800.woff2") format("woff2");
}

/* Scoped reset. Every rule is confined to .kb-pc so nothing leaks into the
   merchant theme, and the theme's own resets cannot reach in either.
 *
 * Every element-level reset puts its type selector inside :where() so the
 * rule keeps the specificity of ".kb-pc" alone, (0,1,0).
 *
 * Without :where(), ".kb-pc button" is (0,1,1) and therefore BEATS every
 * single-class component rule such as ".kb-pc-btn" or ".kb-pc-rail-i--on",
 * which are (0,1,0). The reset then silently cancels the background, border
 * and padding of every component rendered as a <button> — the active tool in
 * the rail loses its accent fill, buttons lose their surface, switches lose
 * their track. Nothing reports an error; the page simply renders wrong.
 *
 * At (0,1,0) the reset still beats a theme's bare "button {}" rule at
 * (0,0,1), while tying with our own component classes — and this file is
 * always linked before kb-pc-components.css and kb-pc-designer.css, so on a
 * tie the component wins. That is the behaviour we want in both directions.
 */
.kb-pc,
.kb-pc *,
.kb-pc *::before,
.kb-pc *::after {
    box-sizing: border-box;
}

.kb-pc {
    font-family: var(--kb-pc-font);
    font-size: var(--kb-pc-fs-body);
    line-height: 1.45;
    color: var(--kb-pc-ink);
    background: var(--kb-pc-panel);
    -webkit-font-smoothing: antialiased;
    text-size-adjust: 100%;
}

.kb-pc :where(button, input, select, textarea) {
    font: inherit;
    color: inherit;
    margin: 0;
}

.kb-pc :where(button) {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.kb-pc :where(img, svg) {
    max-width: 100%;
    display: block;
}

.kb-pc :where(p, h1, h2, h3, h4, ul, ol) {
    margin: 0;
    padding: 0;
}

.kb-pc :where(ul, ol) {
    list-style: none;
}

/* --- typography roles --- */
.kb-pc-h {
    font-size: var(--kb-pc-fs-micro);
    text-transform: uppercase;
    letter-spacing: var(--kb-pc-track-caps);
    color: var(--kb-pc-low);
    font-weight: 700;
    margin: 0 0 var(--kb-pc-s3);
}

.kb-pc-label {
    display: block;
    font-size: var(--kb-pc-fs-label);
    color: var(--kb-pc-mid);
    font-weight: 600;
    margin-bottom: var(--kb-pc-s2);
}

.kb-pc-strong {
    font-size: var(--kb-pc-fs-strong);
    font-weight: 700;
}

.kb-pc-num {
    font-variant-numeric: tabular-nums;
}

/* --- focus --- */
.kb-pc :focus-visible {
    outline: 2px solid var(--kb-pc-accent);
    outline-offset: 2px;
    border-radius: var(--kb-pc-r-sm);
}

/* --- motion --- */
@media (prefers-reduced-motion: reduce) {
    .kb-pc *,
    .kb-pc *::before,
    .kb-pc *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
