/* Scoped to ParsKala Smart ATC controls. No theme files are changed. */
[data-prk-smart-atc="1"].kh-ic-has-qty > .prk-smart-atc__button {
  display: none !important;
}

[data-prk-smart-atc="1"] .kh-ic-stepper {
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  direction: ltr;
  height: 36px;
  min-width: 112px;
  padding: 2px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 5px rgb(0 0 0 / 6%);
  vertical-align: middle;
  font-family: inherit;
}

[data-prk-smart-atc="1"].kh-ic-has-qty .kh-ic-stepper {
  display: inline-flex;
}

[data-prk-smart-atc="1"] .kh-ic-stepper__button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #e33a2f;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 120ms ease;
}

[data-prk-smart-atc="1"] .kh-ic-stepper__minus {
  color: #6e6d7a;
}

[data-prk-smart-atc="1"] .kh-ic-stepper__button:hover {
  background: #fff0ef;
}

[data-prk-smart-atc="1"] .kh-ic-stepper__button:focus-visible {
  outline: 2px solid #f45147;
  outline-offset: 1px;
}

[data-prk-smart-atc="1"] .kh-ic-stepper__button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

[data-prk-smart-atc="1"] .kh-ic-stepper__button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
  pointer-events: none;
}

[data-prk-smart-atc="1"] .kh-ic-stepper__quantity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 30px;
  min-width: 30px;
  font-size: 14px;
  line-height: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #242424;
}

[data-prk-smart-atc="1"].kh-ic-is-saving .kh-ic-stepper {
  border-color: #f3b2ab;
}

[data-prk-smart-atc="1"] .kh-ic-error {
  display: none;
  position: absolute;
  z-index: 25;
  top: calc(100% + 4px);
  right: 0;
  width: max-content;
  max-width: min(250px, 70vw);
  padding: 6px 9px;
  border: 1px solid #ffd2d2;
  border-radius: 6px;
  background: #fff7f7;
  color: #a91a1a;
  font-size: 11px;
  line-height: 1.7;
  text-align: right;
  white-space: normal;
  box-shadow: 0 3px 10px rgb(0 0 0 / 8%);
}

[data-prk-smart-atc="1"] .kh-ic-error--visible {
  display: block;
}

[data-prk-smart-atc="1"].kh-ic-has-qty {
  position: relative;
  max-width: 100%;
}

@media (max-width: 640px) {
  [data-prk-smart-atc="1"] .kh-ic-stepper {
    min-width: 104px;
    height: 34px;
  }

  [data-prk-smart-atc="1"] .kh-ic-stepper__button {
    flex-basis: 30px;
    width: 30px;
    height: 28px;
  }

  [data-prk-smart-atc="1"] .kh-ic-stepper__quantity {
    min-width: 28px;
  }
}
