/* Contacts Wizard CSS — блокирующая модалка проверки контактных данных */
.cw-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-y: auto;
}
.cw-overlay *, .cw-overlay *::before, .cw-overlay *::after {
  box-sizing: border-box;
}
.cw-modal {
  background: #fff;
  border-radius: 12px;
  width: 90vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cw-up .25s ease;
}
@keyframes cw-up {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
.cw-hdr {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.cw-hdr h2 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 5px 0;
}
.cw-hdr p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}
.cw-body {
  padding: 20px 24px;
  font-size: 14px;
  color: #374151;
}
.cw-general-error {
  font-size: 13px;
  color: #ef4444;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
  display: none;
}
.cw-general-error.cw-show {
  display: block;
}
.cw-field {
  margin-bottom: 16px;
}
.cw-field:last-child {
  margin-bottom: 0;
}
.cw-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 6px;
}
.cw-input-wrap {
  position: relative;
}
.cw-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  transition: border-color .15s;
}
.cw-input:focus {
  outline: none;
  border-color: #3b82f6;
}
.cw-input.cw-invalid {
  border-color: #ef4444;
}
.cw-input[readonly] {
  background: #f3f4f6;
  color: #6b7280;
  cursor: default;
}
.cw-confirmed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: #059669;
  font-weight: 500;
  margin-top: 5px;
}
.cw-confirmed::before {
  content: '✓';
  font-size: 12px;
}
.cw-error-text {
  font-size: 12px;
  color: #ef4444;
  margin-top: 5px;
  display: none;
}
.cw-error-text.cw-show {
  display: block;
}
.cw-ftr {
  padding: 14px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.cw-btn {
  padding: 9px 22px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  width: 100%;
}
.cw-btn-p {
  background: #3b82f6;
  color: #fff;
}
.cw-btn-p:hover:not(:disabled) {
  background: #2563eb;
}
.cw-btn-p:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}
