/*
 * eSupply Canada — Global Button Classes
 *
 * .btn-primary  — red fill, white text  (primary action)
 * .btn-secondary — white fill, red border + red text  (secondary/outline action)
 * .btn-block    — modifier: full-width
 *
 * Apply to any <a>, <button>, <asp:Button>, or <asp:LinkButton>.
 * For integrated UI buttons (search bars, qty steppers) keep their
 * component-level classes; this file targets standalone CTA buttons only.
 */

/* ── Shared base ────────────────────────────────────── */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

/* <input type="submit"> does not support inline-flex reliably */
input.btn-primary,
input.btn-secondary {
    display: inline-block;
    text-align: center;
}

/* ── Primary — red fill ─────────────────────────────── */
.btn-primary {
    background: #ec2426 !important;
    color: #fff !important;
    border-color: #ec2426 !important;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #c7202a !important;
    border-color: #c7202a !important;
    color: #fff !important;
    text-decoration: none;
}

/* ── Secondary — red outline ────────────────────────── */
.btn-secondary {
    background: #fff;
    color: #ec2426;
    border-color: #ec2426;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: #fef2f2;
    color: #c7202a;
    border-color: #c7202a;
    text-decoration: none;
}

/* ── Full-width modifier ────────────────────────────── */
.btn-block {
    width: 100%;
    display: flex;
}

input.btn-block {
    display: block;
}
