/* ======================================================
   WooCommerce Product Customization – Frontend Styles
   ====================================================== */

.wpc-customization-wrapper {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}

.wpc-title {
  margin: 0 0 18px;
  font-size: 1.15em;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpc-title::before {
  content: '✏️';
}

/* ── Field group ── */
.wpc-field-group {
  margin-bottom: 18px;
}

.wpc-field-group:last-child {
  margin-bottom: 0;
}

/* ── Label ── */
.wpc-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.95em;
  color: #333;
}

.wpc-required {
  color: #c0392b;
  margin-left: 2px;
}

.wpc-price-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  font-size: 0.78em;
  font-weight: 600;
  background: #f0faf0;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  vertical-align: middle;
}

/* ── Input / Textarea ── */
.wpc-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95em;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.wpc-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

.wpc-input.wpc-invalid {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1) !important;
}

.wpc-textarea {
  min-height: 90px;
  resize: vertical;
}

/* ── Character counter ── */
.wpc-char-counter {
  margin: 5px 0 0;
  font-size: 0.8em;
  color: #777;
  text-align: right;
}

.wpc-char-current {
  font-weight: 600;
  color: #333;
  transition: color 0.15s;
}

.wpc-char-current.wpc-char-limit {
  color: #c0392b;
}

/* ── Error message ── */
.wpc-error-msg {
  display: block;
  margin-top: 5px;
  font-size: 0.82em;
  color: #c0392b;
  font-weight: 500;
}
