.wm-page {
  --wm-primary: #1769aa;
  --wm-primary-dark: #0f4f84;
  --wm-border: #d9dee3;
  --wm-muted: #66717c;
  --wm-bg: #f7f8fa;
  color: #1f2933;
}

.wm-card,
.wm-step {
  background: #fff;
  border: 1px solid var(--wm-border);
  border-radius: .5rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.wm-card h2,
.wm-step h2 { font-size: 1.25rem; margin: 0 0 .35rem; }
.wm-intro { margin-bottom: 1.25rem; }
.wm-empty { color: var(--wm-muted); margin: 0; }

.wm-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.wm-progress li {
  align-items: center;
  background: #edf0f2;
  border-radius: .375rem;
  color: var(--wm-muted);
  display: flex;
  font-weight: 600;
  gap: .6rem;
  padding: .75rem;
}

.wm-progress li span,
.wm-step-heading > span {
  align-items: center;
  background: #8a949e;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 2rem;
  height: 2rem;
  justify-content: center;
}

.wm-progress li.is-active { background: #e8f2fb; color: var(--wm-primary-dark); }
.wm-progress li.is-active span,
.wm-progress li.is-complete span,
.wm-step-heading > span { background: var(--wm-primary); }
.wm-progress li.is-complete { color: #26734d; }
.wm-progress li.is-complete span { background: #26734d; }

.wm-step-heading { align-items: flex-start; display: flex; gap: .8rem; margin-bottom: 1.25rem; }
.wm-step-heading p { color: var(--wm-muted); margin: 0; }
.wm-fields-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wm-fields-grid label,
.wm-comment { display: flex; flex-direction: column; font-weight: 600; gap: .4rem; }
.wm-fields-grid select,
.wm-comment textarea {
  background: #fff;
  border: 1px solid #aeb7c0;
  border-radius: .25rem;
  color: #1f2933;
  min-height: 2.75rem;
  padding: .65rem .75rem;
  width: 100%;
}
.wm-fields-grid select:focus,
.wm-comment textarea:focus { border-color: var(--wm-primary); box-shadow: 0 0 0 3px rgba(23, 105, 170, .18); outline: none; }

.wm-actions { display: flex; justify-content: flex-end; margin-top: 1.25rem; }
.wm-actions--split { justify-content: space-between; }
.wm-products { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.wm-product {
  align-items: center;
  background: var(--wm-bg);
  border: 1px solid var(--wm-border);
  border-radius: .375rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.25rem 6rem minmax(0, 1fr) minmax(7rem, 9rem);
  padding: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wm-product.is-selected { border-color: var(--wm-primary); box-shadow: 0 0 0 2px rgba(23, 105, 170, .12); }
.wm-product-image { align-items: center; display: flex; height: 6rem; justify-content: center; width: 6rem; }
.wm-product-image img { border-radius: .25rem; height: 6rem; object-fit: contain; width: 6rem; }
.wm-product-image-placeholder { align-items: center; background: #e7ebef; border-radius: .25rem; color: var(--wm-muted); display: flex; height: 6rem; justify-content: center; width: 6rem; }
.wm-product-image-placeholder .material-icons { font-size: 2rem; }
.wm-product-info { display: flex; flex-direction: column; min-width: 0; }
.wm-product-info strong { overflow-wrap: anywhere; }
.wm-product-info span { color: var(--wm-muted); font-size: .9rem; }
.wm-product-checkbox { align-items: center; cursor: pointer; display: flex; justify-content: center; margin: 0; }
.wm-product-checkbox input { accent-color: var(--wm-primary); cursor: pointer; height: 1rem; margin: 0; min-height: 0; padding: 0; width: 1rem; }
.wm-product-checkbox input:disabled { cursor: not-allowed; }
.wm-product-controls { justify-self: end; min-width: 7rem; width: 100%; }
.wm-product-quantity { width: 100%; }
.wm-product-quantity label { display: flex; flex-direction: column; font-weight: 600; gap: .4rem; }
.wm-product-quantity select { background: #fff; border: 1px solid #aeb7c0; border-radius: .25rem; min-height: 2.75rem; padding: .55rem .7rem; width: 100%; }
.wm-product-quantity span { color: var(--wm-muted); font-weight: 600; }
.wm-visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.wm-comment small { align-self: flex-end; color: var(--wm-muted); }
.wm-form-error { background: #fff0f0; border-left: 4px solid #b42318; color: #8a1c13; padding: .75rem; }

.wm-notice { border-left: 4px solid; border-radius: .25rem; padding: .85rem 1rem; }
.wm-notice--success { background: #edf8f2; border-color: #26734d; }
.wm-notice--warning { background: #fff8e6; border-color: #b7791f; }
.wm-notice--info { background: #edf5fc; border-color: var(--wm-primary); }
.wm-legal-note { color: var(--wm-muted); font-size: .9rem; }
.wm-return-instructions { margin-top: 1.5rem; }
.wm-return-instructions h3 { font-size: 1.15rem; margin-bottom: .65rem; }
.wm-instructions-frame {
  background: #fff;
  border: 1px solid #aeb7c0;
  border-radius: .25rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .08);
  max-height: 16rem;
  min-height: 8rem;
  overflow: auto;
  padding: 1rem;
}
.wm-instructions-frame:focus { border-color: var(--wm-primary); box-shadow: 0 0 0 3px rgba(23, 105, 170, .18); outline: none; }
.wm-instructions-acknowledgement { align-items: flex-start; cursor: pointer; display: flex; font-weight: 700; gap: .65rem; margin: 1rem 0 0; }
.wm-instructions-acknowledgement input { accent-color: var(--wm-primary); flex: 0 0 auto; height: 1rem; margin: .2rem 0 0; min-height: 0; padding: 0; width: 1rem; }
.wm-instructions-acknowledgement span { line-height: 1.4; }

.wm-review,
.wm-summary { display: grid; gap: .75rem; }
.wm-review > div,
.wm-summary > div { border-bottom: 1px solid var(--wm-border); display: grid; gap: 1rem; grid-template-columns: minmax(10rem, 25%) 1fr; padding: .75rem 0; }
.wm-review dt,
.wm-summary dt { font-weight: 700; }
.wm-review dd,
.wm-summary dd { margin: 0; white-space: pre-wrap; }

.wm-table-wrap { overflow-x: auto; }
.wm-table { border-collapse: collapse; width: 100%; }
.wm-table th,
.wm-table td { border-bottom: 1px solid var(--wm-border); padding: .75rem; text-align: left; vertical-align: middle; }
.wm-order-grid { display: grid; gap: .75rem; }
.wm-order-card { align-items: center; border: 1px solid var(--wm-border); border-radius: .375rem; display: flex; justify-content: space-between; padding: 1rem; }
.wm-order-card > div { display: flex; flex-direction: column; }
.wm-order-card span { color: var(--wm-muted); }

.wm-status { background: #e7ebef; border-radius: 999px; display: inline-block; font-size: .85rem; font-weight: 700; padding: .35rem .65rem; }
.wm-status--approved,
.wm-status--received,
.wm-status--refunded { background: #dff3e8; color: #1e6844; }
.wm-status--rejected,
.wm-status--cancelled { background: #fde8e6; color: #98251b; }
.wm-status--under_review,
.wm-status--awaiting_return { background: #fff0cb; color: #7c5200; }
.wm-request-header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 1rem; }
.wm-request-header > div { display: flex; flex-direction: column; }
.wm-item-list { display: grid; gap: .5rem; list-style: none; padding: 0; }
.wm-item-list li { background: var(--wm-bg); display: flex; flex-wrap: wrap; gap: .75rem; padding: .75rem; }
.wm-comment-display { white-space: pre-wrap; }
.wm-back-link { display: inline-block; margin-bottom: 1rem; }
.wm-timeline { border-left: 2px solid var(--wm-border); list-style: none; margin-left: .5rem; padding-left: 1.25rem; }
.wm-timeline li { margin-bottom: 1rem; position: relative; }
.wm-timeline li::before { background: var(--wm-primary); border-radius: 50%; content: ''; height: .7rem; left: -1.65rem; position: absolute; top: .35rem; width: .7rem; }
.wm-timeline span { color: var(--wm-muted); display: block; font-size: .85rem; }

.wm-lookup-intro { margin-bottom: 2rem; }
.wm-lookup-intro h2 { font-size: 1.5rem; margin-bottom: .75rem; }
.wm-lookup-intro h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.wm-lookup-intro ol { padding-left: 1.25rem; }
.wm-lookup-card { background: var(--wm-bg); }
.wm-lookup-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wm-lookup-grid label { display: flex; flex-direction: column; font-weight: 600; gap: .5rem; }
.wm-lookup-grid input {
  background: #fff;
  border: 1px solid #aeb7c0;
  border-radius: .25rem;
  min-height: 3rem;
  padding: .7rem .8rem;
  width: 100%;
}
.wm-lookup-grid input:focus { border-color: var(--wm-primary); box-shadow: 0 0 0 3px rgba(23, 105, 170, .18); outline: none; }
.wm-lookup-submit { align-items: center; display: flex; gap: .4rem; justify-content: center; margin-top: 1rem; width: 100%; }
.wm-lookup-submit .material-icons { font-size: 1.2rem; }
.withdrawalmanager-account-link { display: inline-flex; gap: .4rem; }
@media (max-width: 767px) {
  .wm-card,
  .wm-step { padding: 1rem; }
  .wm-progress { grid-template-columns: 1fr; }
  .wm-progress li:not(.is-active) { display: none; }
  .wm-fields-grid,
  .wm-lookup-grid { grid-template-columns: 1fr; }
  .wm-product { align-items: center; grid-template-columns: 1rem 5rem minmax(0, 1fr); }
  .wm-product-image,
  .wm-product-image img,
  .wm-product-image-placeholder { height: 5rem; width: 5rem; }
  .wm-product-controls { grid-column: 3; justify-self: end; min-width: 7rem; width: auto; }
  .wm-order-card { align-items: stretch; flex-direction: column; }
  .wm-review > div,
  .wm-summary > div { grid-template-columns: 1fr; gap: .25rem; }
  .wm-table thead { display: none; }
  .wm-table,
  .wm-table tbody,
  .wm-table tr,
  .wm-table td { display: block; width: 100%; }
  .wm-table tr { border: 1px solid var(--wm-border); margin-bottom: .75rem; }
  .wm-table td { border-bottom: 1px solid #edf0f2; padding-left: 45%; position: relative; }
  .wm-table td::before { content: attr(data-label); font-weight: 700; left: .75rem; position: absolute; width: 40%; }
}

.wm-ack-note {
  color: var(--wm-muted);
  margin: .5rem 0 1rem;
}

.wm-lookup-grid small {
  color: var(--wm-muted);
  display: block;
  font-weight: normal;
  margin-top: .35rem;
}
