/* AFT Trading Bots: the cart (row E806, cart.js). Its own colours and fonts, as nav.css does, so it looks the same on the
   bots pages and on the Setup pages, which do not load /style.css or bots.css. */

/* the count in the top bar: beside the Menu button under 1040 px, after the seven links from 1040 px */
.tbn .tbn-in.has-cart .tbn-cart{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;
  margin:0 0 0 auto;padding:0;border:1px solid #2f3349;border-radius:8px;background:transparent;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tbn .tbn-in.has-cart .tbn-cart:hover{border-color:#9a9fb3}
.tbn .tbn-cart svg{display:block}
.tbn .tbn-cart-n{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#2f3349;color:#fff;
  font:600 12px/20px "IBM Plex Sans","Helvetica Neue",Arial,sans-serif;text-align:center}
.tbn .tbn-cart.has-items .tbn-cart-n{background:#d4161b}
.tbn .tbn-cart.is-bump .tbn-cart-n{animation:crt-bump .45s ease}
@keyframes crt-bump{40%{transform:scale(1.35)}}
@media(prefers-reduced-motion:reduce){.tbn .tbn-cart.is-bump .tbn-cart-n{animation:none}}
@media(max-width:1039.98px){.tbn .tbn-in.has-cart{gap:10px}}
@media(min-width:1040px){
  .tbn .tbn-in.has-cart .tbn-links{margin-left:auto}
  .tbn .tbn-in.has-cart .tbn-cart{order:3;margin-left:6px}
}

/* the panel: a drawer at the right from 640 px, the whole screen on a phone */
html.crt-lock{overflow:hidden}   /* the page under the panel stays put; the top bar stays sticky (body is not made a scroller) */
.crt-back{position:fixed;inset:0;z-index:89;background:rgba(5,6,10,.7)}
.crt-back[hidden],.crt[hidden]{display:none}
.crt{position:fixed;z-index:90;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;box-sizing:border-box;background:#12131c;color:#d8dbe6;
  font:400 15px/1.45 "IBM Plex Sans","Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased;text-align:left}
.crt *,.crt *::before,.crt *::after{box-sizing:border-box}
@media(min-width:640px){.crt{left:auto;width:440px;border-left:1px solid #2f3349;box-shadow:-24px 0 60px rgba(0,0,0,.5)}.crt.is-pay{width:min(620px,100%)}}
.crt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;height:64px;padding:0 12px 0 20px;border-bottom:1px solid #23263a}
.crt-h{margin:0;font:800 20px/1.2 "Archivo","Helvetica Neue",Arial,sans-serif;letter-spacing:.02em;color:#fff;outline:0}
.crt-x{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:0;border:1px solid #2f3349;border-radius:8px;background:transparent;color:#fff;font-size:26px;line-height:1;cursor:pointer}
.crt-x:hover{border-color:#9a9fb3}
.crt-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 20px calc(24px + env(safe-area-inset-bottom,0px))}
.crt p{margin:0}
.crt a{color:#fff}
.crt :focus-visible{outline:2px solid #fff;outline-offset:2px}
.crt-note{margin:0 0 14px !important;padding:10px 12px;border-left:3px solid #ff5257;border-radius:6px;background:rgba(225,25,30,.10);color:#fff;font-size:14.5px}
.crt-one{margin:0 0 14px !important;color:#9a9fb3;font-size:14px}
.crt-ask{margin:0 0 14px;padding:12px;border:1px solid #ff5257;border-radius:8px;background:#171925;color:#fff}
.crt-ask-b{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px !important}
.crt-empty{color:#9a9fb3}
.crt-links{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:14px !important}
.crt-links a{text-decoration:underline;text-underline-offset:3px}
/* Row E816: each link is at least 30px tall to tap, with no change to the lines around it */
.crt-links a{padding:5px 0;margin:-5px 0}
.crt-items{list-style:none;margin:0;padding:0;border-top:1px solid #23263a}
.crt-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:baseline;padding:12px 0;border-bottom:1px solid #23263a}
.crt-item-t{min-width:0}
.crt-item-t b{display:block;color:#fff;font-weight:600;font-size:16px;overflow-wrap:anywhere}
.crt-item-t small{display:block;color:#9a9fb3;font-size:13px;line-height:1.35}
.crt-item-p{color:#fff;font-weight:600;white-space:nowrap;text-align:right}
.crt-item-p small{color:#9a9fb3;font-weight:400;font-size:13px}
.crt-rm{grid-column:2;justify-self:end;min-height:32px;margin:0;padding:4px 0;border:0;background:none;color:#9a9fb3;font:inherit;font-size:13.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.crt-rm:hover{color:#fff}
.crt-tip{display:grid;gap:10px;margin:14px 0 0;padding:12px;border:1px solid rgba(52,194,122,.45);border-radius:8px;background:rgba(52,194,122,.08)}
.crt-tip p{color:#fff;font-size:14.5px}
.crt-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:16px 0 2px !important;color:#d8dbe6;font-weight:600}
.crt-total b{font:700 24px/1.2 "Archivo","Helvetica Neue",Arial,sans-serif;color:#fff;letter-spacing:-.02em;white-space:nowrap}
.crt-total small{font:400 14px "IBM Plex Sans","Helvetica Neue",Arial,sans-serif;color:#9a9fb3;letter-spacing:0}
.crt-sum{color:#9a9fb3;font-size:13px}
/* Row E832: a monthly cart's two totals: what is due today (the free trial), then the monthly sum after the trial */
.crt-today{margin-bottom:0 !important}
.crt-after{margin-top:6px !important}
.crt-after b{font-size:20px}
.crt-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:10px 16px;border:1px solid #2f3349;border-radius:8px;background:transparent;
  color:#fff;font:600 15px/1.2 "IBM Plex Sans","Helvetica Neue",Arial,sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap}
.crt-btn:hover{border-color:#9a9fb3;text-decoration:none}
.crt-btn-red{background:#d4161b;border-color:#ff5257}
.crt-btn-red:hover{background:#e61d23;border-color:#ff5257}
.crt a.crt-go{display:flex;width:100%;min-height:52px;margin:16px 0 10px;font-size:17px;color:#fff}
.crt-fine{color:#80859c;font-size:12.5px;line-height:1.45}
.crt-paybar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;margin:0 0 12px !important;color:#d8dbe6;font-weight:600;font-size:14.5px}
.crt-back-b{min-height:40px;margin:0;padding:0;border:0;background:none;color:#fff;font:inherit;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.crt-load{padding:24px 0;color:#9a9fb3;text-align:center}
.crt-load[hidden]{display:none}
.crt-embed{min-height:120px;margin:0 0 14px;border-radius:10px;overflow:hidden}
.crt-fb{margin:0 0 14px;padding:12px;border:1px solid #2f3349;border-radius:8px;background:#171925}
.crt-fb[hidden]{display:none}
.crt-fb ul{margin:8px 0 0;padding:0 0 0 18px}
.crt-fb li{margin:4px 0}
.crt-fb a{text-decoration:underline;text-underline-offset:3px}
.crt-vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Add to cart on the pages */
.crt-add{display:inline-flex;align-items:center;justify-content:center;margin:0;border:1px solid #2f3349;border-radius:8px;background:transparent;color:#fff;
  font:600 15px/1.2 "IBM Plex Sans","Helvetica Neue",Arial,sans-serif;cursor:pointer;white-space:nowrap}
.crt-add:hover{border-color:#9a9fb3}
.crt-add.is-in{border-color:#34c27a;color:#7fe0ad}
/* the bots page's strategy cards: the button under each card, the card keeping the height the row gives it */
.crt-cardw{display:flex;flex-direction:column;gap:8px;min-width:0}
.crt-cardw>.bx-strat{flex:1 1 auto}
.crt-add-card{width:100%;min-height:44px;padding:9px 14px}
/* the Strategy Library: under the price on each line, and in the open card */
.crt-add-sm{display:flex;min-height:34px;margin-top:6px;padding:5px 10px;font-size:13px}
/* Row E827: the button's room, kept by strategies.js until the button replaces it (the same height and margin) */
.crt-slot{display:block;height:34px;margin-top:6px}
.crt-add-open{width:100%;min-height:44px;padding:8px 12px;font-size:15px}
