/* Speedy Shop points: the admin Points page and the shopper labels in the web shop. */
.sp-root { --sp-line: #e4e7e5; --sp-muted: #52655c; max-width: 1180px; color: #192921; }
.sp-root :is(button,input,select):focus-visible { outline: 2px solid #006a4c; outline-offset: 3px; }
.sp-root h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.sp-root h3 { margin: 0 0 12px; font-size: 16px; }
.sp-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.sp-heading h3 { margin: 0; }
.sp-note { margin: 4px 0 0; color: var(--sp-muted); font-size: 13px; }
.sp-message { margin: 0; }
.sp-message:not(:empty) { margin: 0 0 14px; padding: 10px 13px; border-radius: 10px; background: #e9f3ee; color: #1f5a3c; font-size: 13px; }
.sp-message.sp-error:not(:empty) { background: #f1f2f3; color: var(--red, #c2184b); font-weight: 650; }
.sp-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.sp-card { padding: 18px; border: 1px solid var(--sp-line); border-radius: 20px; background: #fff; }
.sp-card + .sp-card { margin-top: 16px; }
.sp-grid .sp-card + .sp-card { margin-top: 0; }
.sp-balance p { margin: 0; color: var(--sp-muted); font-size: 13px; font-weight: 650; }
.sp-balance strong { display: block; margin: 8px 0 4px; font-size: 34px; letter-spacing: -.02em; color: var(--action-text, #00805c); }
.sp-balance strong span { font-size: 15px; color: var(--sp-muted); }
.sp-balance small { color: var(--sp-muted); font-size: 13px; }
.sp-form { display: grid; gap: 14px; }
.sp-form h3 { margin: 0; }
.sp-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.sp-span { grid-column: 1/-1; }
.sp-root label { display: grid; gap: 6px; min-width: 0; color: #253a2f; font-size: 12px; font-weight: 650; }
.sp-root label small { color: var(--sp-muted); font-weight: 400; }
.sp-root input:not([type="checkbox"]) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; border: 1px solid #ccd6cf; border-radius: 10px; background: #fff; color: #192921; font: inherit; font-size: 14px; font-weight: 400; padding: 9px 12px; }
.sp-root .sp-suffix { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.sp-suffix b { color: var(--sp-muted); font-weight: 650; }
.sp-root .sp-toggle { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; text-align: start; padding: 12px; border: 1px solid var(--sp-line); border-radius: 12px; }
.sp-toggle input { flex: none; width: 20px; height: 20px; accent-color: var(--action, #00c897); }
.sp-toggle strong, .sp-toggle small { display: block; }
.sp-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.sp-actions .sp-note { flex: 1; margin: 0; }
.sp-root .button { white-space: nowrap; }
.sp-search { display: flex; align-items: end; gap: 10px; margin-bottom: 12px; }
.sp-search label { flex: 1; max-width: 420px; }
.sp-list, .sp-history { display: grid; gap: 8px; }
.sp-customer { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 12px 14px; border: 1px solid var(--sp-line); border-radius: 13px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sp-customer:hover { border-color: #cfd6d1; }
.sp-customer span { display: grid; gap: 2px; min-width: 0; }
.sp-customer small { color: var(--sp-muted); font-size: 12px; }
.sp-customer-points { justify-items: end; text-align: right; }
.sp-customer-points strong { color: var(--action-text, #00805c); font-size: 18px; }
.sp-entry { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--sp-line); }
.sp-entry:last-child { border-bottom: 0; }
.sp-entry > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sp-entry span { display: grid; gap: 2px; min-width: 0; }
.sp-entry small { color: var(--sp-muted); font-size: 12px; }
.sp-entry > strong { flex: none; font-variant-numeric: tabular-nums; }
.sp-plus { color: var(--action-text, #00805c); }
.sp-minus { color: #33423b; }
.sp-tag { flex: none; min-width: 74px; padding: 3px 8px; border-radius: 4px; background: #5f6d66; color: #fff; font-size: 11px; font-weight: 750; text-align: center; }
.sp-tag-earn, .sp-tag-refund { background: var(--action-text, #00805c); }
.sp-tag-adjust { background: #18231f; }
.sp-empty { margin: 0; padding: 20px; border: 1px dashed #cfd6d1; border-radius: 13px; color: var(--sp-muted); font-size: 13px; }
.sp-more { display: flex; justify-content: center; margin-top: 12px; }
/* Shopper-side labels inside the web shop. */
.shop-earn { margin: 0; color: var(--action-text, #00805c); font-size: 13px; font-weight: 700; }
.shop-body .shop-points-use { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; text-align: start; padding: 12px; border: 1px solid #e4e7e5; border-radius: 12px; }
.shop-points-use input { flex: none; width: 20px; height: 20px; accent-color: var(--action, #00c897); }
.shop-points-use strong, .shop-points-use small { display: block; }
.shop-points-use small { color: #52655c; font-weight: 400; }
.shop-order-points { margin: 4px 0 0; color: var(--action-text, #00805c); font-size: 12px; font-weight: 650; }
@media (max-width: 760px) {
  .sp-grid, .sp-fields { grid-template-columns: minmax(0,1fr); }
  .sp-search { align-items: stretch; flex-direction: column; }
  .sp-customer { align-items: flex-start; flex-direction: column; }
  .sp-customer-points { justify-items: start; text-align: left; }
}
