/* Points (module Loyalty): the block in the summary and the buyer's page of points. A theme restyles them. */
.loyalty-summary {
    border-top: 1px solid var(--line);
    padding: 14px 0;
    font-size: 13px;
}
.loyalty-summary form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}
.loyalty-summary button {
    border: 1px solid var(--ink);
    padding: 7px 12px;
    font-size: 12px;
    background: transparent;
    cursor: pointer;
}
.loyalty-summary button[value=use] {
    background: var(--ink);
    color: var(--paper);
}
.loyalty-summary small,
.loyalty-earn,
.loyalty-guest {
    color: var(--muted);
}
.loyalty-earn,
.loyalty-guest {
    margin: 8px 0 0;
}
.loyalty-guest a {
    text-decoration: underline;
}
.loyalty-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}
.loyalty-card {
    border: 1px solid var(--line);
    padding: 24px;
    display: grid;
    gap: 10px;
    align-content: start;
}
.loyalty-card strong {
    font-size: 56px;
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 500;
}
.loyalty-card strong small {
    font-size: 18px;
    letter-spacing: 0;
}
.loyalty-card p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}
.loyalty-pending {
    color: var(--ink) !important;
}
.loyalty-burn {
    font-size: 13px !important;
}
.loyalty-progress {
    height: 6px;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
}
.loyalty-progress span {
    display: block;
    height: 100%;
    background: var(--ink);
}
.loyalty-levels {
    list-style: none;
    padding: 0;
    margin: 14px 0 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}
.loyalty-levels li {
    border: 1px solid var(--line);
    padding: 14px;
    display: grid;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
}
.loyalty-levels li strong {
    font-size: 26px;
    color: var(--ink);
    font-weight: 500;
}
.loyalty-levels li[aria-current] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}
.loyalty-levels li[aria-current] strong {
    color: var(--paper);
}
.loyalty-rules {
    padding-left: 18px;
    margin: 0 0 30px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
}
.loyalty-rules a {
    color: var(--ink);
    text-decoration: underline;
}
.loyalty-text {
    margin-bottom: 30px;
}
.loyalty-history {
    border-top: 1px solid var(--line);
    margin-top: 12px;
}
.loyalty-entry {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 14px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.loyalty-date,
.loyalty-what small {
    color: var(--muted);
    font-size: 12px;
}
.loyalty-what small {
    display: block;
}
.loyalty-what a {
    text-decoration: underline;
}
.loyalty-entry strong {
    font-weight: 600;
}
.loyalty-entry .is-minus {
    color: var(--muted);
}
.loyalty-entry.is-waiting strong {
    opacity: .55;
}
@media (max-width: 760px) {
    .loyalty-cards {
        grid-template-columns: 1fr;
    }
    .loyalty-card strong {
        font-size: 44px;
    }
    .loyalty-entry {
        grid-template-columns: 1fr auto;
    }
    .loyalty-date {
        grid-column: 1 / -1;
    }
}
/* /loyalty/ — the rules for everyone. */
.loyalty-hero {
    padding: 20px 0 40px;
    max-width: 760px;
}
.loyalty-hero h1 {
    font-size: clamp(40px, 6vw, 82px);
    line-height: 1.02;
    margin: 14px 0 22px;
}
.loyalty-hero p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 26px;
}
.loyalty-tiers {
    list-style: none;
    margin: 0 0 50px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.loyalty-tiers li {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 26px 22px;
    display: grid;
    gap: 10px;
}
.loyalty-tiers strong {
    font-size: 64px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -.05em;
}
.loyalty-tiers em {
    font-size: .45em;
}
.loyalty-tiers p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.loyalty-details {
    max-width: 760px;
    padding-bottom: 50px;
}
.loyalty-details h2 {
    margin-bottom: 18px;
}
