/* Floating masterclass bar: same design as the bar on marketingsystemsarchitect.com.
   Markup in index.html (data-mcbar), behaviour in mc-bar.js. */
.mcb {
  position: fixed; left: 50%; bottom: 12px; z-index: 60;
  width: max-content; max-width: calc(100% - 24px);
  transform: translateX(-50%);
  animation: mcbIn .3s ease;
}
.mcb[hidden] { display: none !important; }
@keyframes mcbIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translateX(-50%); } }
.mcb__inner {
  display: flex; align-items: center;
  padding: 8px 8px 8px 18px; border-radius: 18px;
  background: #fff; border: 1px solid #E1E6F0;
  box-shadow: 0 14px 36px rgba(20, 36, 58, .18);
  font-family: "Open Sans", system-ui, sans-serif; color: #14243A;
}
.mcb__price { display: flex; align-items: baseline; gap: 8px; margin: 0; padding-right: 18px; white-space: nowrap; }
.mcb__price s { font-size: 16px; color: #14243A; opacity: .65; }
.mcb__price s[hidden] { display: none; }
.mcb__price b { font-size: 22px; font-weight: 800; color: #14243A; background: #D8F36A; padding: 1px 10px; border-radius: 8px; }
.mcb__cd { display: flex; align-items: flex-start; gap: 6px; margin: 0 14px 0 0; padding: 0 18px; border-left: 1px solid #E1E6F0; border-right: 1px solid #E1E6F0; }
.mcb__cd[hidden] { display: none; }
.mcb__u { display: flex; flex-direction: column; align-items: center; min-width: 44px; }
.mcb__u b { font-size: 24px; font-weight: 800; line-height: 1.1; color: #14243A; font-variant-numeric: tabular-nums; }
.mcb__u i { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5A6478; }
.mcb__sep { font-size: 22px; font-weight: 800; line-height: 1.1; color: #C8D0DC; }
.mcb__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 12px;
  background: #1C2537; color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.mcb__btn:hover { background: #14243A; transform: translateY(-1px); }
.mcb__btn:focus-visible { outline: 3px solid #D8F36A; outline-offset: 2px; }

@media (max-width: 640px) {
  .mcb { bottom: 8px; width: calc(100% - 16px); max-width: none; }
  .mcb__inner { flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 10px 12px; }
  .mcb__price { padding-right: 0; }
  .mcb__price b { font-size: 20px; }
  .mcb__cd { margin: 0; padding: 0; border: 0; gap: 3px; }
  .mcb__u { min-width: 34px; }
  .mcb__u b { font-size: 20px; }
  .mcb__u i { font-size: 9.5px; letter-spacing: .08em; }
  .mcb__sep { font-size: 18px; }
  .mcb__btn { width: 100%; padding: 13px 16px; font-size: 15px; }
}
/* Chat bubble: on narrower screens it would sit on the bar, so lift it above while the bar shows. */
.cw-root { transition: bottom .25s ease; }
@media (max-width: 1100px) {
  html.mcb-on .cw-root { bottom: calc(var(--mcb-h, 120px) + 20px) !important; }
}
@media (prefers-reduced-motion: reduce) { .mcb { animation: none; } .mcb__btn { transition: none; } }
