.vin-request-page {
  --vin-icon-copy: url("https://cdn.jsdelivr.net/npm/remixicon@4.9.1/icons/Document/file-copy-line.svg");
  --vin-icon-check: url("https://cdn.jsdelivr.net/npm/remixicon@4.9.1/icons/System/check-line.svg");
}

.vin-takeover-banner[hidden] {
  display: none;
}

.vin-takeover-banner {
  width: 100%;
  min-height: 88px;
  margin-bottom: 12px;
  border: 1px solid #ffd8d8;
  border-radius: 4px;
  background: #fff0f0;
  color: #681d1d;
}

.vin-takeover-banner-inner {
  display: grid;
  min-height: 86px;
  box-sizing: border-box;
  grid-template-columns: 24px minmax(320px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.vin-takeover-banner-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: var(--red);
  mask: var(--icon-warning-line) center / contain no-repeat;
  -webkit-mask: var(--icon-warning-line) center / contain no-repeat;
}

.vin-takeover-banner-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.vin-takeover-banner-copy strong {
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
}

.vin-takeover-banner-copy span {
  margin-top: 2px;
  font-size: 13px;
  line-height: 17px;
}

.vin-takeover-button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 6px 16px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 18px;
}

.vin-takeover-button[hidden] {
  display: none;
}

.vin-takeover-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.vin-takeover-banner-actions[hidden] {
  display: none;
}

.vin-takeover-view-button {
  min-height: 34px;
  padding: 6px 16px;
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
}

.vin-takeover-back-link {
  padding: 7px 2px;
  color: var(--link);
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
}

.vin-takeover-banner.is-accepted {
  border-color: #dbeadb;
  background: #edf5ed;
  color: #1e5f1e;
}

.vin-takeover-banner.is-accepted .vin-takeover-banner-icon {
  background: #34742a;
  mask-image: var(--vin-icon-check);
  -webkit-mask-image: var(--vin-icon-check);
}

.vin-takeover-banner.is-declined {
  border-color: #ffd8d8;
  background: #fff0f0;
  color: #681d1d;
}

.vin-takeover-banner.is-declined .vin-takeover-banner-icon {
  background: var(--red);
}

.vin-request-page .main {
  padding-top: 12px;
}

.vin-order-card,
.vin-products-card {
  box-sizing: border-box;
}

.vin-order-card {
  min-height: 196px;
}

.vin-order-card .request-title-row {
  justify-content: space-between;
  margin-bottom: 18px;
}

.vin-order-back-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 14px;
  color: var(--link);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.vin-order-back-button:hover,
.vin-order-back-button:focus,
.vin-order-back-button:active {
  text-decoration: none;
}

.vin-order-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vin-order-heading h1 {
  margin: 0;
}

.vin-order-alert-badge {
  cursor: default;
}

.vin-order-alert-badge:hover {
  background: #ffd7d7;
}

.vin-table-note {
  display: inline;
  margin-left: 4px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
}

.vin-order-info-grid > .request-info-table:first-child th {
  width: 36%;
}

.vin-time-cell {
  white-space: nowrap;
}

.vin-time-cell strong {
  font-size: 13px;
}

.vin-order-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 26px;
  align-items: start;
}

.request-info-table {
  width: 100%;
  border: 1px solid #edf0f2;
  border-collapse: collapse;
  color: var(--text);
  font-size: 14px;
  line-height: 18px;
}

.request-info-table th,
.request-info-table td {
  padding: 7px 8px;
  border: 1px solid #edf0f2;
  text-align: left;
  vertical-align: top;
}

.request-info-table th {
  width: 42%;
  color: var(--secondary);
  font-weight: 400;
}

.vin-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 4px 14px;
}

.vin-card-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 24px;
}

.vin-card-heading h2 span {
  color: var(--muted);
  font-weight: 400;
}

.vin-card-heading p {
  margin: 3px 0 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 18px;
}

.vin-request-page .vin-product-layout {
  grid-template-columns: 430px minmax(740px, 1fr);
  min-height: 610px;
  gap: 14px;
}

.vin-request-page .vin-product-layout.is-wide-view {
  grid-template-columns: minmax(0, 1fr);
}

.vin-request-page .vin-product-layout.is-wide-view .vin-product-sidebar {
  display: none;
}

.vin-product-sidebar {
  position: sticky;
  top: 12px;
}

.vin-request-page .vin-product-nav {
  position: static;
}

.vin-request-page .vin-product-nav-head {
  display: grid;
  min-height: 54px;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.vin-request-page .vin-product-nav-head > span {
  display: grid;
  align-content: center;
  padding: 7px 10px;
  border-right: 1px solid var(--grid);
  color: var(--text);
}

.vin-request-page .vin-product-nav-head > span:last-child {
  border-right: 0;
}

.vin-request-page .vin-product-nav-head strong,
.vin-request-page .vin-product-nav-head small {
  display: block;
  font-size: 13px;
  line-height: 17px;
}

.vin-request-page .vin-product-nav-head small {
  color: var(--muted);
  font-weight: 500;
}

.vin-request-page .vin-product-item {
  min-height: 66px;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  cursor: pointer;
}

.vin-product-decision,
.vin-request-page .vin-product-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  align-self: stretch;
  padding: 7px 10px;
}

.vin-product-decision {
  border-right: 1px solid var(--grid);
}

.vin-product-decision > strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vin-sidebar-status {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e2e2e2;
  color: #4a4a4a;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.vin-sidebar-status.is-complete {
  background: #d9f2d8;
  color: #2c7a32;
}

.vin-sidebar-status .vin-remix-icon {
  width: 13px;
  height: 13px;
}

.vin-request-page .vin-product-copy strong {
  font-weight: 400;
}

.vin-other-products {
  border-top: 1px solid var(--grid);
  background: #fafafa;
}

.vin-other-products-toggle {
  display: grid;
  width: 100%;
  min-height: 46px;
  grid-template-columns: minmax(0, 1fr) 14px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--link);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 17px;
  text-align: left;
}

.vin-other-products-toggle:hover {
  background: var(--row-hover-bg);
}

.vin-other-products-toggle strong {
  color: var(--secondary);
  font-weight: 500;
}

.vin-other-products-arrow {
  color: var(--secondary);
  font-size: 14px;
  text-align: center;
  transition: transform 120ms ease;
}

.vin-other-products-toggle[aria-expanded="true"] .vin-other-products-arrow {
  transform: rotate(180deg);
}

.vin-other-products-list[hidden] {
  display: none;
}

.vin-order-product-item {
  display: grid;
  min-height: 54px;
  align-content: center;
  padding: 7px 10px 7px 164px;
  border-top: 1px solid var(--grid);
  background: #ffffff;
}

.vin-order-product-item strong,
.vin-order-product-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vin-order-product-item strong {
  color: var(--text);
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
}

.vin-order-product-item small {
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
}

.vin-product-notification {
  padding: 0 10px 12px;
}

.vin-product-notification .decision-warning {
  margin-top: 12px;
}

.vin-product-notification .publish-start {
  padding-top: 12px;
}

.vin-request-page .vin-view {
  min-height: 570px;
  padding-bottom: 0;
}

.vin-request-page .vin-view[data-view="check"] {
  border: 1px solid var(--grid);
  border-radius: 4px;
  background: #ffffff;
}

.vin-request-page .vin-view[data-view="processed"] {
  border: 1px solid var(--grid);
  border-radius: 4px;
  background: #ffffff;
}

.vin-request-page .vin-view-heading {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--grid);
  border-radius: 4px;
}

.vin-request-page .vin-view[data-view="check"] .vin-view-heading {
  border: 0;
  border-radius: 0;
}

.vin-request-page .vin-view[data-view="processed"] .vin-view-heading {
  border: 0;
  border-radius: 0;
}

.vin-check-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 10px;
  align-items: stretch;
}

.vin-request-page .vin-current-product,
.vin-request-page .vin-client-request,
.vin-request-page .vin-admin-decision {
  margin-top: 0;
}

.vin-request-page .vin-current-product {
  grid-column: 1 / -1;
}

.vin-current-product-grid {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.vin-current-product-main {
  min-width: 0;
}

.vin-current-product-heading {
  display: flex;
  min-height: 28px;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.vin-current-product-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 22px;
}

.vin-current-product-heading .product-status-badge {
  flex: 0 0 auto;
  padding-right: 7px;
  padding-left: 7px;
}

.vin-product-photo.vin-product-photo-real {
  width: 154px;
  height: 178px;
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid var(--grid);
  background: #ffffff;
}

.vin-product-photo-real img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vin-request-page .vin-product-data-table {
  font-size: 13px;
  line-height: 17px;
}

.vin-request-page .vin-product-data-table th,
.vin-request-page .vin-product-data-table td {
  padding: 5px 7px;
}

.vin-context-plain {
  padding: 0;
  border: 0;
}

.vin-customer-vin {
  margin-top: 12px;
}

.vin-client-request .vin-section-title-row {
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
}

.vin-client-request-table th {
  width: 31%;
}

.vin-client-request-table .vin-code-row {
  margin: 0;
}

.vin-client-request-table td > strong,
.vin-client-request-table td > small {
  display: block;
}

.vin-client-request-table td > small {
  margin-top: 2px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
}

.vin-client-request-links {
  margin-top: 9px;
}

.vin-catalog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.vin-remix-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
}

.vin-icon-copy {
  mask: var(--vin-icon-copy) center / contain no-repeat;
  -webkit-mask: var(--vin-icon-copy) center / contain no-repeat;
}

.vin-icon-external {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  mask: var(--icon-external) center / contain no-repeat;
  -webkit-mask: var(--icon-external) center / contain no-repeat;
}

.vin-icon-check {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  mask: var(--vin-icon-check) center / contain no-repeat;
  -webkit-mask: var(--vin-icon-check) center / contain no-repeat;
}

.vin-icon-check-large {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.vin-copy-icon-button {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--link);
  cursor: pointer;
}

.vin-copy-icon-button:hover,
.vin-copy-icon-button:focus-visible {
  background: var(--soft-blue);
}

.vin-copy-icon-button.is-copied {
  background: #d9f2d8;
  color: #2c7a32;
}

.vin-request-page .vin-external-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}

.vin-request-page .vin-external-link:hover span:first-child {
  text-decoration: underline;
}

.vin-request-page .vin-code-row code {
  font-weight: 700;
}

.vin-request-page .vin-client-choice {
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid #b9d7f0;
  border-radius: 3px;
  background: #eef7ff;
}

.vin-request-page .vin-decision-form {
  grid-template-columns: minmax(0, 1fr);
}

.vin-decision-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.vin-decision-field legend {
  margin: 0 0 4px;
  padding: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 17px;
  font-weight: 500;
}

.vin-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.vin-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  line-height: 18px;
  cursor: pointer;
}

.vin-radio-group input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.vin-radio-group input:disabled + span,
.vin-radio-group label:has(input:disabled) {
  color: var(--muted);
  cursor: default;
}

.vin-radio-group-decisions {
  display: grid;
  gap: 7px;
}

.vin-oem-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-right: 12px;
}

.vin-oem-input-row a {
  color: var(--link);
  font-size: 13px;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.vin-oem-input-row a:hover {
  text-decoration: underline;
}

.vin-request-page .vin-form-field[hidden] {
  display: none;
}

.vin-admin-decision {
  border-radius: 0;
}

.vin-admin-decision .vin-section-title-row {
  align-items: center;
}

.vin-back-link {
  border: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  font-size: 13px;
}

.vin-button-link {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.vin-request-page .vin-sticky-actions {
  bottom: 0;
  border: 1px solid var(--grid);
  border-radius: 4px;
}

.vin-request-page .vin-view[data-view="check"] .vin-sticky-actions {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.vin-request-page .vin-check-actions {
  min-height: 61px;
  margin-top: 0;
  padding: 10px 12px;
}

.vin-request-page #vin-save-button {
  padding: 9px 22px;
  font-size: 14px;
}

.vin-request-page #vin-save-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.vin-consequences h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 20px;
}

.vin-consequences ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
  padding-left: 24px;
}

.vin-consequences li {
  padding-left: 2px;
  font-size: 13px;
  line-height: 18px;
}

.vin-consequences li strong,
.vin-consequences li span {
  display: block;
}

.vin-consequences li span {
  color: var(--secondary);
}

.vin-confirm-dialog {
  width: min(560px, calc(100vw - 40px));
}

.vin-confirm-dialog h2 {
  margin-top: 5px;
}

.vin-confirm-summary {
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}

.vin-confirm-summary ul {
  margin: 10px 0;
  padding-left: 20px;
}

.vin-confirm-warning {
  padding: 9px 10px;
  border-left: 4px solid var(--red);
  background: #fff0f0;
  font-weight: 500;
}

.vin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.vin-takeover-dialog {
  width: min(560px, calc(100vw - 40px));
}

.vin-takeover-modal-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--secondary);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.vin-takeover-dialog h2 {
  margin: 0 0 12px;
}

.vin-takeover-modal-copy {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}

.vin-takeover-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.vin-replacement-dialog {
  width: min(1100px, calc(100vw - 48px));
  padding-bottom: 22px;
}

.vin-replacement-dialog h2 {
  margin-bottom: 12px;
}

.vin-analog-source-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--grid);
  border-radius: 3px;
  background: #fff;
}

.vin-analog-source-card img {
  width: 72px;
  height: 58px;
  flex: 0 0 72px;
  object-fit: contain;
}

.vin-analog-source-card > div {
  min-width: 0;
}

.vin-analog-source-card strong,
.vin-analog-source-card span {
  display: block;
}

.vin-analog-source-card strong {
  color: var(--text);
  font-size: 14px;
  line-height: 19px;
}

.vin-analog-source-card span {
  margin-top: 3px;
  color: var(--secondary);
  font-size: 13px;
  line-height: 18px;
}

.vin-analog-product {
  display: flex;
  min-width: 220px;
  align-items: center;
  gap: 9px;
}

.vin-analog-product img {
  width: 52px;
  height: 44px;
  flex: 0 0 52px;
  object-fit: contain;
}

.vin-analog-product > div {
  min-width: 0;
}

.vin-replacement-dialog .vin-reference-strip {
  margin-top: 0;
}

.vin-replacement-actions {
  bottom: -22px;
  margin: 18px -24px -22px;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 0 4px 4px;
}

.vin-processed-content {
  padding: 0 12px 12px;
}

.vin-processed-banner {
  margin-top: 2px;
}

.vin-processed-table {
  min-width: 820px;
}

.vin-processed-table th:first-child {
  width: 190px;
}

.vin-processed-table th:nth-child(2) {
  width: 190px;
}

.vin-processed-table th:nth-child(3) {
  width: 160px;
}

.vin-processed-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.vin-processed-result-grid > div {
  padding: 10px 12px;
  border: 1px solid var(--grid);
  border-radius: 3px;
  background: #fafafa;
}

.vin-processed-result-grid span,
.vin-processed-result-grid strong,
.vin-processed-result-grid small {
  display: block;
}

.vin-processed-result-grid span {
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
}

.vin-processed-result-grid strong {
  margin-top: 3px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 500;
}

.vin-processed-result-grid small {
  margin-top: 2px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
}

.vin-processed-message-body {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 4px solid var(--blue);
  background: var(--soft-blue);
  color: var(--text);
  font-size: 13px;
  line-height: 18px;
}

.vin-processed-message-body strong {
  font-weight: 500;
}

.vin-processed-message-body ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.vin-processed-message-body li + li {
  margin-top: 2px;
}

@media (max-width: 1350px) {
  .vin-request-page .vin-product-layout {
    grid-template-columns: 400px minmax(700px, 1fr);
  }

  .vin-check-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .vin-admin-decision {
    border-left: 0;
  }

  .vin-processed-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
