/* 数量选择器独立样式 - 通过选择器隔离，不影响其他组件 */

/* 只针对数量选择器组件的样式 */
.eyewear-configurator__actions .eyewear-configurator__quantity-wrapper {
  margin-bottom: 1rem;
}

.eyewear-configurator__actions .eyewear-configurator__quantity-label {
  display: block;
  font-weight: 600;
  color: #111827;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.eyewear-configurator__actions .eyewear-configurator__quantity-input {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: #ffffff;
  max-width: 140px;
}

.eyewear-configurator__actions .eyewear-configurator__quantity-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s ease;
  user-select: none;
  border-radius: 0.375rem;
}

.eyewear-configurator__actions .eyewear-configurator__quantity-btn:first-child {
  border-radius: 0.375rem 0 0 0.375rem;
}

.eyewear-configurator__actions .eyewear-configurator__quantity-btn:last-child {
  border-radius: 0 0.375rem 0.375rem 0;
}

.eyewear-configurator__actions .eyewear-configurator__quantity-btn:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.eyewear-configurator__actions .eyewear-configurator__quantity-btn:active {
  background-color: #e5e7eb;
}

.eyewear-configurator__actions .eyewear-configurator__quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: transparent;
}

.eyewear-configurator__actions .eyewear-configurator__quantity-btn:disabled:hover {
  background-color: transparent;
  color: #374151;
}

.eyewear-configurator__actions .eyewear-configurator__quantity-field {
  width: 60px;
  height: 40px;
  text-align: center;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.eyewear-configurator__actions .eyewear-configurator__quantity-field::-webkit-outer-spin-button,
.eyewear-configurator__actions .eyewear-configurator__quantity-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.eyewear-configurator__actions .eyewear-configurator__quantity-field:focus {
  background-color: #f9fafb;
}

/* 移动端数量选择器调整 - 通过选择器隔离 */
@media screen and (max-width: 768px) {
  .eyewear-configurator__actions .eyewear-configurator__quantity-input {
    max-width: 120px;
  }

  .eyewear-configurator__actions .eyewear-configurator__quantity-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .eyewear-configurator__actions .eyewear-configurator__quantity-field {
    width: 48px;
    height: 36px;
    font-size: 0.875rem;
  }
}

/* 超小屏幕数量选择器调整 - 通过选择器隔离 */
@media screen and (max-width: 480px) {
  .eyewear-configurator__actions .eyewear-configurator__quantity-label {
    font-size: 0.8rem;
  }

  .eyewear-configurator__actions .eyewear-configurator__quantity-input {
    max-width: 110px;
  }

  .eyewear-configurator__actions .eyewear-configurator__quantity-btn {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .eyewear-configurator__actions .eyewear-configurator__quantity-field {
    width: 46px;
    height: 32px;
    font-size: 0.8rem;
  }
}