/*
 * _buttons.css
 *
 * USED BY:
 *   - bag-empty.html
 *   - bag.html
 *   - customize.html
 *   - home-user-reciept.html
 *   - home.html
 *   - menu.html
 *   - payment.html
 */

.pill {
    display: block;
    padding: 0.6rem 1rem;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius-pill);
    border: 2px solid var(--black);
    background: transparent;
    font-size: var(--font-sm);
}

.pill-nav {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.pill-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--white);
    text-align: left;
    font-weight: 400;
}

.pill-method.active {
    background: var(--navy);
    color: var(--white);
}

.pill-tip {
    background: var(--navy);
    color: var(--white);
    border-radius: 8px;
    flex: 1;
    height: 40px;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-tip.active {
    background: var(--red);
    border-color: var(--red);
}

/* ── Button ──────────────────────────────────────── */
.btn {
    display: block;
    width: 100%;
    padding: 1rem;
    font-weight: 700;
    text-align: center;
    border: none;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: var(--navy);
    cursor: pointer;
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
}

.btn--outline.active,
.form-fields:valid .btn--outline {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn--back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    background: var(--white);
    color: var(--black);
    flex-shrink: 0;
}

/* ── Tap feedback ────────────────────────────────── */
a.pill:active,
.pill.clickable:active,
a.btn:active,
.btn.clickable:active {
    transform: scale(0.97);
    opacity: 0.85;
}

.btn--back:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* ── Badge ───────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    border-radius: var(--radius-pill);
}
