/* Rider vouchers — V21.53.

   Three places: the code field on the payment portal, the rider's own list on
   the dashboard, and the admin tab. They share the brass-on-cream language the
   rest of the site already uses; a discount is good news, not an alert, so
   nothing here is green or red unless something actually went wrong. */

/* ===================================================== the payment portal */

.voucher-box2153 {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #ab85483b;
  border-radius: 14px;
  background: #fffaf1;
}

.voucher-head2153 small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #a17b40;
}

.voucher-head2153 p {
  margin: 6px 0 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #6f6558;
}

.voucher-entry2153 {
  display: flex;
  gap: 8px;
}

.voucher-entry2153 input {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #cdbf9f;
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #292116;
}

.voucher-entry2153 input:focus-visible {
  outline: 2px solid #a17b40;
  outline-offset: 1px;
}

.voucher-check2153 {
  flex: none;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #ab8548;
  border-radius: 9px;
  background: transparent;
  color: #6c5222;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.voucher-check2153:hover:not(:disabled) { background: #a17b40; color: #fffaf1; }
.voucher-check2153:disabled { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------- the rider's own codes */

.voucher-mine2153 { margin-top: 12px; }

.voucher-mine2153 > small {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9c7138;
}

.voucher-mine2153 > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.voucher-chip2153 {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 12px;
  border: 1px dashed #c0a173;
  border-radius: 999px;
  background: #fffdf8;
  font: inherit;
  cursor: pointer;
}

.voucher-chip2153:hover:not(:disabled) { border-style: solid; background: #fdf4e4; }
.voucher-chip2153 b { font-size: 12px; letter-spacing: .06em; color: #6c5222; }
.voucher-chip2153 span { font-size: 11px; color: #8a7f6d; }

/* --------------------------------------------------------- what it is worth */

.voucher-preview2153 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 11px;
  background: #f3e7cf;
}

.voucher-preview2153 b { display: block; font-size: 13px; color: #4a3a18; }
.voucher-preview2153 span { display: block; margin-top: 4px; font-size: 12px; color: #6f6558; }
.voucher-preview2153 strong { color: #2f6b45; font-weight: 700; }
.voucher-apply2153 { flex: none; min-height: 42px; }

/* -------------------------------------------------------------- applied */

.voucher-box2153.is-applied {
  border-color: #9ec2a8;
  background: #f1f7f1;
}

.voucher-applied2153 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.voucher-applied2153 small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #3a6b4a;
}

.voucher-applied2153 b {
  display: block;
  margin: 5px 0 3px;
  font-size: 15px;
  letter-spacing: .08em;
  color: #24402d;
}

.voucher-applied2153 > div > div > span { font-size: 12px; color: #4d5b4f; }
.voucher-applied2153 strong { color: #2f6b45; font-weight: 700; }

.voucher-remove2153 {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #9ec2a8;
  border-radius: 9px;
  background: transparent;
  color: #3a6b4a;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.voucher-remove2153:hover:not(:disabled) { background: #3a6b4a; color: #f1f7f1; }
.voucher-remove2153:disabled { opacity: .5; cursor: progress; }

.voucher-problem2153 {
  margin: 12px 0 0;
  padding: 10px 13px;
  border-left: 3px solid #a4553c;
  border-radius: 0 8px 8px 0;
  background: #fbf1ed;
  font-size: 12.5px;
  line-height: 1.6;
  color: #7d3f2d;
}

/* ====================================================== the rider dashboard */

.rider-vouchers2153 .voucher-intro2153 {
  margin: 14px 0 0;
  max-width: 68ch;
  font-size: 12.5px;
  line-height: 1.7;
}

.rider-vouchers2153 .voucher-state2153 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid #ab85483b;
  border-radius: 14px;
  background: #fffaf1;
  color: #6f6558;
  font-size: 12.5px;
  line-height: 1.65;
}

.rider-vouchers2153 .voucher-state2153 p { margin: 0; flex: 1 1 260px; }
.rider-vouchers2153 .voucher-state2153.is-waiting { border-left: 3px solid #a17b40; background: #fdf6e8; }

.voucher-grid2153 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 12px;
  margin-top: 20px;
}

.voucher-card2153 {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #ab85483b;
  border-radius: 18px;
  background: #fffaf1;
}

/* A level benefit is the rarer thing, so it gets the deeper paper. */
.voucher-card2153.is-reward {
  border-color: #a17b4066;
  background: linear-gradient(135deg, #fdf4e2, #fffaf1 62%);
}

.voucher-card-value2153 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 12px 6px;
  border-right: 1px dashed #c8b083;
  text-align: center;
}

.voucher-card-value2153 b {
  font-family: var(--font-display, Georgia, serif);
  font-size: 19px;
  line-height: 1.15;
  color: #6c5222;
  overflow-wrap: anywhere;
}

.voucher-card-value2153 small {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #9c7138;
  line-height: 1.4;
}

.voucher-card-copy2153 h3 {
  margin: 0 0 5px;
  font-family: var(--font-display, Georgia, serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.25;
}

.voucher-card-copy2153 p {
  margin: 0 0 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #786b5c;
}

.voucher-terms2153 {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.voucher-terms2153 li {
  font-size: 10px;
  color: #8a7f6d;
}

.voucher-terms2153 li + li::before {
  content: "·";
  margin-right: 10px;
  color: #c8b083;
}

.voucher-code2153 {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding: 9px 13px;
  border: 1px dashed #c0a173;
  border-radius: 9px;
  background: #fffdf8;
  font: inherit;
  cursor: pointer;
}

.voucher-code2153:hover { border-style: solid; background: #fdf4e4; }

.voucher-code2153 code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: .1em;
  color: #4a3a18;
  overflow-wrap: anywhere;
}

.voucher-code2153 span {
  flex: none;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9c7138;
}

.voucher-footnote2153 {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  color: #8a7f6d;
}

/* ================================================================== admin */

.voucher-admin-head2153 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.voucher-admin-head2153 h2 { margin: 6px 0; }
.voucher-admin-head2153 p { max-width: 70ch; font-size: 13px; line-height: 1.65; }

.voucher-admin-actions2153 { display: flex; gap: 8px; flex-wrap: wrap; }

.voucher-missing2153 {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 3px solid #a17b40;
  background: rgba(168, 135, 80, .1);
  font-size: 13px;
  line-height: 1.6;
}

.voucher-stats2153 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.voucher-stats2153 > div {
  padding: 14px 16px;
  border: 1px solid #e2dcd2;
  border-radius: 12px;
  background: #f7f4ee;
}

.voucher-stats2153 b {
  display: block;
  font-family: var(--font-display, Georgia, serif);
  font-size: 22px;
  color: #2f2619;
}

.voucher-stats2153 span { font-size: 11px; color: #6d665b; }

/* ------------------------------------------------------------- the editor */

.voucher-editor2153 {
  margin-bottom: 22px;
  border: 1px solid #e2dcd2;
  border-radius: 14px;
  background: #fffdf8;
  overflow: hidden;
}

.voucher-editor-bar2153 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e2dcd2;
  background: #f7f4ee;
}

.voucher-editor-bar2153 > div { display: flex; gap: 8px; }
.voucher-editor-bar2153 small { font-weight: 400; color: #6d665b; }

.voucher-editor-grid2153 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  padding: 20px;
}

.voucher-field2153 small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.5;
  color: #6d665b;
}

.voucher-field2153 input[type="checkbox"] { width: 16px; height: 16px; margin-right: 8px; }
.voucher-reward2153 > span { display: flex; align-items: center; }
.voucher-description2153 { grid-column: 1 / -1; }

/* --------------------------------------------------------------- the list */

.voucher-filters2153 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.voucher-filters2153 input { flex: 1 1 220px; min-width: 0; }
.voucher-filters2153 span { font-size: 12px; color: #6d665b; }

.voucher-rows2153 { display: grid; gap: 10px; }

.voucher-row2153 {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e2dcd2;
  border-radius: 14px;
  background: #fffdf8;
}

.voucher-row2153.is-paused { opacity: .74; }
.voucher-row2153.is-ended { opacity: .55; }

.voucher-row-value2153 {
  text-align: center;
  padding-right: 12px;
  border-right: 1px dashed #d9cdb8;
}

.voucher-row-value2153 b {
  display: block;
  font-family: var(--font-display, Georgia, serif);
  font-size: 17px;
  color: #6c5222;
  overflow-wrap: anywhere;
}

.voucher-row-value2153 small {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #9c7138;
}

.voucher-row-meta2153 {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 10.5px;
  color: #6d665b;
}

.voucher-status2153 {
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(168, 135, 80, .16);
  color: #6c5222;
}

.voucher-status2153.is-paused { background: rgba(76, 107, 138, .14); color: #3c5a78; }
.voucher-status2153.is-ended { background: rgba(120, 112, 100, .16); color: #5b544a; }

.voucher-row-copy2153 h3 { margin: 6px 0 4px; font-size: 16px; }

.voucher-row-copy2153 code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  color: #9c7138;
}

.voucher-row-actions2153 { display: flex; flex-wrap: wrap; gap: 6px; }

.voucher-empty2153 {
  padding: 30px 16px;
  text-align: center;
  color: #6d665b;
  font-size: 13px;
}

/* ---------------------------------------------------------- redemptions */

.voucher-usage2153 { margin-top: 26px; }
.voucher-usage2153 h3 { margin-bottom: 12px; }

.voucher-usage-list2153 { display: grid; gap: 6px; }

.voucher-usage-list2153 > div {
  display: grid;
  grid-template-columns: 110px 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid #e2dcd2;
  border-radius: 10px;
  background: #fffdf8;
  font-size: 12px;
}

.voucher-usage-list2153 code { font-size: 11px; letter-spacing: .08em; color: #9c7138; }
.voucher-usage-list2153 b { color: #2f6b45; }
.voucher-usage-list2153 small { color: #6d665b; font-size: 10.5px; }

.voucher-top2153 { margin-top: 12px; font-size: 12px; color: #6d665b; }

/* ================================================================= mobile */

@media (max-width: 760px) {
  .voucher-card2153 { grid-template-columns: 78px minmax(0, 1fr); }
  .voucher-row2153 { grid-template-columns: 78px minmax(0, 1fr); }
  .voucher-row-actions2153 { grid-column: 1 / -1; }
  .voucher-row-actions2153 .table-action { flex: 1 1 calc(33% - 6px); }
  .voucher-usage-list2153 > div { grid-template-columns: 1fr 1fr; }
  .voucher-entry2153 { flex-wrap: wrap; }
  .voucher-entry2153 input { flex: 1 1 100%; }
  .voucher-check2153 { flex: 1 1 100%; }
  .voucher-apply2153 { width: 100%; }
}
