/* wl-unlock-wizard.css — modal condiviso sblocco stazioni WeatherLink */

.wlw-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: wlw-fade-in 0.2s ease;
}
@keyframes wlw-fade-in { from { opacity: 0; } to { opacity: 1; } }

.wlw-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-primary, #fff);
  color: var(--text-primary, #222);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
  padding: 28px 28px 24px;
}
[data-theme="dark"] .wlw-dialog {
  background: #1c1c1e;
  color: #f0f0f0;
}

.wlw-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 38px; height: 38px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-secondary, #666);
  line-height: 1;
  border-radius: 8px;
}
.wlw-close:hover { background: rgba(0, 0, 0, 0.06); }
[data-theme="dark"] .wlw-close:hover { background: rgba(255, 255, 255, 0.08); }

.wlw-hero { text-align: center; margin-bottom: 16px; }
.wlw-hero-icon {
  display: inline-block;
  font-size: 48px;
  margin-bottom: 4px;
  line-height: 1;
}
.wlw-hero h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 2px;
  line-height: 1.3;
}
.wlw-hero h2 em {
  font-style: normal;
  color: var(--primary, #1a73e8);
}
.wlw-sub {
  color: var(--text-secondary, #666);
  font-size: 13px;
  margin: 4px 0 0;
}
[data-theme="dark"] .wlw-sub { color: rgba(255, 255, 255, 0.65); }

.wlw-step-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}

.wlw-intro {
  font-size: 14px;
  line-height: 1.55;
  margin: 16px 0 16px;
}

.wlw-benefit {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .wlw-benefit { border-color: rgba(255, 255, 255, 0.08); }
.wlw-benefit:first-of-type { border-top: none; }
.wlw-benefit-icon {
  flex: 0 0 36px;
  font-size: 24px;
  line-height: 1.2;
}
.wlw-benefit-body { flex: 1; min-width: 0; }
.wlw-benefit-body strong { font-size: 14px; }
.wlw-benefit-body p {
  margin: 2px 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary, #555);
}
[data-theme="dark"] .wlw-benefit-body p { color: rgba(255, 255, 255, 0.72); }

.wlw-preview {
  display: block;
  background: rgba(26, 115, 232, 0.04);
  border: 1px solid rgba(26, 115, 232, 0.12);
  border-radius: 8px;
  padding: 8px;
  min-height: 60px;
}
[data-theme="dark"] .wlw-preview {
  background: rgba(90, 160, 255, 0.06);
  border-color: rgba(90, 160, 255, 0.14);
}
.wlw-preview-loading, .wlw-preview-err {
  font-size: 11px;
  color: var(--text-secondary, #999);
  font-style: italic;
}
.wlw-preview-teaser {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-primary, #333);
}
[data-theme="dark"] .wlw-preview-teaser { color: rgba(255, 255, 255, 0.85); }
.wlw-spark {
  display: block;
  width: 100%;
  height: auto;
  max-height: 54px;
}
.wlw-preview-label {
  font-size: 11px;
  color: var(--text-secondary, #666);
  display: block;
  margin-top: 2px;
}
[data-theme="dark"] .wlw-preview-label { color: rgba(255, 255, 255, 0.65); }

.wlw-disclaimer {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary, #666);
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
}
[data-theme="dark"] .wlw-disclaimer {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
}

.wlw-field { display: block; margin: 12px 0; }
.wlw-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #666);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.wlw-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.15));
  border-radius: 8px;
  font: inherit;
  background: var(--bg-secondary, #fff);
  color: inherit;
  min-height: 44px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wlw-field input:focus {
  outline: none;
  border-color: var(--primary, #1a73e8);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}
[data-theme="dark"] .wlw-field input {
  background: #2a2a2c;
  border-color: rgba(255, 255, 255, 0.15);
}
.wlw-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-secondary, #888);
}
.wlw-hint-box {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-secondary, #888);
}
.wlw-hint-box a { color: var(--primary, #1a73e8); }

.wlw-prefill-card {
  background: rgba(0, 179, 65, 0.06);
  border: 1px solid rgba(0, 179, 65, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0 10px;
}
[data-theme="dark"] .wlw-prefill-card {
  background: rgba(0, 179, 65, 0.1);
  border-color: rgba(0, 179, 65, 0.3);
}
.wlw-prefill-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px solid rgba(0, 179, 65, 0.15);
}
.wlw-prefill-row:first-child { border-top: none; padding-top: 0; }
.wlw-prefill-icon {
  flex: 0 0 22px;
  font-size: 15px;
  font-weight: bold;
  color: #00813a;
  line-height: 1.4;
}
[data-theme="dark"] .wlw-prefill-icon { color: #4ade80; }
.wlw-prefill-body { flex: 1; min-width: 0; }
.wlw-prefill-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary, #666);
  margin-bottom: 2px;
}
.wlw-prefill-value {
  font-size: 14px;
  word-break: break-all;
}
.wlw-prefill-code {
  font-family: monospace;
  font-size: 12px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  display: inline-block;
}
[data-theme="dark"] .wlw-prefill-code { background: rgba(255, 255, 255, 0.08); }

.wlw-details { margin: 8px 0; }
.wlw-details summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--primary, #1a73e8);
  padding: 6px 0;
}

.wlw-method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 16px;
}
@media (min-width: 520px) {
  .wlw-method-grid { grid-template-columns: 1fr 1fr; }
}
.wlw-method {
  position: relative;
  padding: 14px;
  border: 2px solid var(--border-color, rgba(0, 0, 0, 0.1));
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.wlw-method:hover { border-color: var(--primary, #1a73e8); }
.wlw-method.is-selected {
  border-color: var(--primary, #1a73e8);
  background: rgba(26, 115, 232, 0.06);
}
[data-theme="dark"] .wlw-method {
  border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .wlw-method.is-selected {
  background: rgba(90, 160, 255, 0.1);
}
.wlw-method-badge {
  position: absolute;
  top: -8px; right: 10px;
  background: #00b341;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}
.wlw-method-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.wlw-method-time {
  font-size: 11px;
  color: var(--text-secondary, #666);
  margin-bottom: 8px;
  font-style: italic;
}
.wlw-method ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary, #555);
}
[data-theme="dark"] .wlw-method ul { color: rgba(255, 255, 255, 0.72); }
.wlw-method li { margin: 3px 0; }

.wlw-instant-form {
  padding: 12px;
  background: rgba(26, 115, 232, 0.05);
  border-radius: 8px;
  margin: 12px 0;
}
[data-theme="dark"] .wlw-instant-form { background: rgba(90, 160, 255, 0.08); }

.wlw-consents { margin: 14px 0; }
.wlw-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}
.wlw-consent:first-child { border-top: none; }
[data-theme="dark"] .wlw-consent { border-color: rgba(255, 255, 255, 0.08); }
.wlw-consent input[type="checkbox"] {
  flex: 0 0 20px;
  margin-top: 3px;
  transform: scale(1.2);
  accent-color: var(--primary, #1a73e8);
}

.wlw-error {
  padding: 10px 12px;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.25);
  color: #b00020;
  border-radius: 8px;
  font-size: 13px;
  margin: 10px 0;
}
[data-theme="dark"] .wlw-error { color: #ff8a95; }

.wlw-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}
.wlw-btn {
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.wlw-btn:hover:not(:disabled) { transform: translateY(-1px); }
.wlw-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.wlw-btn-primary {
  background: var(--primary, #1a73e8);
  color: #fff;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.3);
}
.wlw-btn-primary:hover:not(:disabled) {
  background: var(--primary-dark, #1557b0);
  box-shadow: 0 4px 10px rgba(26, 115, 232, 0.4);
}
.wlw-btn-ghost {
  background: transparent;
  color: var(--text-primary, #444);
}
.wlw-btn-ghost:hover:not(:disabled) { background: rgba(0, 0, 0, 0.05); }
[data-theme="dark"] .wlw-btn-ghost { color: #ddd; }
[data-theme="dark"] .wlw-btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }

.wlw-steps-list { margin: 18px 0; }
.wlw-steps-item {
  padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  line-height: 1.55;
}
.wlw-steps-item:first-child { border-top: none; }
[data-theme="dark"] .wlw-steps-item { border-color: rgba(255, 255, 255, 0.08); }
.wlw-steps-item-polling {
  background: rgba(26, 115, 232, 0.04);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(26, 115, 232, 0.15);
  margin-top: 8px;
}
[data-theme="dark"] .wlw-steps-item-polling {
  background: rgba(90, 160, 255, 0.06);
  border-color: rgba(90, 160, 255, 0.2);
}

.wlw-copy {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  cursor: pointer;
  user-select: all;
  margin-top: 4px;
}
.wlw-copy:hover { background: rgba(0, 0, 0, 0.1); }
[data-theme="dark"] .wlw-copy { background: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .wlw-copy:hover { background: rgba(255, 255, 255, 0.16); }
.wlw-copy-hint {
  font-size: 11px;
  color: var(--text-secondary, #888);
  margin-left: 4px;
}

.wlw-progress {
  display: block;
  height: 8px;
  margin: 8px 0 2px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
[data-theme="dark"] .wlw-progress { background: rgba(255, 255, 255, 0.1); }
.wlw-progress-bar {
  height: 100%;
  background: var(--primary, #1a73e8);
  transition: width 0.3s ease;
}
.wlw-progress-label {
  font-size: 11px;
  color: var(--text-secondary, #888);
}

@keyframes wlw-spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
.wlw-spin { animation: wlw-spin 1.5s linear infinite; display: inline-block; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wlw-backdrop, .wlw-btn, .wlw-progress-bar, .wlw-spin {
    animation: none !important;
    transition: none !important;
  }
}
