.erpa-overview,
.erpa-detail {
  --erpa-border: #d8dcf7;
  --erpa-text: #1b2a5c;
  --erpa-muted: #53608d;
  --erpa-bg: #ffffff;
  --erpa-accent: #1b2a5c;
  --erpa-lightblue: #ecf0ff;
  --erpa-beige: #c09a5d;
  color: var(--erpa-text);
}

.erpa-overview__layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(230px, 260px) 1fr;
}

.erpa-overview__layout.is-single {
  grid-template-columns: 1fr;
}

.erpa-overview__sidebar {
  border: 1px solid var(--erpa-border);
  border-radius: 14px;
  background: var(--erpa-bg);
  padding: 1rem;
  max-height: 420px;
  overflow: auto;
}

.erpa-overview__sidebar-title {
  color: var(--erpa-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.erpa-tree,
.erpa-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.erpa-tree__children {
  border-left: 1px solid var(--erpa-border);
  margin-left: 0.4rem;
  padding-left: 0.5rem;
}

.erpa-tree__node {
  margin-bottom: 0.2rem;
}

.erpa-tree__link {
  text-decoration: none;
  color: var(--erpa-text);
  display: block;
  padding: 0.38rem 0.55rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.erpa-tree__link:hover {
  background: var(--erpa-lightblue);
}

.erpa-tree__link.is-active {
  background: var(--erpa-lightblue);
  font-weight: 700;
}

.erpa-overview__header {
  margin-bottom: 0.75rem;
}

.erpa-overview__title {
  margin: 0;
  font-size: 1.8rem;
}

.erpa-overview__controls {
  display: grid;
  grid-template-columns: minmax(260px, 3fr) repeat(3, minmax(180px, 1.5fr));
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.erpa-control {
  position: relative;
}

.erpa-control__search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--erpa-muted);
  pointer-events: none;
  line-height: 1;
}

.erpa-control input,
.erpa-control select {
  width: 100%;
  height: 44px;
  border: 1px solid #dbe2f3;
  border-radius: 999px;
  padding: 0 1rem;
  font-size: 1rem;
  color: var(--erpa-text);
  background: #f4f7ff;
}

.erpa-control--search input {
  background: #fff;
  padding-left: 2.6rem;
}

.erpa-control input:focus,
.erpa-control select:focus,
.erpa-price-filter input:focus {
  outline: none;
  border-color: #1b2a5c;
  box-shadow: 0 0 0 2px rgba(27, 42, 92, 0.15);
}

.erpa-price-filter {
  position: relative;
}

.erpa-price-filter > summary {
  height: 44px;
  border: 1px solid #dbe2f3;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f7ff;
  padding: 0 1rem;
  cursor: pointer;
  font-size: 0.92rem;
  list-style: none;
}

.erpa-price-filter > summary::-webkit-details-marker {
  display: none;
}

.erpa-price-filter__content {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 9;
  border: 1px solid #dbe2f3;
  border-radius: 10px;
  background: #fff;
  padding: 0.75rem;
  box-shadow: 0 8px 26px rgba(12, 24, 50, 0.12);
  display: block;
}

.erpa-price-slider {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.erpa-price-slider__track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: #dbe2f3;
}

.erpa-price-slider__range {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--erpa-accent);
}

.erpa-price-slider input[type='range'] {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 6px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.erpa-price-slider input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--erpa-accent);
  box-shadow: 0 0 0 1px var(--erpa-accent);
  pointer-events: auto;
  cursor: pointer;
}

.erpa-price-slider input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--erpa-accent);
  box-shadow: 0 0 0 1px var(--erpa-accent);
  pointer-events: auto;
  cursor: pointer;
}

.erpa-price-slider input[type='range']::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

.erpa-price-slider input[type='range']::-moz-range-track {
  height: 6px;
  background: transparent;
}

.erpa-price-slider__labels {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--erpa-muted);
}

.erpa-color-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--erpa-muted);
}

.erpa-color-chip__swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid #d2d7eb;
}

.erpa-overview__controls button {
  height: 44px;
  border: 1px solid var(--erpa-accent);
  border-radius: 999px;
  background: var(--erpa-accent);
  color: #fff;
  font-weight: 600;
  padding: 0 1rem;
  cursor: pointer;
}

.erpa-overview__controls button:hover {
  filter: brightness(1.08);
}

.erpa-overview__grid {
  display: grid;
  grid-template-columns: repeat(var(--erpa-columns, 4), minmax(220px, 1fr));
  gap: 1rem;
}

.erpa-overview__card {
  border: 1px solid var(--erpa-border);
  border-radius: 14px;
  background: var(--erpa-bg);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
}

.erpa-overview__card:hover {
  border-color: #c5cfee;
}

.erpa-overview__card:focus-visible {
  outline: 2px solid rgba(27, 42, 92, 0.35);
  outline-offset: 2px;
}

.erpa-overview__badge {
  border: 1px solid var(--erpa-beige);
  color: var(--erpa-beige);
  border-radius: 3px;
  padding: 0.1rem 0.5rem;
  text-transform: uppercase;
  font-size: 0.82rem;
  width: fit-content;
}

.erpa-overview__media {
  margin-top: 0.7rem;
  border-radius: 12px;
  background: #f6f8ff;
  border: 1px solid #edf1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  overflow: hidden;
  text-decoration: none;
  color: var(--erpa-text);
}

.erpa-overview__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.erpa-overview__card-title {
  margin: 0.85rem 0 0.3rem;
  font-size: 1rem;
}

.erpa-overview__meta {
  margin: 0.08rem 0;
  color: var(--erpa-muted);
  font-size: 0.87rem;
}

.erpa-overview__price-grid {
  margin-top: 0.6rem;
  border: 1px solid #dce2f4;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.erpa-overview__price-grid > div {
  padding: 0.45rem 0.55rem;
}

.erpa-overview__price-grid > div + div {
  border-left: 1px solid #dce2f4;
}

.erpa-overview__price-grid p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--erpa-muted);
}

.erpa-overview__price-grid strong {
  font-size: 0.92rem;
}

.erpa-overview__link {
  margin-top: auto;
  padding-top: 0.8rem;
  color: var(--erpa-accent);
  text-decoration: none;
  font-weight: 600;
}

.erpa-overview__link:hover {
  text-decoration: underline;
}

.erpa-overview__empty {
  color: var(--erpa-muted);
  font-size: 0.95rem;
}

.erpa-overview__pagination {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.erpa-overview__page {
  border: 1px solid var(--erpa-border);
  border-radius: 999px;
  min-width: 2.4rem;
  padding: 0.28rem 0.78rem;
  color: var(--erpa-text);
  text-decoration: none;
  text-align: center;
}

.erpa-overview__page--nav {
  min-width: 2.6rem;
  text-align: center;
}

.erpa-overview__page.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.erpa-overview__page.is-active {
  border-color: var(--erpa-accent);
  background: var(--erpa-accent);
  color: #fff;
  font-weight: 700;
}

.erpa-overview__page--ellipsis {
  border-style: dashed;
}

.erpa-tree--brands .erpa-tree__link {
  font-size: 0.8rem;
  color: var(--erpa-muted);
}

.erpa-tree--brands .erpa-tree__link.is-active {
  color: var(--erpa-text);
}

.erpa-detail {
  background: var(--erpa-bg);
}

.erpa-detail__container {
  max-width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0 1rem;
}

.erpa-detail__hero {
  background: var(--erpa-accent);
  color: #fff;
  padding: 1.5rem 0 2rem;
}

.erpa-detail__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.erpa-detail__breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.erpa-detail__breadcrumb a:hover {
  text-decoration: underline;
}

.erpa-detail__title-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 0.45rem;
}

.erpa-detail__title {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.12;
  color: #fff;
}

.erpa-detail__badge {
  border: 1px solid var(--erpa-beige);
  color: var(--erpa-beige);
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
  font-size: 0.88rem;
  line-height: 1.45;
  text-transform: uppercase;
  white-space: nowrap;
}

.erpa-detail__meta {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.65);
}

.erpa-detail__body {
  padding: 2.5rem 0 3.5rem;
}

.erpa-detail__layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
}

.erpa-detail__gallery {
  display: grid;
  gap: 0.75rem;
}

.erpa-detail__main-image-wrap {
  position: relative;
  background: #fff;
  border: 1px solid #edf1ff;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.erpa-detail__main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.erpa-detail__main-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  color: var(--erpa-muted);
  border: 1px solid #edf1ff;
}

.erpa-detail__gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--erpa-text);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
}

.erpa-detail__gallery-nav.is-prev {
  left: 0.8rem;
}

.erpa-detail__gallery-nav.is-next {
  right: 0.8rem;
}

.erpa-detail__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.erpa-detail__thumb {
  width: 80px;
  height: 80px;
  border: 1px solid #dbe2f3;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.erpa-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.erpa-detail__thumb.is-active,
.erpa-detail__thumb[aria-current='true'] {
  border-color: var(--erpa-accent);
  box-shadow: 0 0 0 2px rgba(27, 42, 92, 0.22);
}

.erpa-detail__sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.erpa-detail__price-card {
  border: 1px solid rgba(216, 220, 247, 0.65);
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.erpa-detail__price-grid {
  border: 1px solid rgba(27, 42, 92, 0.12);
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.erpa-detail__price-grid > div {
  padding: 0.55rem 0.65rem;
}

.erpa-detail__price-grid > div + div {
  border-left: 1px solid rgba(27, 42, 92, 0.2);
}

.erpa-detail__price-grid p {
  margin: 0;
  color: rgba(27, 42, 92, 0.5);
  font-size: 0.85rem;
}

.erpa-detail__price-grid strong {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 700;
}

.erpa-detail__cart-box {
  display: grid;
  gap: 0.55rem;
}

.erpa-detail__quantity-label {
  color: var(--erpa-text);
  font-size: 0.92rem;
  font-weight: 600;
}

.erpa-detail__quantity-input {
  height: 42px;
  border: 1px solid #dbe2f3;
  border-radius: 8px;
  padding: 0 0.7rem;
  font-size: 1rem;
}

.erpa-detail__cart-button {
  height: 44px;
  padding: 0 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--erpa-accent);
  background: var(--erpa-accent);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
}

.erpa-detail__cart-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.85rem;
}

.erpa-detail__cart-status.is-success {
  color: #1f7a34;
}

.erpa-detail__cart-status.is-error {
  color: #a32121;
}

.erpa-detail__properties {
  border: 1px solid rgba(216, 220, 247, 0.65);
}

.erpa-detail__properties-title {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(216, 220, 247, 0.65);
  font-weight: 600;
}

.erpa-detail__properties-list {
  margin: 0;
  padding: 0.95rem 1.25rem;
  list-style: disc;
  display: grid;
  gap: 0.5rem;
}

.erpa-detail__properties-list li {
  color: var(--erpa-text);
  font-size: 0.92rem;
}

.erpa-detail__properties-list strong {
  margin-right: 0.2rem;
}

.erpa-cart {
  padding: 1.5rem 0 2.5rem;
}

.erpa-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.erpa-cart__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.erpa-cart__continue {
  color: var(--erpa-accent);
  text-decoration: none;
  font-weight: 600;
}

.erpa-cart__body {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
}

.erpa-cart__items,
.erpa-cart__summary {
  border: 1px solid var(--erpa-border);
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
}

.erpa-cart__empty {
  margin: 0;
  color: var(--erpa-muted);
}

.erpa-cart__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.erpa-cart__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  border: 1px solid #e6ebfb;
  border-radius: 10px;
  padding: 0.8rem;
}

.erpa-cart__item-name {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.erpa-cart__item-meta {
  margin: 0;
  color: var(--erpa-muted);
}

.erpa-cart__item-side p {
  margin: 0.1rem 0;
  font-size: 0.88rem;
  text-align: right;
}

.erpa-cart__remove {
  margin-top: 0.35rem;
  border: 1px solid #d8dcf7;
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

.erpa-cart__totals p {
  margin: 0.2rem 0;
}

.erpa-cart__form {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.erpa-cart__form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.87rem;
  color: var(--erpa-muted);
}

.erpa-cart__form input,
.erpa-cart__form textarea {
  width: 100%;
  border: 1px solid #d8dcf7;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
}

.erpa-cart__honeypot {
  position: absolute;
  left: -9999px;
}

.erpa-cart__submit {
  height: 44px;
  border: 1px solid var(--erpa-accent);
  background: var(--erpa-accent);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.erpa-cart__status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.86rem;
}

.erpa-cart__status.is-success {
  color: #1f7a34;
}

.erpa-cart__status.is-error {
  color: #a32121;
}

@media (max-width: 1180px) {
  .erpa-overview__controls {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
}

@media (max-width: 980px) {
  .erpa-overview__layout {
    grid-template-columns: 1fr;
  }

  .erpa-overview__sidebar {
    max-height: none;
  }

  .erpa-overview__grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .erpa-cart__body {
    grid-template-columns: 1fr;
  }

  .erpa-detail__layout {
    grid-template-columns: 1fr;
  }

  .erpa-detail__main-image-wrap {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 680px) {
  .erpa-overview__controls {
    grid-template-columns: 1fr;
  }

  .erpa-overview__grid {
    grid-template-columns: 1fr;
  }

  .erpa-detail__title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .erpa-detail__main-image-wrap {
    aspect-ratio: 16 / 9;
  }

  .erpa-detail__thumb {
    width: 64px;
    height: 64px;
  }

  .erpa-cart__item {
    grid-template-columns: 1fr;
  }

  .erpa-cart__item-side p {
    text-align: left;
  }
}

/* M15: Multi-step cart parity overrides */
.erpa-cart {
  padding: 0;
}

.erpa-cart__stepper-shell {
  background: #1b2a5c;
  padding: 1.25rem 0;
  margin-bottom: 2rem;
}

.erpa-cart__stepper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.erpa-cart__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0.25rem;
}

.erpa-cart__step span {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  background: transparent;
}

.erpa-cart__step em {
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 600;
}

.erpa-cart__step.is-active span,
.erpa-cart__step.is-complete span {
  background: #fff;
  color: #1b2a5c;
}

.erpa-cart__step:disabled {
  opacity: 0.6;
  cursor: default;
}

.erpa-cart__body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
}

.erpa-cart__main,
.erpa-cart__summary {
  border: 1px solid #d8dcf7;
  border-radius: 12px;
  background: #fff;
}

.erpa-cart__main {
  padding: 1.25rem;
}

.erpa-cart__summary {
  display: flex;
  flex-direction: column;
}

.erpa-cart__panel {
  display: none;
}

.erpa-cart__panel.is-active {
  display: block;
}

.erpa-cart__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.erpa-cart__panel-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: #0f1532;
}

.erpa-cart__panel-lead {
  margin: 0.3rem 0 1rem;
  color: #5e6889;
}

.erpa-cart__continue {
  color: #1b2a5c;
  text-decoration: none;
  font-weight: 600;
}

.erpa-cart__items {
  border: 1px solid #edf0fb;
  border-radius: 10px;
  padding: 0.75rem;
}

.erpa-cart__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.erpa-cart__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid #e8ecfa;
  border-radius: 10px;
  padding: 0.65rem;
}

.erpa-cart__item-image {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  border: 1px solid #e6ebfb;
  object-fit: contain;
  background: #fff;
}

.erpa-cart__item-name {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.erpa-cart__item-meta {
  margin: 0.1rem 0;
  color: #5e6889;
}

.erpa-cart__item-side {
  text-align: right;
}

.erpa-cart__item-side p {
  margin: 0;
}

.erpa-cart__remove {
  margin-top: 0.45rem;
  border: 1px solid #d8dcf7;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

.erpa-cart__empty {
  color: #5e6889;
  margin: 0;
}

.erpa-cart__panel-actions {
  margin-top: 0.9rem;
}

.erpa-cart__grid {
  display: grid;
  gap: 0.75rem;
}

.erpa-cart__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.erpa-cart__grid label {
  display: grid;
  gap: 0.35rem;
  color: #5e6889;
  font-size: 0.88rem;
}

.erpa-cart__grid input,
.erpa-cart__grid textarea,
.erpa-cart__grid select {
  width: 100%;
  border: 1px solid #d8dcf7;
  border-radius: 10px;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
}

.erpa-cart__grid textarea {
  min-height: 110px;
}

.erpa-cart__sub-title {
  margin: 1.2rem 0 0.7rem;
  font-size: 1rem;
}

.erpa-cart__full {
  grid-column: 1 / -1;
}

.erpa-cart__checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.erpa-cart__checkbox input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
}

.erpa-cart__grid input.is-invalid,
.erpa-cart__grid textarea.is-invalid,
.erpa-cart__grid select.is-invalid {
  border-color: #a32121;
}

.erpa-cart__field-error {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #a32121;
}

.erpa-cart__submit-note {
  margin-top: 1rem;
  border: 1px solid #e8ecfa;
  border-radius: 10px;
  background: #f8faff;
  padding: 0.85rem;
  color: #455173;
  font-size: 0.92rem;
}

.erpa-cart__review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.erpa-cart__review-grid h3 {
  margin: 0 0 0.45rem;
}

.erpa-cart__review-grid p {
  margin: 0.2rem 0;
}

.erpa-cart__summary-head {
  padding: 1.1rem 1.1rem 0;
}

.erpa-cart__summary-title {
  margin: 0;
  font-size: 1.3rem;
}

.erpa-cart__summary-sub {
  margin: 0.25rem 0 0;
  color: #5e6889;
  font-size: 0.9rem;
}

.erpa-cart__totals {
  padding: 1rem 1.1rem;
  border-top: 1px solid #edf0fb;
  border-bottom: 1px solid #edf0fb;
}

.erpa-cart__totals p {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0.35rem 0;
}

.erpa-cart__totals span {
  color: #5e6889;
}

.erpa-cart__summary-info {
  padding: 1rem 1.1rem;
  font-size: 0.82rem;
  color: #4d587a;
  line-height: 1.45;
}

.erpa-cart__summary-actions {
  padding: 0 1.1rem 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.erpa-cart__submit,
.erpa-cart__ghost {
  min-height: 44px;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.erpa-cart__submit {
  border: 1px solid #1b2a5c;
  background: #1b2a5c;
  color: #fff;
}

.erpa-cart__submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.erpa-cart__ghost {
  border: 1px solid #d8dcf7;
  background: #fff;
  color: #1b2a5c;
}

.erpa-cart__status {
  margin: 0 1.1rem 1rem;
  min-height: 1.2em;
  font-size: 0.86rem;
}

.erpa-cart__status.is-success {
  color: #1f7a34;
}

.erpa-cart__status.is-error {
  color: #a32121;
}

.erpa-cart__panel--success {
  text-align: center;
  padding: 1.5rem 0.75rem;
}

@media (max-width: 980px) {
  .erpa-cart__body {
    grid-template-columns: 1fr;
  }

  .erpa-cart__stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .erpa-cart__stepper {
    grid-template-columns: 1fr;
  }

  .erpa-cart__grid--2,
  .erpa-cart__review-grid {
    grid-template-columns: 1fr;
  }

  .erpa-cart__item {
    grid-template-columns: 1fr;
  }

  .erpa-cart__item-side {
    text-align: left;
  }

  .erpa-cart__item-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
