/* =========================================================================
   Optima Woo — Form styles
   ========================================================================= */

#optima-form-container {
  margin-bottom: 1.5em;
}

.optima-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: #555;
  font-size: 0.95em;
}

.optima-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid #ddd;
  border-top-color: #555;
  border-radius: 50%;
  animation: optima-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes optima-spin {
  to { transform: rotate(360deg); }
}

.optima-error {
  margin-bottom: 1em;
}

.optima-field-wrap {
  margin-bottom: 1.2em;
}

.optima-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 0.95em;
}

.optima-field {
  width: 100%;
  max-width: 480px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.optima-field:focus {
  outline: none;
  border-color: #96588a;
  box-shadow: 0 0 0 2px rgba(150, 88, 138, 0.15);
}

.optima-field:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.optima-textarea {
  min-height: 100px;
  resize: vertical;
}

.optima-select {
  appearance: auto;
}

.optima-input-range {
  padding: 0;
  border: none;
  box-shadow: none;
  cursor: pointer;
}

.optima-range-display {
  display: inline-block;
  margin-left: 10px;
  font-weight: 600;
  min-width: 36px;
}

.optima-radio-group,
.optima-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.optima-radio-row,
.optima-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.optima-radio-row input,
.optima-checkbox-row input {
  width: auto;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.optima-radio-row label,
.optima-checkbox-row label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}

.optima-price-display {
  margin: 1em 0;
  font-size: 1.4em;
  font-weight: 700;
}

.optima-price-label {
  font-size: 0.75em;
  font-weight: 400;
  color: #666;
  margin-right: 6px;
}

.optima-price-amount {
  color: #333;
}

.single_add_to_cart_button.optima-btn-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}
