/* ============================================================
   HivePress Number Field Enhancements
   Only for .hp-number-enhanced wrappers
   ============================================================ */

/* Wrapper layout */
.hp-form__field.hp-number-enhanced {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: 1.5rem;
}

/* Label styling */
.hp-form__field.hp-number-enhanced .hp-field__label {
  flex: 1 1 auto;
  margin: 0;
  font-size: 15px;
  color: #0A0B0B;
  white-space: normal;
  line-height: 1.4;
}

/* Number input container */
.hp-form__field.hp-number-enhanced .hp-number-input {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  background: #F9F9F9;
  border: 1px solid #E5DCCF;
  border-radius: 12px;
  padding: 5px 10px;
  min-width: 140px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Input field */
.hp-form__field.hp-number-enhanced .hp-number-input input[type="number"] {
  border: none;
  background: transparent;
  text-align: center;
  font-size: 15px;
  width: 40px;
  margin: 0 8px;
  pointer-events: none;
}

/* Buttons */
.hp-form__field.hp-number-enhanced .hp-btn-minus,
.hp-form__field.hp-number-enhanced .hp-btn-plus {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  color: #0A0B0B;
  transition: color 0.2s ease;
}

.hp-form__field.hp-number-enhanced .hp-btn-minus:hover,
.hp-form__field.hp-number-enhanced .hp-btn-plus:hover {
  color: #333;
}

/* ============================================================
   Responsive fixes
   ============================================================ */

/* ✅ Force stacked layout when sidebar is narrow (970px → 767px) */
@media (max-width: 970px) and (min-width: 768px) {
  .hp-form__field.hp-number-enhanced {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-form__field.hp-number-enhanced .hp-field__label {
    margin-bottom: 6px;
  }

  .hp-form__field.hp-number-enhanced .hp-number-input {
    width: 100%;
    min-width: auto;
  }
}

/* Tablet & below (≤768px) */
@media (max-width: 768px) {
  .hp-form__field.hp-number-enhanced {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-form__field.hp-number-enhanced .hp-field__label {
    margin-bottom: 6px;
  }

  .hp-form__field.hp-number-enhanced .hp-number-input {
    width: 100%;
    min-width: auto;
    justify-content: space-between;
  }

  .hp-form__field.hp-number-enhanced .hp-number-input input[type="number"] {
    flex: 1 1 auto;
  }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
  .hp-form__field.hp-number-enhanced .hp-number-input {
    min-width: auto;
    padding: 5px 8px;
  }

  .hp-form__field.hp-number-enhanced .hp-number-input input[type="number"] {
    width: 100%;
    max-width: 60px;
  }
}
