/* PrestaHU OnlineWithdraw — front CSS
 *
 * SZABÁLY: csak a form-mezőket és a form-szintű elemeket stílusozzuk.
 * A user által szerkesztett .pshuow-intro és .pshuow-success blokkokat NEM
 * érintjük — azok formázása a WYSIWYG-be írt HTML felelőssége.
 */

/* Form layout */
.pshuow-form { display: block; }
.pshuow-form .pshuow-field { margin-bottom: 1.25rem; }
.pshuow-form label,
.pshuow-form .pshuow-field > label,
.pshuow-form .pshuow-radio,
.pshuow-form .pshuow-checkbox {
  text-align: left;
}
.pshuow-form .pshuow-field > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: inherit;
}
.pshuow-form .pshuow-req { color: var(--bs-danger, var(--danger, currentColor)); margin-left: 2px; }

/* Inputs: the look (border, colour, focus) comes from the theme's .form-control */
.pshuow-form textarea.form-control,
.pshuow-form textarea { min-height: 110px; resize: vertical; }

.pshuow-form .form-control-file {
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.pshuow-form .form-text {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Checkbox + radio groups */
.pshuow-form .pshuow-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
  line-height: 1.4;
}
.pshuow-form .pshuow-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}
.pshuow-form .pshuow-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.pshuow-form .pshuow-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: normal;
  cursor: pointer;
}

/* Legal notice: links to the terms and privacy pages */
.pshuow-legal-notice { margin: 1rem 0; line-height: 1.5; }
.pshuow-legal-notice a { text-decoration: underline; }

/* Submit */
.pshuow-form .pshuow-submit { margin-top: 1.75rem; }
.pshuow-form .pshuow-submit .btn { padding: 0.7rem 1.75rem; font-weight: 600; }

/* reCAPTCHA wrapper */
.pshuow-form .pshuow-recaptcha { margin: 1rem 0 1.25rem; }

/* Honeypot — anti-bot, must be visually hidden but in DOM */
.pshuow-form .pshuow-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Status badges: outlined pill, tone from the theme's colour variables */
.pshuow-status-badge {
  --pshuow-tone: currentColor;
  display: inline-block;
  padding: 0.3em 0.65em;
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.1;
  color: var(--pshuow-tone);
  border: 1px solid var(--pshuow-tone);
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: baseline;
}
.pshuow-status-badge.pshuow-color-danger  { --pshuow-tone: var(--bs-danger, var(--danger, currentColor)); }
.pshuow-status-badge.pshuow-color-info    { --pshuow-tone: var(--bs-info, var(--info, currentColor)); }
.pshuow-status-badge.pshuow-color-warning { --pshuow-tone: var(--bs-warning-text-emphasis, var(--bs-body-color, currentColor)); }
.pshuow-status-badge.pshuow-color-success { --pshuow-tone: var(--bs-success, var(--success, currentColor)); }
.pshuow-status-badge.pshuow-color-default { --pshuow-tone: var(--bs-secondary-color, currentColor); }

/* History table: no overflow on narrow screens */
.pshuow-history .pshuow-table-wrap { overflow-x: auto; }

/* History link (above the form) */
.pshuow-history-link { margin: 0 0 1rem; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 480px) {
  .pshuow-form .form-control,
  .pshuow-form input,
  .pshuow-form select,
  .pshuow-form textarea { font-size: 16px; /* prevent iOS zoom */ }
  .pshuow-form .pshuow-radio-group { flex-direction: column; }
}
