/**
 * Echoholics Affiliates.
 */

.ech-aff { font-family: "Just Sanz", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.ech-aff * { box-sizing: border-box; }
.ech-aff [hidden] { display: none !important; }

.ech-aff button {
  all: unset !important; box-sizing: border-box !important; cursor: pointer !important;
  font-family: "Just Sanz", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif !important;
}
.ech-aff .ech-aff-btn {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  font-size: 13.5px !important; font-weight: 600 !important; padding: 11px 20px !important;
  border-radius: 6px !important; border: 1px solid transparent !important; line-height: 1.2 !important;
}
.ech-aff .ech-aff-btn.is-small { padding: 9px 15px !important; font-size: 12.5px !important; }
.ech-aff .ech-aff-btn:disabled { opacity: .55 !important; cursor: not-allowed !important; }

.ech-aff--manage .ech-aff-row-amount { text-align: right; }
.ech-aff-code-card { border-radius: 10px; border-width: 1px; border-style: solid; padding: 24px 26px; margin-bottom: 18px; }
.ech-aff-code-label {
  display: block; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px;
}
.ech-aff-code { display: block; font-family: "Gunterz", Georgia, serif; font-size: 34px; line-height: 1.05; margin-bottom: 16px; }
.ech-aff-link-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ech-aff-link {
  flex: 1 1 260px; min-width: 0; border-radius: 6px !important; padding: 10px 13px !important;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace !important; font-size: 12.5px !important;
  border-width: 1px !important; border-style: solid !important; box-shadow: none !important;
}
.ech-aff-code-hint { font-size: 12.5px; line-height: 1.6; margin: 12px 0 0; }

.ech-aff-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ech-aff-stat { border-radius: 10px; border-width: 1px; border-style: solid; padding: 18px 18px; }
.ech-aff-stat-value { display: block; font-family: "Gunterz", Georgia, serif; font-size: 25px; line-height: 1.1; margin-bottom: 4px; }
.ech-aff-stat-label {
  display: block; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase;
}

.ech-aff-rates { border-radius: 10px; border-width: 1px; border-style: solid; padding: 22px 24px; margin: 20px 0; }
.ech-aff-rate-rows { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.ech-aff-rate-rows.is-superseded { opacity: .5; }
.ech-aff-rate-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom-width: 1px; border-bottom-style: solid; }
.ech-aff-rate-label { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 600; }
.ech-aff-rate-note { font-size: 11.5px; font-weight: 400; }
.ech-aff-rate-value { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 16px; font-weight: 600; white-space: nowrap; }
.ech-aff-rates-override { font-size: 13px; line-height: 1.6; margin: 0 0 14px; padding: 11px 14px; border-radius: 6px; }
.ech-aff-rate-notes { margin: 0; padding-left: 18px; }
.ech-aff-rate-notes li { font-size: 12px; line-height: 1.65; margin-bottom: 5px; }

.ech-aff-h4 {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin: 24px 0 12px;
}
.ech-aff-rows { display: flex; flex-direction: column; gap: 6px; }
.ech-aff-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 110px 110px; gap: 14px; align-items: center;
  padding: 13px 16px; border-radius: 8px; border-width: 1px; border-style: solid; text-decoration: none !important;
}
.ech-aff-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ech-aff-row-source { font-size: 13.5px; font-weight: 600; }
.ech-aff-ref { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 9.5px; margin-left: 7px; }
.ech-aff-row-meta { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 10.5px; }
.ech-aff-row-amount { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 14.5px; font-weight: 600; text-align: right; }
.ech-aff-row-why { font-size: 12px; line-height: 1.55; margin: 0 0 6px; padding: 8px 16px 0; }
.ech-aff-status {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; text-align: center; white-space: nowrap;
}

.ech-aff-filters { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.ech-aff-filter { padding: 8px 14px; border-radius: 999px; font-size: 12.5px; text-decoration: none !important; }
.ech-aff-back { display: inline-block; font-size: 12.5px; margin-bottom: 14px; text-decoration: none; }
.ech-aff-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ech-aff-title { font-family: "Gunterz", Georgia, serif; font-size: 22px; margin: 0 0 4px; }

.ech-aff-panel, .ech-aff-signup { border-radius: 10px; border-width: 1px; border-style: solid; padding: 22px 24px; margin-bottom: 16px; }
.ech-aff-signup p { font-size: 14px; line-height: 1.65; margin: 0 0 16px; }
.ech-aff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ech-aff-field { margin-bottom: 14px; }
.ech-aff-label {
  display: block; margin-bottom: 6px;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
}
.ech-aff-input {
  width: 100% !important; border-radius: 6px !important; padding: 11px 13px !important;
  font-size: 14px !important; font-family: inherit !important;
  border-width: 1px !important; border-style: solid !important; box-shadow: none !important;
}
.ech-aff-hint { font-size: 11.5px; line-height: 1.55; margin: 6px 0 0; }
.ech-aff-check { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; margin-top: 4px; }
.ech-aff-check input { width: 16px; height: 16px; accent-color: #4B9BD5; }
.ech-aff-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ech-aff-msg { font-size: 12.5px; }
.ech-aff-error { border-radius: 6px; padding: 11px 14px; font-size: 13px; margin-bottom: 12px; }
.ech-aff-note, .ech-aff-warn { font-size: 12.5px; line-height: 1.6; padding: 12px 15px; border-radius: 8px; margin: 0 0 16px; }
.ech-aff-empty { border-radius: 10px; border-width: 1px; border-style: dashed; padding: 30px 26px; text-align: center; }
.ech-aff-empty strong { display: block; font-size: 15px; margin-bottom: 5px; }
.ech-aff-empty p { font-size: 13px; line-height: 1.6; margin: 0 auto; max-width: 420px; }

@media (max-width: 680px) {
  .ech-aff-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ech-aff-status { grid-column: 1 / -1; justify-self: start; }
  .ech-aff-rate-row { flex-direction: column; gap: 4px; }
}

html:not(.psk-theme-light) .ech-aff-code-card,
html:not(.psk-theme-light) .ech-aff-stat,
html:not(.psk-theme-light) .ech-aff-rates,
html:not(.psk-theme-light) .ech-aff-panel,
html:not(.psk-theme-light) .ech-aff-signup,
html:not(.psk-theme-light) .ech-aff-row { background: #161616; border-color: #2A2A2A; }
html:not(.psk-theme-light) a.ech-aff-row:hover { border-color: #4B9BD5; }
html:not(.psk-theme-light) .ech-aff-code { color: #83BDE7; }
html:not(.psk-theme-light) .ech-aff-stat-value,
html:not(.psk-theme-light) .ech-aff-row-source,
html:not(.psk-theme-light) .ech-aff-row-amount,
html:not(.psk-theme-light) .ech-aff-rate-label,
html:not(.psk-theme-light) .ech-aff-rate-value,
html:not(.psk-theme-light) .ech-aff-title,
html:not(.psk-theme-light) .ech-aff-empty strong { color: #E3E3E3; }
html:not(.psk-theme-light) .ech-aff-code-label,
html:not(.psk-theme-light) .ech-aff-stat-label,
html:not(.psk-theme-light) .ech-aff-row-meta,
html:not(.psk-theme-light) .ech-aff-ref,
html:not(.psk-theme-light) .ech-aff-h4,
html:not(.psk-theme-light) .ech-aff-label,
html:not(.psk-theme-light) .ech-aff-hint,
html:not(.psk-theme-light) .ech-aff-rate-note,
html:not(.psk-theme-light) .ech-aff-rate-notes li,
html:not(.psk-theme-light) .ech-aff-code-hint,
html:not(.psk-theme-light) .ech-aff-empty p { color: #6B6B6B; }
html:not(.psk-theme-light) .ech-aff-signup p,
html:not(.psk-theme-light) .ech-aff-row-why { color: #9A9A9A; }
html:not(.psk-theme-light) .ech-aff-rate-row { border-bottom-color: #2A2A2A; }
html:not(.psk-theme-light) .ech-aff-input,
html:not(.psk-theme-light) .ech-aff-link { background: #1E1E1E !important; border-color: #3A3A3A !important; color: #E3E3E3 !important; }
html:not(.psk-theme-light) .ech-aff-btn { background: #33769F !important; color: #FFFFFF !important; }
html:not(.psk-theme-light) .ech-aff-btn.is-secondary { background: #1E1E1E !important; border-color: #3A3A3A !important; color: #E3E3E3 !important; }
html:not(.psk-theme-light) .ech-aff-filter { background: #161616; color: #9A9A9A; }
html:not(.psk-theme-light) .ech-aff-filter.is-active { background: #12202B; color: #83BDE7; }
html:not(.psk-theme-light) .ech-aff-back { color: #83BDE7; }
html:not(.psk-theme-light) .ech-aff-status { background: #1E1E1E; color: #9A9A9A; }
html:not(.psk-theme-light) .ech-aff-status.is-active,
html:not(.psk-theme-light) .ech-aff-status.is-approved,
html:not(.psk-theme-light) .ech-aff-status.is-paid { background: rgba(74,222,128,.13); color: #4ADE80; }
html:not(.psk-theme-light) .ech-aff-status.is-pending { background: rgba(245,185,59,.14); color: #F5B93B; }
html:not(.psk-theme-light) .ech-aff-status.is-rejected,
html:not(.psk-theme-light) .ech-aff-status.is-reversed,
html:not(.psk-theme-light) .ech-aff-status.is-closed { background: rgba(248,113,113,.12); color: #F87171; }
html:not(.psk-theme-light) .ech-aff-row-amount.is-negative { color: #F87171; }
html:not(.psk-theme-light) .ech-aff-note { background: #12202B; border: 1px solid rgba(75,155,213,.25); color: #9A9A9A; }
html:not(.psk-theme-light) .ech-aff-warn { background: rgba(245,185,59,.09); border: 1px solid rgba(245,185,59,.3); color: #C9A65A; }
html:not(.psk-theme-light) .ech-aff-rates-override { background: #12202B; color: #9A9A9A; }
html:not(.psk-theme-light) .ech-aff-error { background: rgba(248,113,113,.12); color: #F87171; }
html:not(.psk-theme-light) .ech-aff-msg { color: #4ADE80; }
html:not(.psk-theme-light) .ech-aff-msg.is-error { color: #F87171; }
html:not(.psk-theme-light) .ech-aff-empty { border-color: #2A2A2A; }

html.psk-theme-light .ech-aff-code-card,
html.psk-theme-light .ech-aff-stat,
html.psk-theme-light .ech-aff-rates,
html.psk-theme-light .ech-aff-panel,
html.psk-theme-light .ech-aff-signup,
html.psk-theme-light .ech-aff-row { background: #FFFFFF; border-color: #E3E3E3; }
html.psk-theme-light a.ech-aff-row:hover { border-color: #33769F; }
html.psk-theme-light .ech-aff-code { color: #33769F; }
html.psk-theme-light .ech-aff-stat-value,
html.psk-theme-light .ech-aff-row-source,
html.psk-theme-light .ech-aff-row-amount,
html.psk-theme-light .ech-aff-rate-label,
html.psk-theme-light .ech-aff-rate-value,
html.psk-theme-light .ech-aff-title,
html.psk-theme-light .ech-aff-empty strong { color: #0E0E0E; }
html.psk-theme-light .ech-aff-code-label,
html.psk-theme-light .ech-aff-stat-label,
html.psk-theme-light .ech-aff-row-meta,
html.psk-theme-light .ech-aff-ref,
html.psk-theme-light .ech-aff-h4,
html.psk-theme-light .ech-aff-label,
html.psk-theme-light .ech-aff-hint,
html.psk-theme-light .ech-aff-rate-note,
html.psk-theme-light .ech-aff-rate-notes li,
html.psk-theme-light .ech-aff-code-hint,
html.psk-theme-light .ech-aff-empty p { color: #6B6B6B; }
html.psk-theme-light .ech-aff-signup p,
html.psk-theme-light .ech-aff-row-why { color: #4A4A4A; }
html.psk-theme-light .ech-aff-rate-row { border-bottom-color: #E3E3E3; }
html.psk-theme-light .ech-aff-input,
html.psk-theme-light .ech-aff-link { background: #F7F7F5 !important; border-color: #D1D1CE !important; color: #0E0E0E !important; }
html.psk-theme-light .ech-aff-btn { background: #33769F !important; color: #FFFFFF !important; }
html.psk-theme-light .ech-aff-btn.is-secondary { background: #F7F7F5 !important; border-color: #D1D1CE !important; color: #0E0E0E !important; }
html.psk-theme-light .ech-aff-filter { background: #F0F0EE; color: #4A4A4A; }
html.psk-theme-light .ech-aff-filter.is-active { background: #EAF2F8; color: #33769F; }
html.psk-theme-light .ech-aff-back { color: #33769F; }
html.psk-theme-light .ech-aff-status { background: #F0F0EE; color: #4A4A4A; }
html.psk-theme-light .ech-aff-status.is-active,
html.psk-theme-light .ech-aff-status.is-approved,
html.psk-theme-light .ech-aff-status.is-paid { background: rgba(22,163,74,.10); color: #16A34A; }
html.psk-theme-light .ech-aff-status.is-pending { background: rgba(217,119,6,.10); color: #B45309; }
html.psk-theme-light .ech-aff-status.is-rejected,
html.psk-theme-light .ech-aff-status.is-reversed,
html.psk-theme-light .ech-aff-status.is-closed { background: rgba(220,38,38,.10); color: #DC2626; }
html.psk-theme-light .ech-aff-row-amount.is-negative { color: #DC2626; }
html.psk-theme-light .ech-aff-note { background: #EAF2F8; border: 1px solid rgba(51,118,159,.22); color: #4A4A4A; }
html.psk-theme-light .ech-aff-warn { background: rgba(217,119,6,.07); border: 1px solid rgba(217,119,6,.25); color: #8A6320; }
html.psk-theme-light .ech-aff-rates-override { background: #EAF2F8; color: #4A4A4A; }
html.psk-theme-light .ech-aff-error { background: rgba(220,38,38,.08); color: #DC2626; }
html.psk-theme-light .ech-aff-msg { color: #16A34A; }
html.psk-theme-light .ech-aff-msg.is-error { color: #DC2626; }
html.psk-theme-light .ech-aff-empty { border-color: #D1D1CE; }
.ech-aff-exports { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
