.affiliate-page,
.affiliate-dialog {
  --affiliate-soft: color-mix(in srgb, var(--brand-primary) 8%, white);
  --affiliate-border: color-mix(in srgb, var(--brand-primary) 25%, white);
  --affiliate-stripe: color-mix(in srgb, var(--brand-primary) 80%, white);
  --affiliate-stripe-light: color-mix(in srgb, var(--brand-primary) 55%, white);
  --affiliate-on-dark: color-mix(in srgb, var(--brand-primary) 12%, white);
}

.affiliate-page {
  margin: 0;
  font-family:
    "Archivo",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #0c1626;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
.affiliate-page a {
  color: var(--brand-text);
}
.affiliate-page a:hover {
  color: var(--brand-text);
}
.affiliate-page .ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.affiliate-page .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.affiliate-page .btn-p:hover {
  background: var(--brand-gradient-hover) !important;
  color: #ffffff !important;
}
.affiliate-page .btn-s:hover {
  background: var(--affiliate-soft) !important;
  color: var(--brand-text) !important;
}
.affiliate-page .btn-w:hover {
  background: var(--affiliate-soft) !important;
  color: var(--brand-text) !important;
}
.affiliate-page .hlink:hover {
  background: var(--brand-soft) !important;
}
.affiliate-page .flink:hover {
  color: #ffffff !important;
}
.affiliate-page .tile:hover {
  border-color: var(--affiliate-stripe-light) !important;
}
.affiliate-page .bar:hover {
  background: var(--affiliate-stripe-light) !important;
}
.affiliate-page details summary {
  list-style: none;
  cursor: pointer;
}
.affiliate-page details summary::-webkit-details-marker {
  display: none;
}
.affiliate-page details[open] .chev {
  transform: rotate(180deg);
}
.affiliate-page input[type="range"] {
  accent-color: var(--brand-primary);
  cursor: pointer;
}
.affiliate-page :focus-visible {
  outline: 3px solid var(--affiliate-stripe-light);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .affiliate-page .hide-sm {
    display: none !important;
  }
}
.affiliate-page {
  margin: 0;
  font-family:
    "Archivo",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #0c1626;
  background: var(--brand-soft);
  -webkit-font-smoothing: antialiased;
}
.affiliate-page a {
  color: var(--brand-text);
}
.affiliate-page a:hover {
  color: var(--brand-text);
}
.affiliate-page .ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.affiliate-page .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.affiliate-page .btn-p:hover {
  background: var(--brand-gradient-hover) !important;
  color: #ffffff !important;
}
.affiliate-page .btn-s:hover {
  background: var(--affiliate-soft) !important;
  color: var(--brand-text) !important;
}
.affiliate-page .btn-w:hover {
  background: var(--affiliate-soft) !important;
  color: var(--brand-text) !important;
}
.affiliate-page .btn-g:hover {
  background: rgba(255, 255, 255, 0.26) !important;
}
.affiliate-page .hlink:hover {
  background: var(--brand-soft) !important;
}
.affiliate-page .flink:hover {
  color: #ffffff !important;
}
.affiliate-page .bar:hover {
  background: var(--affiliate-stripe-light) !important;
}
.affiliate-page .row:hover {
  background: #f8f9fc;
}
.affiliate-page :focus-visible {
  outline: 3px solid var(--affiliate-stripe-light);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .affiliate-page .hide-sm {
    display: none !important;
  }
}

.affiliate-page {
  font-family: var(--font-archivo), system-ui, sans-serif;
  color: #0c1626;
  background: #fff;
  border-radius: 24px;
  width: 100%;
  line-height: 1.5;
}
.affiliate-page:not([style]) {
  background: var(--brand-soft);
}
.affiliate-page:not([style]) > section {
  border-radius: inherit;
}
.affiliate-page .affiliate-date-range {
  position: relative;
  align-self: flex-end;
  margin-top: auto;
  max-width: 100%;
  flex-wrap: wrap;
  color: #0c1626;
}
.affiliate-page * {
  box-sizing: border-box;
}
.affiliate-page h2 {
  letter-spacing: -0.02em;
}
.affiliate-page button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.affiliate-page .affiliate-example-note {
  text-align: center;
  font-size: 12px;
  color: #61728e;
  padding: 0 24px 20px;
}
.affiliate-page td {
  padding: 14px 12px;
  border-bottom: 1px solid #eef0f4;
}
.affiliate-page .aff-commissions-table td:first-child {
  padding-left: 28px;
}
.affiliate-page .aff-commissions-table td:last-child {
  padding-right: 28px;
}
.affiliate-page .aff-commissions-table td:is(:nth-child(5), :nth-child(6), :nth-child(7)) {
  text-align: right;
}
.affiliate-page .aff-commissions-table td[colspan] {
  padding-top: 20px;
  padding-bottom: 20px;
  color: #61728e;
  border-bottom: 0;
  white-space: normal;
}
.affiliate-page .affiliate-empty {
  margin: 0;
  color: #61728e;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}
.affiliate-page button,
.affiliate-dialog button {
  cursor: pointer;
}
.affiliate-page main {
  margin: 0 auto;
}
.affiliate-dialog {
  border: 1px solid #e3e7ef;
  border-radius: 20px;
  padding: 28px;
  width: min(620px, calc(100vw - 32px));
  max-height: 85vh;
  overflow: auto;
  color: #0c1626;
}
.affiliate-dialog::backdrop {
  background: rgba(12, 22, 38, 0.5);
}
.affiliate-dialog form {
  display: grid;
  gap: 14px;
}
.affiliate-dialog label {
  display: grid;
  gap: 6px;
}
.affiliate-dialog input,
.affiliate-dialog select,
.affiliate-dialog textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccd5e3;
  border-radius: 10px;
  font: inherit;
}
.affiliate-dialog button,
.affiliate-page .aff-button {
  padding: 10px 16px;
  border: 1px solid var(--affiliate-border);
  border-radius: 10px;
  background: #fff;
  color: var(--brand-text);
  font: inherit;
}
.affiliate-dialog button[type="submit"] {
  background: var(--brand-gradient);
  color: white;
  border: 0;
}
.affiliate-dialog :focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
.affiliate-dialog :is(input, select, textarea):focus {
  border-color: var(--brand-primary);
}
.affiliate-page [data-range][aria-pressed="true"] {
  background: #fff !important;
  box-shadow: 0 1px 3px #ccd5e3 !important;
}
.affiliate-page [data-range][aria-pressed="false"] {
  background: transparent !important;
  box-shadow: none !important;
}
.affiliate-page:focus-visible {
  outline: 3px solid var(--affiliate-stripe-light);
}
@media (min-width: 721px) {
  .affiliate-page > section > div[style*="max-width"] {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
}
@media (max-width: 720px) {
  .affiliate-page > section > div[style*="max-width"] {
    padding: 32px 18px !important;
    gap: 28px !important;
  }
  .affiliate-page h1 {
    font-size: 38px !important;
  }
  .affiliate-page[style] {
    padding: 24px 16px 64px !important;
  }
  .affiliate-page section[style*="padding: 28px"] {
    padding: 20px !important;
  }
  .affiliate-page section[aria-labelledby="recent-h"] {
    padding: 20px 0 12px !important;
  }
  .affiliate-page aside {
    width: 100%;
    min-width: 0 !important;
  }
  .affiliate-page [style*="flex: 1 1 500px"],
  .affiliate-page [style*="flex: 1 1 480px"] {
    flex-basis: 100% !important;
  }
}
.page[data-view="affiliate"] .layout,
.page[data-view="affiliate"] .main {
  display: block !important;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
.page[data-view="affiliate"] .aff-view {
  padding: 0;
}
.page[data-view="affiliate"] .main-wrap > .tail-spacer {
  display: block;
}
.affiliate-page button:focus-visible {
  outline: 3px solid var(--affiliate-stripe-light);
  outline-offset: 3px;
}

.affiliate-page{box-sizing:border-box}
.affiliate-dialog,.affiliate-dialog *{box-sizing:border-box}

.affiliate-page .aff-brand-icon { display: block; object-fit: contain; flex: none; }
.affiliate-page .aff-brand-icon-white { filter: brightness(0) invert(1); }

.affiliate-test-earnings { padding: 24px; border: 1px solid var(--brand-primary, #2B4BFF); border-radius: 24px; background: var(--affiliate-soft); }
.affiliate-test-earnings h2 { margin: 0 0 10px; font-size: 20px; }
.affiliate-test-earnings > p { margin: 0; color: #4A5468; font-size: 14px; line-height: 1.7; }
.affiliate-test-totals { display: flex; flex-wrap: wrap; gap: 24px; margin: 20px 0; }
.affiliate-test-totals p { margin: 0; font-size: 13px; color: #4A5468; }
.affiliate-test-totals strong { display: block; margin-top: 6px; font-size: 24px; color: #0C1626; }
.affiliate-test-table { overflow-x: auto; border-radius: 14px; background: white; }
.affiliate-test-table:focus-visible { outline: 2px solid var(--brand-primary, #2B4BFF); outline-offset: 3px; }
.affiliate-test-table table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.affiliate-test-table td { padding: 12px; border-bottom: 1px solid #E3E7EF; }

.is-m .affiliate-crumb { display:flex; align-items:center; gap:8px; margin:0; padding:16px; font-size:14px; color:#23324a; }
.is-m .affiliate-crumb i { font-style:normal; color:#61728e; }
.is-m .affiliate-crumb b { font-weight:500; }
