/* Public coverage page — flat, neutral; colours come from --afx-accent / --afx-ink */
.afx-cov {
  --afx-accent: #4f46e5;
  --afx-ink: #111827;
  --afx-muted: #6b7280;
  --afx-line: #e5e7eb;
  max-width: 1080px;
  margin: 0 auto 40px;
  color: var(--afx-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
.afx-cov *, .afx-cov *::before, .afx-cov *::after { box-sizing: border-box; }
.afx-cov-hero {
  margin-bottom: 28px;
  padding: 32px 32px 30px;
  border: 1px solid var(--afx-line);
  border-top: 4px solid var(--afx-accent);
  border-radius: 14px;
  background: #fff;
}
.afx-cov-eyebrow { display: block; margin-bottom: 8px; color: var(--afx-accent); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.afx-cov-hero h1 { margin: 0 0 8px; color: var(--afx-ink); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.afx-cov-hero p { margin: 0; max-width: 640px; color: var(--afx-muted); font-size: 15.5px; line-height: 1.6; }
.afx-cov-step { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 15px; font-weight: 650; }
.afx-cov-step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--afx-ink); color: #fff; font-size: 12px;
}
.afx-cov-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 28px; }
.afx-cov-type {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 16px;
  border: 1px solid var(--afx-line); border-radius: 12px;
  background: #fff; color: var(--afx-ink);
  text-align: left; cursor: pointer;
  transition: border-color .15s;
}
.afx-cov-type:hover { border-color: #9ca3af; }
.afx-cov-type.is-active { border-color: var(--afx-accent); outline: 2px solid var(--afx-accent); outline-offset: -2px; }
.afx-cov-type-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 4px; border-radius: 10px;
  background: var(--afx-type-soft); color: var(--afx-type);
}
.afx-cov-type-label { font-size: 14.5px; font-weight: 650; }
.afx-cov-type-count { font-size: 12px; color: var(--afx-muted); }
.afx-cov-results-head { margin: 26px 0 14px; }
.afx-cov-results-head h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.afx-cov-results-head p { margin: 0; color: var(--afx-muted); font-size: 14px; }
.afx-cov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.afx-cov-card {
  display: flex; flex-direction: column;
  padding: 20px;
  border: 1px solid var(--afx-line); border-top: 3px solid var(--afx-accent);
  border-radius: 12px; background: #fff;
}
.afx-cov-card-name { font-size: 16px; font-weight: 700; }
.afx-cov-card-details { margin: 10px 0 0; padding: 0; list-style: none; color: var(--afx-muted); font-size: 13px; }
.afx-cov-card-details li { position: relative; padding: 3px 0 3px 18px; }
.afx-cov-card-details li::before { content: "✓"; position: absolute; left: 0; color: var(--afx-accent); font-weight: 700; }
.afx-cov-card-price { display: flex; align-items: baseline; gap: 4px; margin-top: auto; padding-top: 16px; }
.afx-cov-amount { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.afx-cov-per { color: var(--afx-muted); font-size: 13px; }
.afx-cov-card-setup { margin-top: 2px; color: var(--afx-muted); font-size: 12px; }
.afx-cov-order {
  display: block; margin-top: 16px; padding: 11px 14px;
  border-radius: 8px; background: var(--afx-accent);
  color: #fff !important; font-size: 14px; font-weight: 600;
  text-align: center; text-decoration: none !important;
  transition: opacity .15s;
}
.afx-cov-order:hover { opacity: .9; }
.afx-cov-empty { padding: 28px; border: 1px dashed #d1d5db; border-radius: 12px; color: var(--afx-muted); text-align: center; }
@media (max-width: 600px) {
  .afx-cov-hero { padding: 24px 20px; }
  .afx-cov-hero h1 { font-size: 24px; }
}


/* Cloud Vertex embed mode: scoped to ?m=afrinet_catalog&embed=1 only. */
.afx-cov-embed {
  --afx-accent: #2463a5;
  --afx-ink: #eaf2ff;
  --afx-muted: #9fb8d8;
  --afx-line: #24486e;
  max-width: none;
  margin: 0;
  padding: 10px;
  color: var(--afx-ink);
  background: transparent;
}
.afx-cov-embed .afx-cov-hero { display: none !important; }
.afx-cov-embed .afx-cov-step { color: #eaf2ff; margin: 10px 0 8px; }
.afx-cov-embed .afx-cov-step-no { background: #011a38; color: #fff; }
.afx-cov-embed .afx-cov-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.afx-cov-embed .afx-cov-type { min-height: 100px; border-color: #24486e; }
.afx-cov-embed .afx-cov-type.is-active { border-color: #39ff72; outline-color: #39ff72; }
.afx-cov-embed .afx-cov-map { margin: 0; }
.afx-cov-embed .afx-cov-results { display: none !important; }
.afx-cov-embed .afx-cov-empty { color: #eaf2ff; }
@media (max-width: 480px) {
  .afx-cov-embed { padding: 6px; }
  .afx-cov-embed .afx-cov-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afx-cov-embed .afx-cov-type { padding: 10px; }
}

/* WHMCS outer shell is hidden only when the embed-mode class is set by the
   coverage page itself. Selectors cover common WHMCS 8 themes. */
html.afx-cov-embed-document,
body.afx-cov-embed-document { margin: 0 !important; padding: 0 !important; background: transparent !important; }
body.afx-cov-embed-document #header,
body.afx-cov-embed-document header,
body.afx-cov-embed-document .header,
body.afx-cov-embed-document .navbar,
body.afx-cov-embed-document .breadcrumb,
body.afx-cov-embed-document .breadcrumb-header,
body.afx-cov-embed-document #footer,
body.afx-cov-embed-document footer,
body.afx-cov-embed-document .footer,
body.afx-cov-embed-document .footerbar,
body.afx-cov-embed-document .return-to-admin,
body.afx-cov-embed-document .admin-return,
body.afx-cov-embed-document .affix-return-to-admin {
  display: none !important;
}
body.afx-cov-embed-document #main-body,
body.afx-cov-embed-document .main-content,
body.afx-cov-embed-document .contentarea,
body.afx-cov-embed-document #main-body > .container,
body.afx-cov-embed-document #main-body .container,
body.afx-cov-embed-document .primary-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* Compact Cloud Vertex embedded coverage checker */
.afx-cov-embed { width:100%; min-height:0; }
.afx-cov-embed .afx-cov-step { margin: 6px 0 8px; font-size:14px; }
.afx-cov-embed .afx-cov-types { margin-bottom: 10px; }
.afx-cov-embed .afx-cov-type { min-height: 66px; padding: 10px 12px; flex-direction:row; align-items:center; gap:10px; }
.afx-cov-embed .afx-cov-type-icon { width:30px; height:30px; min-width:30px; margin:0; }
.afx-cov-embed .afx-cov-type-icon svg { width:18px; height:18px; }
.afx-cov-embed .afx-cov-type-label { font-size:14px; }
.afx-cov-embed .afx-cov-type-count { display:none !important; }
.afx-cov-embed .afrinet-cm { margin:0; padding:12px; border-color:#24486e; background:rgba(2,9,19,.35); color:#eaf2ff; }
.afx-cov-embed .afrinet-cm-hint { margin-bottom:10px; color:#9fb8d8; }
.afx-cov-embed .afrinet-cm-map { height:270px; }
.afx-cov-embed .afrinet-cm-legend { margin-top:8px; color:#9fb8d8; }
.afx-cov-embed .afrinet-cm input { max-width:100%; }
.afx-cov-embed .afx-cov-results { display:none !important; }
@media(max-width:480px) {
  .afx-cov-embed { padding:4px; }
  .afx-cov-embed .afx-cov-types { gap:8px; }
  .afx-cov-embed .afx-cov-type { min-height:60px; padding:8px; }
  .afx-cov-embed .afrinet-cm { padding:10px; }
  .afx-cov-embed .afrinet-cm-map { height:230px; }
}
