.dye-ordering {
  margin: 18px 0 28px;
  --dye-grid: 80px 2.5fr 1.5fr 160px 120px;
}

.dye-ordering__group-title {
  margin: 18px 0 8px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dye-ordering__notices:empty {
  display: none;
}

.dye-ordering__table {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.04);
  margin: 0 auto 14px;
  max-width: 1200px;
}

.dye-ordering__header,
.dye-ordering__row {
  display: grid;
  grid-template-columns: var(--dye-grid);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
}

.dye-ordering__header {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  letter-spacing: 0.2px;
}

.dye-ordering__row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 160ms ease;
}

.dye-ordering__row:hover {
  background: rgba(0, 0, 0, 0.02);
}

.dye-ordering__row:last-child {
  border-bottom: none;
}

.dye-ordering__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dye-ordering__img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dye-ordering__name-title {
  font-weight: 600;
  line-height: 1.2;
}

.dye-ordering__sizes {
  display: grid;
  gap: 4px;
}

.dye-ordering__attr {
  display: grid;
  gap: 2px;
}

.dye-ordering__attr-label {
  font-size: 12px;
  opacity: 0.7;
  line-height: 1;
}

.dye-ordering__select {
  width: 100%;
  max-width: 100%;
  border-radius: 999px;
  padding: 8px 32px 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='rgba(0,0,0,0.45)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
  transition: box-shadow 140ms ease, transform 140ms ease, opacity 140ms ease;
  appearance: none;
}

.dye-ordering__select:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
  background-position: right 9px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='rgba(0,0,0,0.6)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.dye-ordering__select:focus {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
  opacity: 0.98;
  background-position: right 9px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='rgba(0,0,0,0.7)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.dye-ordering__select:focus-visible {
  outline: none;
}

.dye-ordering__qty {
  display: grid;
  grid-template-columns: 32px 40px 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  justify-self: center;
}

.dye-ordering__qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 18px;
  line-height: 32px;
  cursor: pointer;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.dye-ordering__qty-btn:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}

.dye-ordering__qty-btn:active {
  transform: translateY(0);
}

.dye-ordering__qty-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.dye-ordering .dye-ordering__qty-input {
  width: 40px;
  height: 32px;
  text-align: center !important;
  text-align-last: center;
  direction: ltr;
  font-size: 14px;
  font-weight: 500;
  line-height: 32px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-kerning: none;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box;
  display: block;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.dye-ordering__qty-input::-webkit-outer-spin-button,
.dye-ordering__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dye-ordering__qty-input::-webkit-textfield-decoration-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

.dye-ordering__qty-input[type="number"] {
  -moz-appearance: textfield;
}

.dye-ordering__qty-input[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.dye-ordering__price {
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}

.dye-ordering__price-col {
  text-align: center;
}

.dye-ordering__price-html {
  color: var(--wd-primary-color, #f57f17);
}

.dye-ordering__price-html.is-updated {
  animation: dye-ordering-price-pop 160ms ease;
}

@keyframes dye-ordering-price-pop {
  from {
    opacity: 0.6;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dye-ordering__sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.dye-ordering__price del {
  opacity: 0.55;
  margin-right: 6px;
  font-weight: 600;
}

.dye-ordering__price ins {
  text-decoration: none;
}

.dye-ordering__footer {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.dye-ordering__add.button {
  flex: 1 1 auto;
}

@media (max-width: 900px) {
  .dye-ordering__header {
    display: none;
  }

  .dye-ordering__row {
    grid-template-columns: 86px 1fr;
    grid-template-areas:
      "img name"
      "img sizes"
      "img qty"
      "img price";
    align-items: start;
  }

  .dye-ordering__img-wrap {
    grid-area: img;
  }

  .dye-ordering__name {
    grid-area: name;
  }

  .dye-ordering__sizes {
    grid-area: sizes;
  }

  .dye-ordering__qty {
    grid-area: qty;
    justify-content: flex-start;
    gap: 8px;
  }

  .dye-ordering__price {
    grid-area: price;
    text-align: left;
  }
}
