.ch-mco {
  border: 1px solid #d8dde3;
  padding: 16px;
  margin: 0 0 18px;
  max-width: 620px;
  background: #fff;
}

.ch-mco__title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.ch-mco__grid {
  display: grid;
  gap: 8px;
}

.ch-mco__row {
  display: grid;
  grid-template-columns: 24px minmax(80px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.ch-mco__swatch {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 50%;
}

.ch-mco__swatch--blue {
  background: #2563eb;
}

.ch-mco__swatch--orange {
  background: #f97316;
}

.ch-mco__swatch--white {
  background: #fff;
}

.ch-mco__swatch--yellow {
  background: #facc15;
}

.ch-mco__swatch--red {
  background: #dc2626;
}

.ch-mco__swatch--green {
  background: #16a34a;
}

.ch-mco__swatch--pink {
  background: #ec4899;
}

.ch-mco__label {
  font-weight: 600;
}

.ch-mco__stepper {
  display: grid;
  grid-template-columns: 36px 54px 36px;
  align-items: center;
}

.ch-mco__button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #9aa4b2;
  background: #f8fafc;
  color: #111827;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ch-mco__button:hover,
.ch-mco__button:focus {
  background: #eef2f7;
}

.ch-mco__input {
  width: 54px;
  height: 36px;
  border: solid #9aa4b2;
  border-width: 1px 0;
  text-align: center;
  appearance: textfield;
}

.ch-mco__input::-webkit-outer-spin-button,
.ch-mco__input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.ch-mco__status {
  margin-top: 14px;
}

.ch-mco__bar {
  height: 8px;
  overflow: hidden;
  background: #e5e7eb;
}

.ch-mco__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: #15803d;
  transition: width 0.18s ease;
}

.ch-mco__message {
  margin: 8px 0 0;
  font-weight: 600;
}

.ch-mco__message.is-ready {
  color: #15803d;
}

.ch-mco__native-quantity,
.product .quantity:has(.ch-mco__native-quantity) {
  display: none !important;
}

.ch-mco-disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
}

.ch-mco-quote-breakdown {
  display: inline-block;
  margin-top: 4px;
  color: #4b5563;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .ch-mco {
    padding: 14px;
  }

  .ch-mco__row {
    grid-template-columns: 22px 1fr;
  }

  .ch-mco__stepper {
    grid-column: 2;
    justify-self: start;
  }
}
