/* EU Return for WooCommerce — Public CSS */

.rw-withdrawal-form {
  max-width: 580px;
  margin: 0 auto;
  font-family: inherit;
}

.rw-title {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 8px;
  border-bottom: 2px solid #333;
  padding-bottom: 8px;
}

.rw-description {
  color: #555;
  margin-bottom: 24px;
  font-size: 0.95em;
}

/* Form fields */
.rw-field {
  margin-bottom: 18px;
}

.rw-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.9em;
}

.rw-field input[type="text"],
.rw-field input[type="email"],
.rw-field input[type="number"],
.rw-field select,
.rw-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s;
}

.rw-field input:focus,
.rw-field select:focus,
.rw-field textarea:focus {
  border-color: #333;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

.rw-optional {
  font-weight: 400;
  color: #777;
  font-size: 0.85em;
}

/* Buttons */
.rw-btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 0.95em;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.15s, opacity 0.15s;
  text-decoration: none;
  line-height: 1;
}

.rw-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rw-btn-primary {
  background: #333;
  color: #fff;
}

.rw-btn-primary:hover:not(:disabled) {
  background: #111;
}

.rw-btn-secondary {
  background: transparent;
  color: #333;
  border: 1px solid #ccc;
  margin-left: 8px;
}

.rw-btn-secondary:hover {
  background: #f5f5f5;
}

.rw-submit {
  margin-top: 24px;
}

/* Messages */
.rw-messages {
  margin-top: 12px;
  min-height: 20px;
}

.rw-messages .rw-error {
  color: #c62828;
  background: #fde8e8;
  border: 1px solid #f5c6c6;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.9em;
}

.rw-messages .rw-loading {
  color: #555;
  font-style: italic;
  font-size: 0.9em;
}

/* Step 2 — Confirm */
.rw-confirm-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 24px;
}

.rw-confirm-intro {
  margin-bottom: 16px;
  font-size: 0.95em;
}

.rw-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.9em;
}

.rw-summary-table th {
  text-align: left;
  width: 38%;
  padding: 8px 10px;
  color: #555;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  vertical-align: top;
}

.rw-summary-table td {
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  vertical-align: top;
}

.rw-items-list {
  margin: 0;
  padding-left: 16px;
}

.rw-legal-notice {
  background: #fffde7;
  border-left: 4px solid #ffc107;
  padding: 12px 16px;
  font-size: 0.85em;
  margin-bottom: 20px;
  border-radius: 0 4px 4px 0;
}

.rw-confirm-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Honeypot — visually hidden, accessible to bots */
.rw-hp {
  display: none;
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Submitted view (read-only summary) */
.rw-submitted-box {
  /* inherits .rw-withdrawal-form layout */
}

.rw-submitted-note {
  background: #e8f4fd;
  border-left: 4px solid #2196f3;
  padding: 12px 16px;
  font-size: 0.88em;
  border-radius: 0 4px 4px 0;
  margin: 20px 0;
  color: #1a5276;
}

/* Success */
.rw-success-box {
  text-align: center;
  padding: 32px 20px;
  background: #f1f8f1;
  border: 1px solid #c3e6c3;
  border-radius: 6px;
}

.rw-success-icon {
  font-size: 2.5em;
  color: #2e7d32;
  margin-bottom: 12px;
  line-height: 1;
}

.rw-success-note {
  color: #555;
  font-size: 0.9em;
}
