/* Own video advertising pages (/adverteren, /adverteren/voorwaarden, /adverteren/start, /adverteren/campagne/<token>): the price table,
   the order form and the campaign dashboard. Builds on pages.css (sx- classes); everything here is namespaced ad- or sx-table.
   Phone first: one column, 48 px touch targets, no horizontal page scroll (wide tables scroll inside .cg-scroll). */
.sx-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 17px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--sx-line); }
.sx-table th, .sx-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--sx-line); vertical-align: middle; }
.sx-table thead th { background: var(--sx-ice); color: var(--sx-ink); font-weight: 800; }
.sx-table tbody tr:last-child td { border-bottom: 0; }
.sx-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.cg-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cg-form fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.cg-form legend { padding: 0; margin: 0 0 8px; font-size: 22px; font-weight: 900; color: var(--sx-ink); }
.cg-field { display: block; margin: 0 0 14px; font-weight: 700; color: var(--sx-text); }
.cg-field input[type="text"], .cg-field input[type="email"], .cg-field input[type="tel"], .cg-field input[type="url"], .cg-field input[type="number"],
.cg-field input[type="file"], .cg-field select, .cg-field textarea {
  display: block; width: 100%; max-width: 100%; margin-top: 6px; padding: 12px 14px; min-height: 48px; border: 2px solid var(--sx-line); border-radius: 12px;
  background: #fff; color: var(--sx-text); font: inherit; font-weight: 500; box-sizing: border-box;
}
.cg-field input:focus, .cg-field select:focus, .cg-field textarea:focus { outline: 3px solid #ffb53d; outline-offset: 1px; border-color: var(--sx-link); }
.cg-field input[aria-invalid="true"], .cg-field textarea[aria-invalid="true"] { border-color: #c0392b; background: #fff6f4; }
.cg-field small { display: block; margin-top: 4px; font-weight: 400; color: var(--sx-muted); font-size: 15px; line-height: 1.35; }
.cg-opt { font-weight: 400; color: var(--sx-muted); }
.cg-check { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 8px 0; font-weight: 600; }
.cg-check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--sx-link); }
.cg-terms { margin: 8px 0 14px; font-weight: 500; }
/* the tier choice ('Overslaan na 15 / 25 seconden'): two big tappable cards */
.cg-tier { padding: 10px 12px; margin: 0 0 8px; border: 2px solid var(--sx-border, #c9d6e4); border-radius: 12px; background: #fff; cursor: pointer; }
.cg-tier:has(input:checked) { border-color: var(--sx-link); background: #eef6ff; }
.cg-tier span { font-weight: 500; }
.cg-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cg-info { margin: 6px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--sx-ice); color: var(--sx-ink); font-weight: 600; }
.cg-info:empty { display: none; }
.cg-info--bad { background: #fff0ed; color: #8f2a1c; }
.cg-info--ok { background: #eaf8e8; color: #1f6a2a; }
.cg-error { margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: #fff0ed; color: #8f2a1c; font-weight: 700; }
.cg-preview { display: block; width: 100%; max-width: 360px; max-height: 50vh; margin: 8px 0 14px; border-radius: 14px; background: #08203b; }
.cg-summary { margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 2px var(--sx-line); }
.cg-summary h2 { margin: 0 0 8px; font-size: 20px; }
.cg-summary dl, .cg-rows { margin: 0; }
.cg-summary dl > div, .cg-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--sx-line); }
.cg-summary dl > div:last-child, .cg-rows > div:last-child { border-bottom: 0; }
.cg-summary dt, .cg-rows dt { color: var(--sx-muted); }
.cg-summary dd, .cg-rows dd { margin: 0; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cg-summary .cg-total dt, .cg-summary .cg-total dd { color: var(--sx-navy); font-size: 19px; }
.cg-submit { width: 100%; min-height: 54px; border: 0; cursor: pointer; font-size: 19px; }
.cg-submit[disabled] { opacity: 0.6; cursor: progress; }
.cg-small { color: var(--sx-muted); font-size: 15px; }
.cg-progress { height: 14px; margin: 12px 0; border-radius: 8px; background: var(--sx-ice); overflow: hidden; box-shadow: inset 0 0 0 1px var(--sx-line); }
.cg-progress > div { height: 100%; width: 0; background: linear-gradient(180deg, #ffb53d, var(--sx-orange)); transition: width 0.2s; }
.cg-done { padding: 4px 0 24px; }
.cg-link { display: block; margin: 8px 0; overflow-wrap: anywhere; font-weight: 800; }
.cg-copy { border: 0; cursor: pointer; min-height: 48px; }

/* the campaign dashboard */
.cg-card { margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 2px var(--sx-line); }
.cg-card h2 { margin: 0 0 8px; font-size: 21px; }
.cg-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 900; background: var(--sx-ice); color: var(--sx-ink); }
.cg-badge--running { background: #d9f4d6; color: #1f6a2a; }
.cg-badge--rejected { background: #ffe0da; color: #8f2a1c; }
.cg-badge--done { background: #e4e8f6; color: #2b3f86; }
.cg-badge--paused, .cg-badge--approved { background: #fff1cf; color: #7a5200; }
.cg-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0 12px; }
.cg-tiles > div { padding: 10px 12px; border-radius: 12px; background: var(--sx-ice); }
.cg-tiles dt { font-size: 14px; color: var(--sx-muted); }
.cg-tiles dd { margin: 2px 0 0; font-size: 24px; font-weight: 900; color: var(--sx-navy); font-variant-numeric: tabular-nums; }
.cg-progress--static { margin-top: 0; }
.cg-days td:last-child { width: 38%; }
.cg-bar { height: 12px; border-radius: 6px; background: linear-gradient(180deg, #ffb53d, var(--sx-orange)); min-width: 2px; }
@media (min-width: 720px) {
  .cg-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cg-submit { width: auto; padding: 0 36px; }
}
