.whs-wrap{
  max-width: 450px;
  margin: auto;
  font-family: Archivo;
}

/* Estado success: forzamos hide/show aunque el tema toque [hidden] */
.whs-success{ display: none !important; }
.whs-wrap.is-success .whs-form{ display: none !important; }
.whs-wrap.is-success .whs-success{ display: block !important; }

/* Form */
.whs-form { 
  display:grid; 
  gap:12px; 
}

img.whs-image {
  margin: auto;
  width: 40px;
  margin-bottom: 10px;
}

p.whs-text {
  text-align: center;
  line-height: 1.7em;
}

p.whs-text.intro {
  font-weight: 400;
  font-size: 15px;
  margin: 10px auto;
}

p.whs-text.end {
  font-size: 12px;
  font-weight: 200;
  margin: 20px auto;
}

.whs-field {
  width: -webkit-fill-available;
}

.whs-field label { 
  display:block; 
  margin-bottom:6px; 
  font-weight:500;
  font-size: 14px;
}

.whs-row {
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 30px;
}

.whs-field input { 
  width:100%; 
  padding:10px 12px !important;
  border:1px solid rgba(0,0,0,.2); 
  border-radius:0px;
  height: 40px;
}

/* Banner justo tras intro */
.whs-banner{
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4em;
  margin: 2px 0 6px;
  border: 1px solid rgba(0,0,0,.15);
}

.whs-banner--exists{
  background: rgba(255, 193, 7, 0.18);
  border-color: rgba(255, 193, 7, 0.35);
}

.whs-banner--error{
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.35);
}

/* Button + spinner */
.whs-btn { 
  position: relative;
  padding:10px 14px; 
  border:1px solid #111; 
  background:#111; 
  color:#fff; 
  cursor:pointer;
  margin-top: 20px;
  min-height: 42px;
}

.whs-btn[disabled]{ 
  opacity:.75; 
  cursor:not-allowed; 
}

.whs-btn__spinner{
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,1);
  opacity: 0;
  transform: scale(.9);
  pointer-events: none;
}

.whs-btn.is-loading .whs-btn__spinner{
  opacity: 1;
  animation: whs-spin 700ms linear infinite;
}

@keyframes whs-spin{
  to { transform: scale(.9) rotate(360deg); }
}

/* Feedback interno: oculto (solo dataset) */
.whs-feedback { 
  display: none;
}

/* Success UI */
.whs-success{
  width: 100%;
}

.whs-success__inner{
  padding: 18px 16px;
  border: 1px solid rgba(0,0,0,.15);
}

.whs-success__title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.whs-success__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.6em;
  text-align: center;
}
