:root {
  --color-bg: #f6f8fa;
  --color-surface: #ffffff;
  --color-text: #333333;
  --color-text-muted: #737373;
  --color-border: #e6e6e6;
  --color-border-strong: #cccccc;
  --color-primary: #0d61ab;
  --color-primary-hover: #0e75d0;
  --shadow-soft: 0 16px 40px rgba(30, 41, 59, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  margin: 0;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 40px;
}

h2 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 16px;
  text-transform: uppercase;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 24px;
}

.returns-body {
  background: var(--color-bg);
}

.returns-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  min-height: 100vh;
}

.returns-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  align-content: start;
  gap: 24px;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 24px 16px;
}

.returns-sidebar-copy {
  display: grid;
  gap: 6px;
  padding: 0 4px;
}

.returns-sidebar-copy h1 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 30px;
}

.reason-list {
  display: grid;
  gap: 10px;
}

.alv-radio-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 300px;
  min-height: 52px;
  border: 1px solid #7e93b2;
  border-radius: 4px;
  background: #ffffff;
  padding: 16px 20px;
  color: #333333;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
}

.alv-radio-control {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #cccccc;
  border-radius: 999px;
  background: #ffffff;
}

.reason-option.alv-radio-card {
  justify-content: center;
  width: 100%;
  min-height: 72px;
  border-color: #7e93b2;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}

.reason-option:hover,
.reason-option:focus-visible,
.reason-option.is-active {
  border-color: #0d61ab;
  background: #f7fbff;
  box-shadow: 0 0 0 3px rgba(14, 117, 208, 0.14);
  outline: none;
}

.reason-option__copy {
  display: grid;
  gap: 3px;
  flex: 1 1 0;
  min-width: 0;
}

.reason-option__title {
  color: #333333;
  font-size: 16px;
  line-height: 20px;
}

.reason-option__subtitle {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 17px;
}

.reason-option.is-active .alv-radio-control {
  border-color: #0d61ab;
}

.reason-option.is-active .alv-radio-control::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0d61ab;
}

.returns-page {
  min-width: 0;
  padding: 40px;
}

.form-state-tabs {
  max-width: 980px;
  margin: 0 auto;
}

.form-state-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.form-state-tab {
  min-height: 38px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: #ffffff;
  padding: 7px 14px;
  color: var(--color-text-muted);
  font: 400 14px/20px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
}

.form-state-tab.is-active {
  border-color: #0d61ab;
  background: #f7fbff;
  color: #0d61ab;
  font-weight: 700;
}

.form-state-tab:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.form-state-tab:not(:disabled) {
  cursor: pointer;
}

.returns-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  margin-top: 0;
}

.returns-form.has-side-panel {
  grid-template-columns: minmax(0, 980px) 300px;
  max-width: 1328px;
}

.returns-form-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.returns-form-card:has(.field-issue-marker:hover),
.returns-form-card:has(.field-issue-marker:focus-visible) {
  overflow: visible;
}

.return-product-card {
  display: flex;
  align-items: flex-start;
  min-height: 156px;
  background: #ffffff;
  padding: 28px 24px 16px;
}

.return-product-media {
  display: flex;
  flex: 0 0 136px;
  align-items: flex-start;
  padding: 0 12px 0 8px;
  cursor: pointer;
}

.return-product-media img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
  cursor: pointer;
}

.return-product-data {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 0;
}

.return-product-title,
.return-product-item,
.return-product-price {
  margin-bottom: 0;
  color: var(--color-text);
  font-size: 16px;
}

.return-product-title {
  font-weight: 700;
  line-height: 26px;
}

.return-product-code {
  color: #8c8c8c;
  font-weight: 400;
}

.return-product-item {
  color: #8c8c8c;
  line-height: 22px;
}

.return-product-price {
  margin-bottom: 6px;
  font-weight: 700;
  line-height: 24px;
}

.return-product-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}

.return-product-status-toggle {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 2px 8px;
  font: 400 16px/22px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.return-product-status {
  overflow: hidden;
  text-overflow: ellipsis;
}

.return-product-status-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: #737373;
  pointer-events: none;
}

.return-product-status-toggle--unprocessed {
  border-color: #e6e6e6;
  background: #f6f8fa;
  color: #737373;
}

.return-product-status-toggle--clarification {
  border-color: #f4d58d;
  background: #fff7db;
  color: #8a5b00;
}

.return-product-status-toggle--waiting {
  border-color: #c9e3fb;
  background: #eaf5ff;
  color: #0d61ab;
}

.return-product-status-toggle--approved,
.return-product-status-toggle--credit {
  border-color: #bfe8c3;
  background: #dff5df;
  color: #1e7a33;
}

.return-product-status-toggle--rejected {
  border-color: #f2c2c2;
  background: #fff1f1;
  color: #d70a0a;
}

.return-product-status-toggle--cancelled {
  border-color: #737373;
  background: #4a4a4a;
  color: #ffffff;
}

.return-product-status-toggle:hover,
.return-product-status-toggle:focus-visible {
  filter: brightness(0.98);
  outline: none;
}

.returns-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: 24px;
}

.returns-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  align-items: start;
  gap: 22px 24px;
}

.returns-note {
  position: sticky;
  top: 24px;
  align-self: start;
}

.returns-note[hidden] {
  display: none;
}

.admin-status-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(30, 41, 59, 0.06);
  padding: 16px;
  color: var(--color-text);
}

.admin-status-panel h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.admin-status-list {
  display: grid;
  gap: 8px;
}

.admin-status-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  background: #ffffff;
  padding: 10px;
  color: var(--color-text);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.admin-status-option:hover,
.admin-status-option:focus-within,
.admin-status-option.is-active {
  border-color: #0d61ab;
  background: #f7fbff;
}

.admin-status-option--disabled,
.admin-status-option--disabled:hover,
.admin-status-option--disabled:focus-within {
  border-color: #e6e6e6;
  background: #f7f9fb;
  color: #9b9b9b;
  cursor: not-allowed;
}

.admin-status-option-copy {
  display: grid;
  gap: 2px;
}

.admin-status-disabled-note {
  color: #9b9b9b;
  font-size: 13px;
  line-height: 18px;
}

.admin-status-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.admin-status-radio {
  display: grid;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  place-items: center;
  border: 1px solid #cccccc;
  border-radius: 999px;
  background: #ffffff;
}

.admin-status-option--disabled .admin-status-radio {
  border-color: #d8d8d8;
  background: #f1f3f5;
}

.admin-status-native:checked + .admin-status-radio {
  border-color: #0d61ab;
}

.admin-status-native:checked + .admin-status-radio::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #0d61ab;
}

.selected-reason {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-self: start;
  align-items: start;
  gap: 4px 16px;
  width: 100%;
  border-radius: 6px;
  background: #f7f9fb;
  padding: 16px;
  color: var(--color-text);
}

.selected-reason-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.selected-reason-title,
.selected-reason-summary {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

.selected-reason-title {
  color: var(--color-text);
  font-weight: 400;
}

.selected-reason-title strong {
  font-weight: 700;
}

.selected-reason-summary {
  color: #8c8c8c;
  font-weight: 400;
}

.selected-reason-edit {
  align-self: start;
  color: #0d61ab;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}

.selected-reason-edit:hover,
.selected-reason-edit:focus-visible {
  color: #0e75d0;
  text-decoration: underline;
  outline: none;
}

.client-data-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.client-data-title {
  margin: 0;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.client-data-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  align-items: start;
  gap: 22px 24px;
}

.completed-summary {
  grid-column: 1 / -1;
  display: grid;
  overflow: hidden;
  border: 1px solid #f1f3f5;
  border-radius: 4px;
  background: #ffffff;
}

.completed-summary:has(.field-issue-marker:hover),
.completed-summary:has(.field-issue-marker:focus-visible) {
  overflow: visible;
}

.completed-row {
  display: grid;
  grid-template-columns: minmax(188px, 24%) minmax(0, 1fr);
  min-height: 36px;
  border-bottom: 1px solid #f1f3f5;
}

.completed-row:last-child {
  border-bottom: 0;
}

.completed-label,
.completed-value {
  padding: 6px 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  word-break: break-word;
}

.completed-label {
  color: var(--color-text-muted);
}

.completed-label--issue,
.field-label-with-issue {
  color: #d70a0a;
}

.completed-label--issue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.field-label-with-issue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.field-label-with-issue .required-mark {
  color: currentColor;
}

.field-issue-marker {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: currentColor;
  cursor: help;
  outline: none;
}

.field-issue-marker:hover,
.field-issue-marker:focus-visible {
  z-index: 60;
}

.field-issue-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.field-issue-tooltip {
  position: absolute;
  z-index: 40;
  bottom: calc(100% + 8px);
  left: 0;
  width: min(260px, calc(100vw - 48px));
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24), 0 8px 24px rgba(0, 0, 0, 0.14);
  padding: 10px 12px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.field-issue-marker:hover .field-issue-tooltip,
.field-issue-marker:focus-visible .field-issue-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.completed-value {
  color: var(--color-text);
}

.admin-decision {
  grid-column: 1 / -1;
  display: grid;
  justify-self: start;
  gap: 12px;
  width: 100%;
  border-radius: 6px;
  background: #f7f9fb;
  padding: 16px;
  color: var(--color-text);
}

.admin-decision-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.admin-decision-heading img {
  display: block;
  width: auto;
  height: 24px;
  object-fit: contain;
}

.admin-credit-bill {
  display: grid;
  grid-template-columns: 18px max-content max-content;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 4px;
  background: #dceeff;
  padding: 10px 16px;
  color: #0d61ab;
  font-size: 16px;
  line-height: 24px;
}

.admin-credit-bill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.admin-credit-bill a {
  color: #0d61ab;
  font-weight: 500;
  text-decoration: none;
}

.admin-credit-bill:hover a,
.admin-credit-bill a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

.admin-credit-bill-label {
  color: var(--color-text);
}

.admin-decision-table {
  display: grid;
}

.admin-decision-row {
  display: grid;
  grid-template-columns: minmax(148px, 21%) minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid #e6eaf0;
  padding: 12px 0;
}

.admin-decision-row:last-child {
  border-bottom: 0;
}

.admin-decision-label,
.admin-decision-value {
  font-size: 16px;
  line-height: 24px;
  word-break: break-word;
}

.admin-decision-label {
  color: #8c8c8c;
}

.admin-decision-value {
  color: var(--color-text);
}

.admin-decision-link {
  color: #0d61ab;
  text-decoration: none;
}

.admin-decision-link:hover,
.admin-decision-link:focus-visible {
  color: #0e75d0;
  text-decoration: underline;
  outline: none;
}

.admin-decision-row--decision .admin-decision-value {
  font-weight: 700;
}

.admin-decision-row--amount .admin-decision-value {
  font-weight: 700;
}

.admin-decision-deadline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #d70a0a;
  border-radius: 999px;
  background: #fff1f1;
  padding: 3px 10px;
  color: #d70a0a;
  font-weight: 500;
  line-height: 22px;
  min-width: 0;
}

.admin-decision-deadline svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.admin-decision-time {
  min-width: 0;
  white-space: nowrap;
}

.admin-response-photo-list {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-response-photo {
  display: block;
  overflow: hidden;
  width: 112px;
  height: 112px;
  border-radius: 4px;
  background: #e6eaf0;
  cursor: pointer;
}

.admin-response-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-response-document-list {
  display: grid;
  gap: 6px;
}

.saved-photo-list {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-photo-item {
  display: block;
  overflow: hidden;
  width: 112px;
  height: 112px;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
}

.saved-photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-document-list {
  display: grid;
  gap: 6px;
}

.saved-document-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  color: #0d61ab;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}

.saved-document-link:hover,
.saved-document-link:focus-visible {
  color: #0e75d0;
  text-decoration: underline;
  outline: none;
}

.saved-document-link .uploaded-document-icon {
  flex: 0 0 24px;
}

.saved-document-link span {
  word-break: break-word;
}

.alv-field {
  position: relative;
  display: grid;
  gap: 2px;
  max-width: 327px;
  color: #333333;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
}

.alv-field:hover,
.alv-field:focus-within {
  z-index: 30;
}

.alv-field__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 24px;
  color: #333333;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.vin-label-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  outline: none;
}

.vin-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #5a7299;
  cursor: pointer;
}

.vin-label-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.vin-label-tooltip {
  position: absolute;
  z-index: 20;
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  width: min(320px, calc(100vw - 48px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.vin-label-tooltip a {
  color: #0d61ab;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vin-label-help.is-open .vin-label-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.alv-popover {
  display: grid;
  gap: 14px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24), 0 8px 24px rgba(0, 0, 0, 0.14);
  padding: 26px 24px 24px;
  color: #333333;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.alv-popover-close {
  position: absolute;
  top: 6px;
  right: 8px;
  color: #b8b8b8;
  font-size: 28px;
  font-weight: 300;
  line-height: 28px;
}

.alv-popover-body {
  display: block;
}

.alv-popover-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-height: 44px;
  border: 0;
  border-radius: 50px;
  background: #0e75d0;
  padding: 10px 20px;
  color: #ffffff;
  font: 400 16px/24px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.alv-field__control {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cccccc;
  border-radius: 2px;
  box-shadow: inset 0 0 3px rgba(204, 204, 204, 0.6);
  background: #ffffff;
  padding: 8px;
  color: #333333;
  font: 400 16px/24px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0;
}

.alv-field__control::placeholder {
  color: #9b9b9b;
  opacity: 1;
}

.alv-field__control:focus {
  border-color: #0d61ab;
  box-shadow: 0 0 0 3px rgba(14, 117, 208, 0.16), inset 0 0 3px rgba(204, 204, 204, 0.6);
  outline: none;
}

.alv-field__control--no-stepper {
  -moz-appearance: textfield;
}

.alv-field__control--no-stepper::-webkit-outer-spin-button,
.alv-field__control--no-stepper::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.alv-field--textarea {
  max-width: 360px;
}

.alv-field__control--textarea {
  min-height: 96px;
  resize: vertical;
}

.returns-field {
  width: 100%;
  max-width: none;
}

.returns-field--full {
  grid-column: 1 / -1;
}

.returns-field .alv-field__label {
  flex-wrap: wrap;
}

.required-mark {
  color: #333333;
  font-weight: 700;
}

.returns-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23737373' d='M12 13.172 16.95 8.222 18.364 9.636 12 16 5.636 9.636 7.05 8.222 12 13.172Z'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  padding-right: 34px;
}

.returns-select:disabled {
  border-color: #d8d8d8;
  box-shadow: inset 0 0 3px rgba(204, 204, 204, 0.42);
  background-color: #f7f9fb;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23b8b8b8' d='M12 13.172 16.95 8.222 18.364 9.636 12 16 5.636 9.636 7.05 8.222 12 13.172Z'/%3E%3C/svg%3E");
  color: #9b9b9b;
  cursor: not-allowed;
}

.returns-field .alv-field__control--textarea {
  min-height: 122px;
}

.alv-upload-field {
  display: grid;
  gap: 2px;
  width: 327px;
  color: #333333;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
}

.alv-upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
}

.alv-upload-header > span {
  font-size: 16px;
  line-height: 24px;
}

.alv-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 4px 10px;
  color: #0d61ab;
  font: 400 14px/20px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer;
}

.alv-upload-button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.alv-upload-button:hover,
.alv-upload-button:focus-visible {
  background: #f1f3f5;
  color: #084f8e;
  outline: none;
}

.alv-upload-dropzone {
  display: grid;
  justify-items: center;
  border: 1px dashed var(--color-border-strong);
  border-radius: 4px;
  background: transparent;
  padding: 16px;
  color: #737373;
  text-align: center;
}

.alv-upload-dropzone p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 24px;
}

.alv-upload-helper {
  margin-bottom: 0;
  color: #737373;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.returns-upload {
  width: 100%;
}

.returns-upload .alv-upload-header {
  gap: 0;
}

.returns-upload .alv-upload-header > span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.returns-upload .alv-upload-button {
  flex: 0 0 auto;
}

.returns-upload .alv-upload-dropzone {
  min-height: 116px;
  align-content: center;
  cursor: pointer;
}

.returns-upload .alv-upload-dropzone .alv-upload-button {
  pointer-events: auto;
}

.returns-upload .alv-upload-dropzone--filled {
  min-height: 120px;
  align-content: start;
  justify-items: start;
  gap: 12px;
  padding: 12px;
  text-align: left;
}

.returns-upload .alv-upload-dropzone--filled .alv-upload-button {
  justify-self: center;
  pointer-events: auto;
}

.uploaded-photo-list {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
}

.uploaded-photo-item {
  position: relative;
  display: block;
  overflow: hidden;
  width: 96px;
  height: 96px;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
}

.uploaded-photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-remove {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(51, 51, 51, 0.72);
  color: #ffffff;
  padding: 0;
  cursor: pointer;
}

.attachment-remove svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.uploaded-photo-item:hover .attachment-remove,
.uploaded-photo-item:focus-within .attachment-remove,
.uploaded-document-item:hover .attachment-remove,
.uploaded-document-item:focus-within .attachment-remove {
  background: #d70a0a;
  color: #ffffff;
}

.alv-upload-dropzone--documents {
  min-height: 0;
}

.uploaded-document-list {
  display: grid;
  gap: 8px;
  width: 100%;
}

.uploaded-document-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: start;
  gap: 8px;
  width: 100%;
  color: #0d61ab;
}

.uploaded-document-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.uploaded-document-name {
  color: #0d61ab;
  font-size: 16px;
  line-height: 24px;
  word-break: break-word;
}

.attachment-remove--document {
  position: static;
  width: 18px;
  height: 18px;
  background: transparent;
  color: #737373;
}

.attachment-remove--document svg {
  width: 14px;
  height: 14px;
}

.returns-upload .alv-upload-dropzone.is-dragging {
  border-color: #0d61ab;
  background: #f7fbff;
}

.upload-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.returns-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 20px 24px 24px;
}

.returns-form-actions--review {
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.edit-actions-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.remove-item-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 32px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--color-tertiary-link, #5a7299);
  font: 400 14px/20px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer;
}

.remove-item-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.remove-item-link:hover,
.remove-item-link:focus-visible {
  color: #d70a0a;
  outline: none;
}

.review-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0.5px solid #0d61ab;
  border-radius: 999px;
  background: #ffffff;
  padding: 12px 18px;
  color: #0d61ab;
  font: 510 16px/20px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer;
}

.review-edit-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.review-edit-button:hover,
.review-edit-button:focus-visible {
  background: #f7fbff;
  outline: none;
}

.btn.btn-lg.btn-n-primary.btn-rounded.icn-btn {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 44px;
  border: 0;
  border-radius: 50px;
  background: #0e75d0;
  padding: 10px 20px;
  color: #ffffff;
  font: 400 16px/24px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.btn.btn-lg.btn-n-primary.btn-rounded.icn-btn:hover,
.btn.btn-lg.btn-n-primary.btn-rounded.icn-btn:focus-visible {
  background: var(--color-primary);
  outline: none;
}

.icn-btn__label,
.icn-btn__icon {
  display: inline-flex;
  align-items: center;
}

.icn-btn__icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 960px) {
  .returns-shell {
    grid-template-columns: 1fr;
  }

  .returns-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .reason-list {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .returns-page {
    padding: 28px 16px;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 26px;
    line-height: 32px;
  }

  .reason-list,
  .returns-fields-grid,
  .client-data-edit-grid {
    grid-template-columns: 1fr;
  }

  .returns-form,
  .returns-form.has-side-panel {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .returns-content-layout {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .returns-note {
    position: static;
  }

  .selected-reason {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .selected-reason-edit {
    justify-self: start;
  }

  .admin-decision {
    padding: 14px;
  }

  .admin-credit-bill {
    grid-template-columns: 18px minmax(0, max-content) minmax(0, 1fr);
    justify-content: stretch;
    justify-items: center;
    text-align: left;
  }

  .admin-decision-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-response-photo,
  .saved-photo-item {
    width: 88px;
    height: 88px;
  }

  .completed-summary {
    gap: 8px;
    border: 0;
    border-radius: 0;
  }

  .completed-row {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .completed-label,
  .completed-value {
    padding: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .returns-form-actions--review {
    align-items: center;
  }

  .review-edit-button {
    padding: 12px 16px;
  }

  .returns-form-actions:not(.returns-form-actions--review) {
    align-items: center;
    gap: 10px;
  }

  .returns-form-actions:not(.returns-form-actions--review) .remove-item-link {
    max-width: 136px;
    font-size: 13px;
    line-height: 18px;
    white-space: normal;
  }

  .returns-form-actions:not(.returns-form-actions--review) .btn.btn-lg.btn-n-primary.btn-rounded.icn-btn {
    flex: 0 0 auto;
    padding-right: 16px;
    padding-left: 16px;
  }
}
