/* Commissions page (aff-kit/pages/commissions.php). Every class starts with cm- so the shell can change freely. */
.cm-page { font-size: 18px; line-height: 1.6; padding: 8px 0 40px; }
.cm-page p { margin: 0 0 14px; }
.cm-sec { margin: 44px 0; }
.cm-head { max-width: 820px; margin-bottom: 22px; }
.cm-head h2, .cm-boost h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 900; color: #14161f; margin: 0 0 10px; line-height: 1.2; }
.cm-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; }
.cm-table-wrap { background: #fff; border: 1px solid #e7e0d0; border-radius: 14px; padding: 8px 22px 16px; box-shadow: 0 10px 30px rgba(11, 16, 32, .06); }
.cm-table { width: 100%; border-collapse: collapse; }
.cm-table thead th { text-align: left; font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #6b6f7b; padding: 14px 8px 10px; border-bottom: 2px solid #e7a625; white-space: nowrap; }
.cm-table thead th:nth-child(n+2), .cm-table td { text-align: right; }
.cm-table tbody th, .cm-table td { padding: 16px 8px; border-bottom: 1px solid #efe9dc; vertical-align: top; }
.cm-table tbody tr:last-child th, .cm-table tbody tr:last-child td { border-bottom: 0; }
.cm-table tbody th { text-align: left; font-weight: 400; }
.cm-table tbody th b { display: block; font-size: 19px; color: #14161f; }
.cm-table tbody th span { display: block; color: #2f323c; font-size: 16px; }
.cm-table tbody th small { display: block; color: #6b6f7b; font-size: 16px; margin-top: 4px; line-height: 1.45; }
.cm-price { font-weight: 700; color: #2f323c; white-space: nowrap; }
.cm-you { font-weight: 900; font-size: 22px; color: #17365d; white-space: nowrap; }
.cm-down th { box-shadow: inset 4px 0 0 #e7a625; padding-left: 14px; }
.cm-src { font-size: 16px; color: #6b6f7b; margin: 10px 0 0 !important; }
.cm-chart { margin: 0; background: #fff; border: 1px solid #e7e0d0; border-radius: 14px; padding: 18px; }
.cm-chart img { display: block; width: 100%; height: auto; }
.cm-chart figcaption { font-size: 16px; color: #6b6f7b; text-align: center; margin-top: 8px; }

.cm-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cm-flow li { display: flex; gap: 16px; background: #fff; border: 1px solid #e7e0d0; border-radius: 14px; padding: 22px; }
.cm-flow h3 { font-size: 20px; margin: 2px 0 8px; color: #14161f; }
.cm-flow p { margin: 0; }
.cm-n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #17365d; color: #f2b53a; font-weight: 900; font-size: 19px; display: flex; align-items: center; justify-content: center; }

.cm-link { background: #0b1020; border-radius: 14px; padding: 22px 24px; }
.cm-url { margin: 0 !important; font-family: ui-monospace, Consolas, monospace; font-size: 18px; color: #c9d2e3; overflow-wrap: anywhere; line-height: 1.7; }
.cm-url b { font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.cm-a { color: #1b1300; background: #f2b53a; }
.cm-t { color: #0b1020; background: #9fd0ff; }
.cm-y { color: #0b1020; background: #a8e0b0; }
.cm-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.cm-part { background: #fff; border: 1px solid #e7e0d0; border-radius: 14px; padding: 20px; }
.cm-part > b { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-size: 18px; padding: 2px 8px; border-radius: 6px; margin-bottom: 10px; }
.cm-part p { margin: 0; }
.cm-page code { font-family: ui-monospace, Consolas, monospace; font-size: 16px; background: #f1ece0; padding: 1px 6px; border-radius: 5px; color: #14161f; }
.cm-more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 22px 0 0 !important; }
.cm-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: #e7a625; color: #1b1300; font: 900 17px Lato, Arial, sans-serif; text-decoration: none; box-shadow: 0 8px 20px rgba(231, 166, 37, .3); }
.cm-btn:hover { background: #f2b53a; }
.cm-btn .ico, .cm-textlink .ico { width: 18px; height: 18px; }
.cm-textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #17365d; }

.cm-boost { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; background: #fff; border: 1px solid #e7e0d0; border-left: 6px solid #e7a625; border-radius: 14px; padding: 30px; }
.cm-mgr { background: #f8f5ee; border-radius: 14px; padding: 16px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .cm-grid, .cm-boost { grid-template-columns: minmax(0, 1fr); }
  .cm-parts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .cm-page { font-size: 17px; }
  .cm-sec { margin: 34px 0; }
  .cm-flow { grid-template-columns: minmax(0, 1fr); }
  .cm-table-wrap { padding: 4px 14px 12px; }
  .cm-table tbody th, .cm-table td { padding: 14px 4px; }
  .cm-you { font-size: 19px; }
  .cm-url { font-size: 16px; }
  .cm-boost { padding: 22px 18px; }
  .cm-flow li { padding: 18px; }
}
