.pc-configurator {
  --pc-blue: #0ea5df;
  --pc-blue-dark: #004985;
  --pc-navy: #0f1b2d;
  --pc-text: #172033;
  --pc-muted: #64748b;
  --pc-soft: #f4f8fb;
  --pc-line: #dce7ef;
  --pc-red: #ef3f25;
  background: #fff;
  color: var(--pc-text);
  font-family: inherit;
}

.pc-configurator *,
.pc-configurator *::before,
.pc-configurator *::after {
  box-sizing: border-box;
}

.pc-configurator__workspace {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin: 0 auto;
  max-width: 1480px;
  padding: 32px 16px 56px;
}

.pc-configurator__main {
  min-width: 0;
}

.pc-configurator__heading {
  align-items: flex-end;
  border-bottom: 1px solid var(--pc-line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
}

.pc-configurator__heading p {
  color: var(--pc-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.pc-configurator__heading h1 {
  color: var(--pc-text);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.pc-configurator__status {
  align-items: center;
  background: var(--pc-soft);
  border: 1px solid var(--pc-line);
  border-radius: 4px;
  display: inline-flex;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.pc-configurator__status span {
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 800;
}

.pc-configurator__status strong {
  color: #148a55;
  font-size: 13px;
  font-weight: 900;
}

.pc-configurator__steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(8, minmax(112px, 1fr));
  margin-bottom: 22px;
  overflow: visible;
  padding: 0 0 8px;
}

.pc-step {
  align-items: center;
  background: #fff;
  border: 1px solid var(--pc-line);
  border-radius: 4px;
  color: #27364a;
  cursor: pointer;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  grid-template-rows: 22px 62px 18px;
  justify-content: center;
  justify-items: center;
  min-height: 118px;
  padding: 9px 10px;
  position: relative;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}

.pc-step span {
  align-items: center;
  background: #eef8fd;
  border: 1px solid var(--pc-line);
  border-radius: 50%;
  color: var(--pc-blue-dark);
  display: inline-flex;
  height: 22px;
  justify-content: center;
  justify-self: start;
  width: 22px;
}

.pc-step img {
  background: #fff;
  border: 1px solid #e8eef4;
  border-radius: 4px;
  display: block;
  height: 62px;
  object-fit: contain;
  padding: 5px;
  transition: transform .18s ease;
  width: 86px;
}

.pc-step strong {
  color: inherit;
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
  max-width: 100%;
  overflow: visible;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-step.is-active {
  background: #eef8fd;
  border-color: var(--pc-blue);
  box-shadow: 0 7px 18px rgba(14, 165, 223, .22);
  color: var(--pc-blue-dark);
}

.pc-step.is-active span,
.pc-step.is-complete span {
  background: var(--pc-blue);
  border-color: var(--pc-blue);
  color: #fff;
}

.pc-step.is-active img {
  border-color: var(--pc-blue);
  box-shadow: 0 0 0 3px rgba(14, 165, 223, .12);
}

.pc-step.is-active::after {
  background: var(--pc-blue);
  border-radius: 0 0 4px 4px;
  bottom: 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
}

.pc-step.is-complete:not(.is-active) {
  border-color: #bfe5f5;
}

.pc-step.is-complete:not(.is-active)::after {
  color: var(--pc-blue);
  content: "✓";
  font-size: 13px;
  font-weight: 900;
  position: absolute;
  right: 8px;
  top: 7px;
}

.pc-step.is-complete:not(.is-active) span {
  background: #eef8fd;
  border-color: #cbeaf7;
  color: var(--pc-blue);
}

.pc-step:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.pc-step.is-active img {
  transform: scale(1.04);
}

.pc-configurator__toolbar {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pc-configurator__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pc-configurator__sort {
  background: var(--pc-soft);
  border: 1px solid var(--pc-line);
  border-radius: 4px;
  color: #2c3b4f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  min-height: 38px;
  padding: 0 13px;
}

.pc-filter {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--pc-line);
  border-radius: 4px;
  display: grid;
  grid-template-columns: auto minmax(118px, 1fr);
  min-height: 38px;
  overflow: hidden;
  position: relative;
}

.pc-filter span {
  align-items: center;
  background: var(--pc-soft);
  color: #526174;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
  white-space: nowrap;
}

.pc-filter select {
  appearance: none;
  background: #fff;
  border: 0;
  color: #1f2d40;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  min-height: 36px;
  outline: 0;
  padding: 0 28px 0 10px;
}

.pc-filter::after {
  align-self: center;
  color: var(--pc-blue);
  content: "⌄";
  font-size: 13px;
  justify-self: end;
  margin-right: 10px;
  pointer-events: none;
  position: absolute;
}

.pc-filter-empty {
  align-items: center;
  color: #66758a;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  min-height: 38px;
}

.pc-configurator__sort::after {
  color: var(--pc-blue);
  content: " ≡";
  margin-left: 12px;
}

#pcClearFilters::after {
  content: "";
  margin: 0;
}

.pc-configurator__notice {
  align-items: center;
  background: var(--pc-blue);
  border-radius: 4px;
  color: #fff;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  min-height: 38px;
  padding: 8px 12px;
}

.pc-configurator__notice strong,
.pc-configurator__notice span {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.pc-configurator__notice span {
  font-size: 12px;
  opacity: .9;
}

.pc-products {
  display: grid;
  gap: 10px;
}

.pc-product {
  align-items: center;
  background: #fff;
  border: 1px solid var(--pc-line);
  border-radius: 4px;
  cursor: pointer;
  display: grid;
  gap: 16px;
  grid-template-columns: 112px minmax(0, 1fr) 136px;
  min-height: 118px;
  overflow: hidden;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pc-product[hidden] {
  display: none !important;
}

.pc-product--empty {
  cursor: default;
  grid-template-columns: 1fr;
  min-height: 82px;
  padding: 18px;
}

.pc-product--empty:hover {
  border-color: var(--pc-line);
  box-shadow: none;
  transform: none;
}

.pc-product:hover,
.pc-product.is-selected {
  border-color: var(--pc-blue);
  box-shadow: 0 10px 24px rgba(15, 27, 45, .08);
  transform: translateY(-1px);
}

.pc-product__detail {
  align-items: center;
  background: var(--pc-blue-dark);
  bottom: 0;
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  left: 0;
  position: absolute;
  text-decoration: none;
  top: 0;
  transform: translateX(-100%);
  transition: background .18s ease, transform .18s ease;
  width: 42px;
  writing-mode: vertical-rl;
  z-index: 3;
}

.pc-product:hover .pc-product__detail {
  background: var(--pc-blue);
  transform: translateX(0);
}

.pc-product img {
  display: block;
  height: 70px;
  object-fit: contain;
  width: 112px;
}

.pc-product__body {
  min-width: 0;
}

.pc-product h2 {
  color: #202b3a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0 0 4px;
}

.pc-product__rating {
  color: #d8dde4;
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1;
}

.pc-product dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 12px 0 0;
}

.pc-product dl div {
  display: inline-flex;
  gap: 4px;
}

.pc-product dt,
.pc-product dd {
  color: #6c7583;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.pc-product dd {
  color: #283446;
}

.pc-product__price {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-right: 14px;
}

.pc-product__price strong {
  color: var(--pc-blue-dark);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.pc-configurator__side {
  align-self: start;
  background: #fff;
  border: 1px solid var(--pc-line);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(15, 27, 45, .08);
  color: var(--pc-text);
  overflow: hidden;
  position: sticky;
  top: 12px;
}

.pc-preview {
  background: linear-gradient(180deg, #0a5d98 0%, #073a66 100%);
  color: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  min-height: 0;
  overflow: hidden;
  padding: 18px 14px;
}

.pc-image-stack {
  aspect-ratio: 210 / 248;
  margin: 0 auto;
  max-width: 190px;
  min-height: 224px;
  position: relative;
  width: min(100%, 190px);
}

.pc-stack-image {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: contain;
  opacity: 0;
  position: absolute;
  transform: scale(.985);
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
  width: 100%;
}

.pc-stack-image--base,
.pc-stack-image.is-visible {
  opacity: 1;
  transform: scale(1);
}

.pc-stack-image.is-visible {
  filter: drop-shadow(0 0 12px rgba(70, 190, 255, .36));
}

.pc-preview__metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  min-width: 0;
}

.pc-preview__metrics span {
  color: #c8e5f6;
  font-size: 12px;
  font-weight: 900;
}

.pc-preview__metrics strong {
  background: rgba(4, 47, 86, .72);
  border-radius: 4px;
  color: #fff;
  font-size: clamp(13px, 3.7vw, 16px);
  font-weight: 900;
  line-height: 1.15;
  min-width: 0;
  padding: 10px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.pc-preview__metrics small {
  color: #d8ecf8;
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 100%;
}

.pc-build-list {
  overflow: visible;
}

.pc-build-row {
  align-items: center;
  border-bottom: 1px solid var(--pc-line);
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(110px, 1fr) minmax(0, 1.1fr) 22px;
  min-height: 44px;
  padding: 8px 10px 8px 34px;
  position: relative;
}

.pc-build-row::before {
  color: var(--pc-blue);
  content: "✓";
  font-size: 16px;
  font-weight: 900;
  left: 13px;
  position: absolute;
  top: 12px;
}

.pc-build-row.is-empty::before {
  color: var(--pc-red);
  content: "!";
}

.pc-build-row.is-current {
  background: #eef8fd;
}

.pc-build-row span {
  color: #2d3a4e;
  font-size: 12px;
  font-weight: 900;
}

.pc-build-row strong {
  color: var(--pc-blue-dark);
  font-size: 12px;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-build-row.is-empty strong {
  color: #8b99aa;
}

.pc-build-row button {
  background: transparent;
  border: 0;
  color: #8b99aa;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.pc-configurator__actions {
  background: var(--pc-soft);
  border-bottom: 1px solid var(--pc-line);
  display: flex;
  gap: 8px;
  padding: 12px;
}

.pc-icon-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--pc-line);
  border-radius: 4px;
  color: var(--pc-blue-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.pc-icon-button.is-copied {
  background: #e8f8ef;
  border-color: #31b66b;
  color: #08733a;
}

.pc-configurator__bottom {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  padding: 12px;
}

.pc-configurator__bottom button {
  border: 1px solid var(--pc-blue);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  height: 44px;
}

.pc-configurator__bottom button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.pc-configurator__bottom button:first-child {
  background: #fff;
  color: var(--pc-blue-dark);
}

.pc-configurator__bottom button:last-child {
  background: var(--pc-blue);
  color: #fff;
}

.pc-overview[hidden] {
  display: none !important;
}

.pc-overview {
  align-items: center;
  background: rgba(10, 23, 39, .56);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1000;
}

.pc-overview__dialog {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(15, 27, 45, .24);
  color: var(--pc-text);
  max-height: min(720px, calc(100vh - 40px));
  max-width: 720px;
  overflow: hidden;
  width: min(100%, 720px);
}

.pc-overview__header,
.pc-overview__footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.pc-overview__header {
  border-bottom: 1px solid var(--pc-line);
}

.pc-overview__header h2 {
  color: #1f2d40;
  font-size: 18px;
  font-weight: 900;
  margin: 0;
}

.pc-overview__header button {
  background: #fff;
  border: 1px solid var(--pc-line);
  border-radius: 4px;
  color: #526174;
  cursor: pointer;
  height: 32px;
  width: 32px;
}

.pc-overview__body {
  display: grid;
  gap: 8px;
  max-height: 440px;
  overflow: auto;
  padding: 14px 16px;
}

.pc-overview__row {
  border: 1px solid var(--pc-line);
  border-radius: 4px;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(100px, .6fr) minmax(0, 1.4fr) auto;
  padding: 10px;
}

.pc-overview__row span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.pc-overview__row strong {
  color: #1f2d40;
  font-size: 13px;
  font-weight: 900;
  min-width: 0;
}

.pc-overview__row em {
  color: var(--pc-blue-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.pc-overview__empty {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}

.pc-overview__footer {
  background: var(--pc-soft);
  border-top: 1px solid var(--pc-line);
}

.pc-overview__footer strong {
  color: var(--pc-blue-dark);
  font-size: 18px;
  font-weight: 900;
}

.pc-overview__footer button {
  background: var(--pc-blue);
  border: 1px solid var(--pc-blue);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  min-height: 42px;
  padding: 0 18px;
}

.pc-overview__footer button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

@media (max-width: 1100px) {
  .pc-configurator__workspace {
    grid-template-columns: 1fr;
  }

  .pc-configurator__side {
    position: static;
  }
}

@media (max-width: 760px) {
  .pc-configurator__workspace {
    padding-top: 22px;
  }

  .pc-configurator__heading,
  .pc-configurator__toolbar,
  .pc-configurator__notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .pc-configurator__heading h1 {
    font-size: 24px;
  }

  .pc-configurator__steps {
    grid-template-columns: repeat(8, minmax(118px, 1fr));
    overflow-x: auto;
  }

  .pc-product {
    grid-template-columns: 84px minmax(0, 1fr);
    min-height: 142px;
    padding-right: 10px;
  }

  .pc-product img {
    height: 58px;
    width: 84px;
  }

  .pc-product__price {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding: 0 0 10px;
  }

}

@media (max-width: 520px) {
  .pc-product {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .pc-product__detail {
    border-radius: 4px;
    bottom: auto;
    height: 28px;
    left: 12px;
    top: 12px;
    transform: translateX(0);
    width: 78px;
    writing-mode: horizontal-tb;
  }

  .pc-product img {
    justify-self: center;
    width: 142px;
  }

  .pc-product__price {
    grid-column: auto;
  }

  .pc-build-row {
    grid-template-columns: 1fr 22px;
  }

  .pc-build-row strong {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .pc-configurator__bottom {
    grid-template-columns: 1fr;
  }

  .pc-overview__row {
    grid-template-columns: 1fr;
  }

  .pc-overview__footer {
    align-items: stretch;
    flex-direction: column;
  }
}
