/* Afrinet coverage map — shared by the order form, service page and coverage page */
.afrinet-cm {
  --afx-accent: #4e4feb;
  --afx-ink: #111827;
  --afx-muted: #64748b;
  --afx-line: #e2e8f0;
  --afx-soft: #f8fafc;
  position: relative;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--afx-line);
  border-radius: 14px;
  background: #fff;
  color: var(--afx-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  text-align: left;
}
.afrinet-cm *, .afrinet-cm *::before, .afrinet-cm *::after { box-sizing: border-box; }
.afrinet-cm input, .afrinet-cm button { font-family: inherit; }
.afrinet-cm-head { display: flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: -0.01em; }
.afrinet-cm-head strong { font-weight: 650; }
.afrinet-cm-hint { margin: 4px 0 14px; font-size: 12.5px; color: var(--afx-muted); }
.afrinet-cm-pin {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50% 50% 50% 0;
  background: var(--afx-accent);
  transform: rotate(-45deg);
  flex-shrink: 0;
}
.afrinet-cm-row { display: flex; gap: 10px; margin-bottom: 14px; }
.afrinet-cm-input-wrap { position: relative; flex: 1; min-width: 0; }
.afrinet-cm .afrinet-cm-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: var(--afx-ink);
  font-size: 14px;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.afrinet-cm .afrinet-cm-input:focus { outline: 2px solid var(--afx-accent); outline-offset: -1px; border-color: var(--afx-accent); }
.afrinet-cm-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--afx-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .15s;
}
.afrinet-cm-button:hover { opacity: .9; }
.afrinet-cm-button:disabled { opacity: .7; cursor: progress; }
.afrinet-cm-suggestions {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--afx-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  max-height: 240px;
  overflow-y: auto;
}
.afrinet-cm-suggestion {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--afx-ink);
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.afrinet-cm-suggestion:hover { background: #f3f4f6; }
.afrinet-cm-map {
  width: 100%;
  height: 320px;
  border: 1px solid var(--afx-line);
  border-radius: 12px;
  overflow: hidden;
}
.afrinet-cm-map-off { height: auto; background: var(--afx-soft); }
.afrinet-cm-unavailable { margin: 0; padding: 18px; font-size: 13px; color: var(--afx-muted); }
.afrinet-cm-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--afx-muted);
}
.afrinet-cm-legend-title { font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; }
.afrinet-cm-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.afrinet-cm-legend-pinned { margin-left: auto; }
.afrinet-cm-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.afrinet-cm-status:empty { display: none; }
.afrinet-cm-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--afx-line);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.afrinet-cm-status-icon { display: inline-flex; padding-top: 1px; flex-shrink: 0; }
.afrinet-cm-checking { color: var(--afx-muted); background: var(--afx-soft); }
.afrinet-cm-available { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.afrinet-cm-not_available { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.afrinet-cm-no_api { border-color: #e5e7eb; background: #f9fafb; color: #374151; }
.afrinet-cm-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(100, 116, 139, 0.3);
  border-top-color: var(--afx-accent);
  border-radius: 50%;
  animation: afrinet-cm-spin .8s linear infinite;
}
@keyframes afrinet-cm-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .afrinet-cm { padding: 14px; }
  .afrinet-cm-row { flex-direction: column; }
  .afrinet-cm-button { justify-content: center; }
  .afrinet-cm-map { height: 260px; }
  .afrinet-cm-legend-pinned { margin-left: 0; }
}
