/* Blackbooker auth screens (login / signup) */

/* override max width 1170px in signup, login, forget password, reset password. */
body.bb-auth-page .container.page-container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

/* general ---remove text underline */
.blackbooker-bb a {
  text-decoration: none !important;
}

.bb-auth-page {
  margin: 0;
  background: #fff;
}

.bb-auth-wrap {
  display: flex;
  min-height: 100vh;
}

.bb-auth-visual {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: linear-gradient(56.43deg, #ffeefe 0.78%, #e9e5cc 100%);
}

.bb-auth-logo {
  max-width: 500px;
  width: 100%;
  height: auto;
  margin-right: 5%;
}

.bb-auth-panel {
  flex: 1 1 50%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 40px 20px 40px 90px;
}

.bb-auth-form {
  width: 100%;
  max-width: 420px;
  min-height: 675px;
}

.bb-auth-form h1 {
  font-size: 25px !important;
  font-weight: 700;
  text-align: center;
  margin: 0 0 4px;
  color: #000000;
  margin-bottom: 25px;
}
.bb-auth-form.login h1 {
  margin-bottom: 7px;
}
.bb-auth-subtitle {
  text-align: center;
  font-style: italic;
  color: #525252;
  font-size: 18px;
  margin: 0 0 28px;
}

.bb-auth-message {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
}

.bb-auth-message.bb-error {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c2c0;
}

.bb-auth-message.bb-success {
  background: #eaf7ed;
  color: #1e7e34;
  border: 1px solid #c3e6cb;
}

.bb-field {
  position: relative;
  margin-bottom: 18px;
}

.bb-field input[type="text"],
.bb-field input[type="email"],
.bb-field input[type="password"],
.bb-field input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 20px 40px 20px 18px;
  border: 1px solid #d3d3d3;
  border-radius: 50px;
  font-size: 16px;
  outline: none;
  min-width: 400px;
}

.bb-field input:focus {
  border-color: #a11d24;
}

.bb-field.bb-field-error input {
  border-color: #b3261e;
}

.bb-placeholder-label {
  font-size: 16px;
  font-weight: 400;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #989898;
  pointer-events: none;
  transition: opacity 0.1s ease;
  /* font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important; */
}

.bb-field input:not(:placeholder-shown) + .bb-placeholder-label {
  opacity: 0;
}

.bb-required {
  color: #ff0000;
}

.bb-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  padding: 6px;
  display: flex;
  align-items: center;
}

.bb-toggle-password img {
  width: 24px;
  height: 24px;
}

.bb-auth-form .bb-forgot-link {
  display: block;
  text-align: left;
  font-size: 14px;
  color: #fb0103;
  text-decoration: none;
  margin: -8px 0 30px;
  font-weight: 400;
}

.bb-checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #989898;
  margin: -6px 0 45px;
  cursor: pointer;
}
.bb-auth-form.login .bb-auth-switch {
  margin-top: 30%;
}
.bb-auth-form.signup .bb-auth-switch {
  margin-top: 25%;
}
.bb-checkbox-field input {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #c4c4c4;
  margin: 0 !important;
  flex-shrink: 0;
  cursor: pointer;
  outline: none !important;
}

.bb-checkbox-field input:checked {
  background: #fb0103;
}

.bb-app .bb-submit-btn,
.bb-auth-page .bb-submit-btn {
  position: relative;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 50px;
  background: #fb0103;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
  /* font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; */
}

.bb-app .bb-submit-btn::before,
.bb-auth-page .bb-submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #56236d;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.bb-app .bb-submit-btn:hover::before,
.bb-auth-page .bb-submit-btn:hover::before {
  width: 100%;
}

.bb-app .bb-submit-btn:disabled,
.bb-auth-page .bb-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bb-app .bb-submit-btn:disabled::before,
.bb-auth-page .bb-submit-btn:disabled::before {
  display: none;
}

.bb-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #525252;
  font-size: 16px;
  font-weight: 500;
  margin: 24px 0;
}

.bb-divider::before,
.bb-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #d3d3d3;
}

.bb-divider span {
  padding: 0 30px;
}

.bb-social-buttons {
  display: flex;
  gap: 12px;
}

.bb-social-buttons > * {
  flex: 1;
}

/* Nextend Social Login buttons — match bb-submit-btn pill styling */
.bb-social-buttons .nsl-container {
  width: 100%;
}

.bb-social-buttons .nsl-container-buttons {
  width: 100%;
}

.bb-social-buttons .nsl-container-buttons a {
  width: 100%;
}

.bb-social-buttons .nsl-container-buttons a:focus,
.bb-social-buttons .nsl-container-buttons a:focus-visible {
  outline: none !important;
}
.bb-auth-form.login div.nsl-container .nsl-container-buttons,
.bb-auth-form.signup div.nsl-container .nsl-container-buttons {
  padding: 0;
}
.bb-auth-form.login div.nsl-container-block .nsl-container-buttons a,
.bb-auth-form.signup div.nsl-container-block .nsl-container-buttons a {
  margin: 0;
}
.bb-auth-form.login .bb-social-buttons .nsl-button,
.bb-auth-form.signup .bb-social-buttons .nsl-button {
  width: 100% !important;
  box-sizing: border-box;
  border: 1px solid #d3d3d3 !important;
  border-radius: 24px !important;
  padding: 8px 14px !important;
  background-color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  box-shadow: none;
}

.bb-social-buttons .nsl-button-svg-container {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bb-auth-form.login .bb-social-buttons .nsl-button-svg-container svg,
.bb-auth-form.signup .bb-social-buttons .nsl-button-svg-container svg {
  width: 24px !important;
  height: 24px !important;
}

/* Facebook's icon SVG is white-filled by default (meant for its blue button
   background), which our forced white .nsl-button background makes invisible.
   Recolor it to Facebook's brand blue so it's visible on a white pill. */
.bb-social-buttons .nsl-button-facebook .nsl-button-svg-container svg path {
  fill: #1877f2 !important;
}
.bb-auth-form.login div.nsl-container .nsl-button-svg-container,
.bb-auth-form.signup div.nsl-container .nsl-button-svg-container {
  padding: 0 !important;
}
.bb-social-buttons .nsl-button-label-container {
  font-size: 16px !important;
  color: #525252 !important;
  margin: 0 !important;
  flex: unset !important;
  padding: 0 !important;
  text-decoration: none !important;
}

/* Nextend wraps each button in a bare <a> (no class, just href/data-*
   attrs) — that's the actual element carrying the browser's native
   link underline, not .nsl-button-label-container. Target it via its
   parent .nsl-container-buttons instead since it has nothing else
   to hook into. */
.bb-social-buttons .nsl-container-buttons > a {
  text-decoration: none !important;
}

.bb-social-buttons .nsl-container-buttons > a:focus,
.bb-social-buttons .nsl-container-buttons > a:focus-visible,
.bb-social-buttons .nsl-button-label-container:focus,
.bb-social-buttons .nsl-button-label-container:focus-visible {
  outline: none !important;
}

.bb-social-buttons .nsl-button,
.bb-social-buttons .nsl-button-label-container span {
  text-decoration: none !important;
}

.bb-auth-switch {
  text-align: center;
  font-size: 16px;
  color: #525252;
  margin-top: 30%;
}

.bb-auth-switch a {
  position: relative;
  color: #fb0103 !important;
  text-decoration: none;
  display: inline-block;
  outline: none !important;
}

.bb-auth-switch a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.bb-auth-switch a:hover::after,
.bb-auth-switch a:focus-visible::after,
.bb-auth-switch a:active::after {
  transform: scaleX(1);
  color: #fb0103;
}
.bb-auth-switch a:hover,
.bb-auth-switch a:active,
.bb-auth-switch a:focus-visible {
  color: #fb0103;
}

@media (max-width: 782px) {
  .bb-auth-wrap {
    flex-direction: column;
  }

  .bb-auth-visual {
    min-height: 220px;
    flex: none;
  }

  .bb-auth-panel {
    flex: none;
    padding: 30px 16px 60px;
  }
}

/* ==========================================================
   Blackbooker dashboard
   ========================================================== */

.bb-dashboard-page {
  margin: 0;
  background: #f2f2f2;
  color: #1a1a1a;
}

.bb-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header ---- */

.bb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 1px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 100px;
  box-sizing: border-box;
}

.bb-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #fff;
  border-bottom: 1px solid #ececec;
  z-index: -1;
}

.bb-header-logo {
  display: flex;
  align-items: center;
}

.bb-header-logo img {
  height: 67px;
  width: auto;
  display: block;
}

.bb-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border: 1px solid #ababab;
  border-radius: 999px;
  color: #fb0103;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
  line-height: 0;
}

.bb-back-btn:hover {
  border-color: #c8102e;
  background: #fff5f6;
}

.bb-back-btn-icon {
  display: inline-flex;
  color: #fb0103;
}

/* ---- User menu ---- */

.bb-user-menu {
  position: relative;
}

.bb-user-avatar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #56236d 8.68%, #fb0103 92.77%) border-box;
  cursor: pointer;
  justify-content: center;
  position: relative;
}

.bb-user-avatar-initial {
  font-size: 17px;
  font-weight: 700;
  color: #a11d24;
}

.bb-user-avatar-caret {
  position: absolute;
  right: -7px;
  bottom: -6px;
  width: 16px;
  height: 16px;
  background: #fff5f6;
  border-radius: 50%;
}

.bb-user-avatar-caret::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 5px solid #fb0103;
  transform: translate(-50%, -50%);
}

.bb-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 210px;
  background: #fff;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  border-top: 4px solid #56236d;
  z-index: 200;
}

.bb-user-dropdown.is-open {
  display: block;
}

.bb-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #333;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.12s ease;
  line-height: 0;
}

.bb-user-dropdown-item:hover {
  background: #f7f7f7;
}

.bb-user-dropdown-item.dashboard {
  padding-top: 20px;
}
.bb-user-dropdown-item:last-child {
  padding-bottom: 20px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.bb-user-dropdown-item:focus,
.bb-user-dropdown-item:focus-visible {
  outline: none;
}

.bb-user-dropdown-icon {
  display: inline-flex;
  justify-content: center;
  color: #a8a8a8;
  flex: none;
}
.bb-header .bb-user-dropdown-item.trackwork img {
  width: 24px;
}
.bb-header .bb-user-dropdown-item span {
  width: 25px;
}
.bb-header .bb-user-dropdown img {
  width: 18px;
  height: auto;
}
.bb-header .bb-user-dropdown i {
  font-size: 18px;
}
.bb-user-dropdown-item.dashboard .bb-user-dropdown-icon-red,
.bb-user-dropdown-item.profile .bb-user-dropdown-icon-red,
.bb-user-dropdown-item.trackwork .bb-user-dropdown-icon-red {
  display: none;
}

.bb-user-dropdown-item.dashboard:hover .bb-user-dropdown-icon-default,
.bb-user-dropdown-item.dashboard.is-active .bb-user-dropdown-icon-default,
.bb-user-dropdown-item.profile:hover .bb-user-dropdown-icon-default,
.bb-user-dropdown-item.profile.is-active .bb-user-dropdown-icon-default,
.bb-user-dropdown-item.trackwork:hover .bb-user-dropdown-icon-default,
.bb-user-dropdown-item.trackwork.is-active .bb-user-dropdown-icon-default {
  display: none;
}

.bb-user-dropdown-item.dashboard:hover .bb-user-dropdown-icon-red,
.bb-user-dropdown-item.dashboard.is-active .bb-user-dropdown-icon-red,
.bb-user-dropdown-item.profile:hover .bb-user-dropdown-icon-red,
.bb-user-dropdown-item.profile.is-active .bb-user-dropdown-icon-red,
.bb-user-dropdown-item.trackwork:hover .bb-user-dropdown-icon-red,
.bb-user-dropdown-item.trackwork.is-active .bb-user-dropdown-icon-red {
  display: inline-flex;
}

.bb-user-dropdown-item.favourite:hover .bb-user-dropdown-icon,
.bb-user-dropdown-item.favourite.is-active .bb-user-dropdown-icon,
.bb-user-dropdown-item.notification:hover .bb-user-dropdown-icon,
.bb-user-dropdown-item.notification.is-active .bb-user-dropdown-icon {
  color: #a11d24;
}
.bb-user-dropdown-item-danger,
.bb-user-dropdown-item-danger .bb-user-dropdown-icon {
  color: #fb0103;
}

.bb-user-dropdown-item.is-active {
  background: #fff5f6;
  color: #a11d24;
  font-weight: 600;
}
.bb-user-dropdown-item:hover {
  background: #fff5f6;
  color: #a11d24;
  font-weight: 600;
}
.bb-user-dropdown-item.logout:hover {
  color: #fb0103;
}
.bb-user-dropdown-item.logout .bb-user-dropdown-icon {
  justify-content: end;
}
.bb-user-dropdown-item.is-active .bb-user-dropdown-icon {
  color: #a11d24;
}

.bb-user-avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ---- Main / modules ---- */

.bb-main,
.bb-profile-main {
  flex: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 41px 1px 64px;
  box-sizing: border-box;
}

.bb-main h1,
.bb-main h2,
.bb-main h3,
.bb-main h4,
.bb-main h5,
.bb-main h6 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.bb-greeting {
  font-size: 35px;
  font-weight: 700;
  color: #400063;
  margin: 0 0 20px;
}

.bb-module {
  margin-bottom: 52px;
}

.bb-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.bb-module-title {
  font-size: 25px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #000;
}

.bb-module-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #fb0103;
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.bb-module-action-icon {
  font-size: 12px;
}

#bb-module-upcoming-race .bb-module-body,
#bb-module-race-results .bb-module-body,
.bb-module-live-trackwork.bb-module .bb-module-body {
  min-height: 100px;
}
#bb-module-upcoming-race .bb-module-body:not(.have-content),
#bb-module-race-results .bb-module-body:not(.have-content) {
  background: #fff;
}
.bb-module .bb-module-body {
  background: #d8d8d8;
  border-radius: 20px;
  min-height: 150px;
  max-height: 600px;
  box-sizing: border-box;
  padding: 31px 20px;
}

/* ----- live trackwork ------- */
.bb-module-body.bb-live-trackwork-body {
  display: flex;
  align-items: stretch;
  min-height: 108px;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
}

.bb-live-trackwork-date {
  flex: 0 0 82px;
  width: 82px;
  background: #fbd735;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  border-radius: 20px 0 0 20px;
}

.bb-live-trackwork-date-day,
.bb-live-trackwork-date-month {
  font-size: 14px;
  font-weight: 500;
  color: #000;
}

.bb-live-trackwork-date-num {
  font-size: 26px;
  font-weight: 700;
  color: #000;
}

.bb-live-trackwork-banner {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(
    90deg,
    #7e3a9e 0%,
    #d26fff 24.04%,
    #7e3a9e 62.02%,
    #352240 100%
  );
  border-radius: 0 20px 20px 0;
}

.bb-live-trackwork-play {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #fb0103;
  font-size: 11px;
}

.bb-live-trackwork-live {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #fb0103;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.bb-live-trackwork-label {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.bb-module-placeholder {
  display: flex;
  align-items: center;
  color: #666666;
  font-size: 16px;
  padding: 22px 24px;
}

.bb-module-placeholder-row {
  justify-content: space-between;
}

.bb-module-placeholder-fill {
  min-height: 160px;
  justify-content: center;
  text-align: center;
  background: #e2e2e2;
  border-radius: 10px;
}

.bb-module-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: #fb0103;
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.bb-module-grid-2 {
  display: grid;
  grid-template-columns: 750fr 366fr;
  gap: 24px;
  margin: 45px 0;
}

.bb-module-grid-2 .bb-module {
  margin-bottom: 0;
}

/* ---- My racing news // trackwork replays ---- */
#bb-module-racing-news .bb-module-body.bb-racing-news-body {
  display: flex;
  flex-direction: column;
  background: #fff;
}
#bb-module-racing-news .bb-racing-news-scroll {
  position: relative;
  display: flex;
}
#bb-module-racing-news .bb-racing-news-list {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#bb-module-racing-news .bb-racing-news-list::-webkit-scrollbar {
  display: none;
}
#bb-module-racing-news .bb-racing-news-scrollbar {
  position: relative;
  flex: 0 0 4px;
  width: 4px;
  max-height: 460px;
  border-radius: 999px;
  background: #ebebeb;
}
#bb-module-racing-news .bb-racing-news-scrollbar-thumb {
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: 999px;
  background: #fb0103;
}

.bb-module .bb-module-body .bb-racing-news-item {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.bb-module
  .bb-module-body
  .bb-racing-news-item:not(:first-child):not(:last-child) {
  margin: 19px 0;
}
.bb-module .bb-module-body .bb-racing-news-thumb {
  max-width: 74px;
  margin-right: 3%;
}
.bb-module .bb-module-body .bb-racing-news-thumb img {
  border-radius: 10px;
  max-width: 74px;
}
.bb-module .bb-module-body .bb-racing-news-item .bb-racing-news-info {
  display: flex;
  flex-direction: column;
}
.bb-racing-news-item .bb-racing-news-info .bb-racing-news-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: #000;
}
.bb-racing-news-item .bb-racing-news-info .bb-racing-news-date {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  margin-top: 4px;
  color: #00000080;
}
.bb-module .bb-module-body .bb-btn.bb-btn-primary {
  background: #fb0103;
  color: #fff;
  padding: 8px 43px;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  width: max-content;
  margin: 6% auto 0 auto;
}
.bb-trackwork-replays-body .bb-btn.bb-btn-primary {
  padding: 8px 57px !important;
}
/* ----- trackwork replays ------- */
.bb-module-body.bb-trackwork-replays-body {
  background: #fff;
}
#bb-module-trackwork-replays .bb-trackwork-replays-thumb {
  position: relative;
  width: 326px;
  height: 108px;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 18px;
}

#bb-module-trackwork-replays .bb-trackwork-replays-thumb img {
  display: block;
  width: 326px;
  height: 108px;
  object-fit: cover;
  object-position: center center;
}

#bb-module-trackwork-replays .bb-trackwork-replays-date-badge {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82px;
  background: #fbd735;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
}

#bb-module-trackwork-replays .bb-trackwork-replays-date-day,
#bb-module-trackwork-replays .bb-trackwork-replays-date-month {
  font-size: 14px;
  font-weight: 500;
  color: #000;
}

#bb-module-trackwork-replays .bb-trackwork-replays-date-num {
  font-size: 26px;
  font-weight: 700;
  color: #000;
}

#bb-module-trackwork-replays .bb-trackwork-replays-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #a3a3a3;
  margin: 0 0 16px 4px;
}

#bb-module-trackwork-replays .bb-trackwork-replays-heart {
  color: #fb0103;
  font-size: 16px;
}

#bb-module-trackwork-replays .bb-trackwork-replays-scroll {
  position: relative;
  display: flex;
}

#bb-module-trackwork-replays .bb-trackwork-replays-list {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 324px; /* ~4 items (81px each) before scrolling */
  overflow-y: auto;
  padding-right: 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#bb-module-trackwork-replays .bb-trackwork-replays-list::-webkit-scrollbar {
  display: none;
}

#bb-module-trackwork-replays .bb-trackwork-replays-scrollbar {
  position: relative;
  flex: 0 0 4px;
  width: 4px;
  max-height: 460px;
  border-radius: 999px;
  background: #ebebeb;
}

#bb-module-trackwork-replays .bb-trackwork-replays-scrollbar-thumb {
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: 999px;
  background: #fb0103;
}

.bb-module .bb-module-body .bb-trackwork-replays-item {
  display: flex;
  align-items: flex-end;
  gap: 3%;
  padding: 15px 0;
  border-bottom: 1px solid #ebebeb;
}

.bb-module .bb-module-body .bb-trackwork-replays-item:first-child {
  padding-top: 0;
}

.bb-module .bb-module-body .bb-trackwork-replays-item:last-child {
  border-bottom: none;
}

.bb-module .bb-module-body .bb-trackwork-replays-jersey {
  flex: 0 0 33px;
  width: 33px;
  height: 50px;
}

.bb-module .bb-module-body .bb-trackwork-replays-jersey img {
  display: block;
  width: 33px;
  height: 50px;
  object-fit: contain;
}

.bb-module .bb-module-body .bb-trackwork-replays-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 2%;
}

.bb-trackwork-replays-info .bb-trackwork-replays-mrano {
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0%;
  color: #000;
}

.bb-trackwork-replays-info .bb-trackwork-replays-name {
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0%;
  color: #000;
}

.bb-trackwork-replays-name .bb-trackwork-replays-cn-name {
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0%;
}

.bb-module .bb-module-body .bb-trackwork-replays-play {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fb0103;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-decoration: none;
  line-height: 0;
  font-size: 9px;
}

/* ---- END My racing news // trackwork replays ---- */

/* ----- upcoming race ------- */
.bb-module-head .bb-module-action {
  padding: 6px 18px;
  font-size: 16px;
  font-weight: 500;
}
#bb-module-upcoming-race .bb-module-action-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
#bb-module-race-results .bb-module-action img {
  height: 20px;
  width: 20px;
}
.bb-module-body.bb-upcoming-race-body {
  background: transparent;
  padding: 0;
  min-height: 0;
  max-height: none;
}
.bb-upcoming-race-slides {
  position: relative;
  min-height: 450px;
}

.bb-upcoming-race-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.bb-upcoming-race-grid.is-active {
  display: grid;
}

.bb-upcoming-race-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -4px 0 20px;
}

.bb-upcoming-race-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #b8b8b8;
  cursor: pointer;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.bb-upcoming-race-dot.is-active {
  width: 34px;
  background: #fb0103;
}
.bb-module-body.bb-upcoming-race-body .bb-btn-primary.upcoming-race {
  margin-top: 20px;
  background: transparent;
  color: #fb0103;
}
.bb-upcoming-race-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  box-sizing: border-box;
  overflow: hidden;
}

.bb-upcoming-race-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 90px;
}

.bb-upcoming-race-jersey {
  flex: 0 0 33px;
  width: 33px;
  height: 50px;
}

.bb-upcoming-race-jersey img {
  display: block;
  width: 33px;
  height: 50px;
  object-fit: contain;
}

.bb-upcoming-race-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bb-upcoming-race-name {
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.bb-upcoming-race-meta {
  font-size: 16px;
  font-weight: 700;
  color: #666666;
}
/* date and desc */
.bb-upcoming-race-card-body p {
  font-family: "Roboto", sans-serif;
  color: #400063;
  font-weight: 700;
  font-size: 16px;
}
.bb-upcoming-race-card-body .bb-upcoming-race-ad-text span {
  color: #400063 !important;
}
.bb-upcoming-race-card-body .bb-upcoming-race-ad-text span {
  display: flex;
  align-items: center;
}
.bb-upcoming-race-card-body .bb-upcoming-race-ad-text a {
  margin-right: 15px;
}
.bb-upcoming-race-ad-text img {
  min-height: 50px;
  object-fit: cover;
}
.bb-upcoming-race-ad-text a {
  line-height: 0;
}
.bb-upcoming-race-card-footer i {
  color: #614d6a;
  margin-right: 7px;
}
/* end date and desc */
.bb-upcoming-race-date-badge {
  position: absolute;
  top: 0;
  right: 17px;
  width: 82px;
  padding: 20px 0 14px;
  background: #fbd735;
  border-radius: 0 0 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
}

.bb-upcoming-race-date-day,
.bb-upcoming-race-date-month {
  font-size: 14px;
  font-weight: 500;
  color: #000;
}

.bb-upcoming-race-date-num {
  font-size: 26px;
  font-weight: 700;
  color: #000;
  line-height: 22px;
}

.bb-upcoming-race-divider {
  border: none;
  border-top: 1px solid #ebebeb;
  margin: 16px 0;
}

.bb-upcoming-race-card-body {
  margin-bottom: 16px;
}

.bb-upcoming-race-class-line,
.bb-upcoming-race-ad-text {
  font-size: 15px;
  font-weight: 700;
  color: #400063;
  margin: 0 0 6px;
}

.bb-upcoming-race-card-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.bb-upcoming-race-location {
  text-transform: uppercase;
}
.bb-upcoming-race-time,
.bb-upcoming-race-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #000000;
}

.bb-upcoming-race-location em {
  font-style: italic;
}

.bb-upcoming-race-icon-calendar,
.bb-upcoming-race-icon-pin {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: none;
}

@media (max-width: 720px) {
  .bb-upcoming-race-grid {
    grid-template-columns: 1fr;
  }

  .bb-upcoming-race-slides {
    min-height: unset;
  }
}

/* ---- END upcoming race ---- */

/* ----- race results ------- */
.bb-module-body.bb-race-result-body {
  background: transparent;
  padding: 0;
  min-height: 0;
  max-height: none;
}

.bb-race-result-slides {
  position: relative;
  min-height: 250px;
}

.bb-race-result-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 24px;
}

.bb-race-result-grid.is-active {
  display: grid;
}

.bb-race-result-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.bb-race-result-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #b8b8b8;
  cursor: pointer;
  transition:
    width 0.2s ease,
    background 0.2s ease,
    border-radius 0.2s ease;
}

.bb-race-result-dot.is-active {
  width: 34px;
  background: #fb0103;
}

.bb-race-result-card {
  display: flex;
  flex-direction: column;
  background: #f2e9ff;
  border-radius: 20px;
  overflow: hidden;
}

.bb-race-result-card-main {
  display: flex;
  align-items: stretch;
  position: relative;
  padding-right: 44px;
  max-height: 110px;
}

.bb-race-result-place-col {
  flex: 0 0 77px;
  width: 92px;
  background: #fbf3d8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px 8px;
  margin-right: 8px;
  text-align: center;
  box-sizing: border-box;
}

.bb-race-result-place {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-race-result-place-img {
  display: block;
  max-height: 58px;
  max-width: 45px;
  object-fit: contain;
}

.bb-race-result-place-label {
  font-size: 15px;
  font-weight: 700;
  color: #000;
}

.bb-race-result-place-other .bb-race-result-place-label {
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.bb-race-result-place-other .bb-race-result-place-num {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.bb-race-result-place-other {
  position: relative;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: #f2e499;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bb-race-result-place-other::before {
  content: "";
  position: absolute;
  width: 37px;
  height: 37px;
  border-radius: 999px;
  background: #b3ab7d;
  z-index: 0;
}

.bb-race-result-place-other .bb-race-result-place-label,
.bb-race-result-place-other .bb-race-result-place-num {
  position: relative;
  z-index: 1;
}

.bb-race-result-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #343434;
  margin-top: 6px;
}
.bb-race-result-time i {
  font-size: 10px;
  color: #cfc383;
}
.bb-race-result-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.bb-race-result-jersey {
  flex: 0 0 33px;
  width: 33px;
  height: 50px;
}

.bb-race-result-jersey img {
  display: block;
  width: 33px;
  height: 50px;
  object-fit: contain;
}

.bb-race-result-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bb-race-result-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bb-race-result-name {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.bb-race-result-horse-badge {
  display: inline-flex;
  padding: 2px 12px;
  background: #d1b2e0;
  color: #400063;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.bb-race-result-race-title {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #400063;
}

.bb-race-result-date {
  font-size: 14px;
  color: #5a5a5a;
}

.bb-race-result-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Same pure-CSS triangle trick as .bb-user-avatar-caret in the header. */
.bb-race-result-toggle-caret {
  position: relative;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #fb0103;
  transition: transform 0.15s ease;
}

.bb-race-result-card.is-open .bb-race-result-toggle-caret {
  transform: rotate(180deg);
}

.bb-race-result-card-footer {
  display: flex;
  background: #fff;
  align-items: stretch;
  gap: 24px;
  max-height: 0;
  padding: 0 24px;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease,
    padding 0.25s ease;
}

.bb-race-result-card.is-open .bb-race-result-card-footer {
  max-height: 160px;
  padding: 20px 24px;
  opacity: 1;
}

.bb-race-result-footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 0;
  text-align: center;
  border-left: 1px solid #dadada;
  padding-left: 24px;
}

.bb-race-result-footer-col:first-child {
  border-left: none;
  padding-left: 0;
}

.bb-race-result-footer-label {
  font-size: 16px;
  color: #6f6f6f;
}

.bb-race-result-footer-value {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.bb-race-result-footer-link {
  flex: 0 0 60px;
}

.bb-race-result-footer-link a {
  font-size: 16px;
  color: #fb0103;
  text-decoration: none;
}

@media (max-width: 720px) {
  .bb-race-result-grid {
    grid-template-columns: 1fr;
  }

  .bb-race-result-slides {
    min-height: unset;
  }
}

/* ---- END race results ---- */

/* ---- Premiership stats ---- */

.bb-stats-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bb-stats-col {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px 14px;
  box-shadow: 0 0 0 1px #ececec;
}

.bb-stats-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.bb-stats-col-head h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.bb-stats-col-label {
  font-size: 12px;
  color: #999;
}

.bb-stats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 40px;
}

.bb-stats-load-more {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #c8102e;
  text-decoration: none;
}

/* ==========================================================
   Blackbooker profile page
   ========================================================== */

.bb-profile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

.bb-profile-main-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bb-visually-hidden {
  display: none !important;
}

/* ---- Photo card ---- */

.bb-profile-photo-card {
  background: linear-gradient(
    90deg,
    #321444 0%,
    #5b2152 42.79%,
    #943885 75.96%,
    #352240 100%
  );
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  color: #fff;
  min-height: 400px;
}

.bb-profile-photo-frame {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto 18px;
}

.bb-profile-photo-frame img.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  position: relative;
  background-color: #e2e8f0;
}

/* Triggers ONLY when the image fails to load / has no src */
.bb-profile-photo-frame img.avatar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #eef0f2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='9' r='4' fill='%23aab0b8'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7' fill='%23aab0b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 68% 68%;
}

.bb-profile-photo-upload-btn {
  position: absolute;
  right: 20px;
  bottom: 4px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
}

.bb-profile-photo-upload-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bb-profile-photo-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}

.bb-profile-photo-meta {
  font-size: 15px;
  margin: 0;
}

/* ---- Profile / password cards ---- */

.bb-profile-card {
  background: #fff;
  border-radius: 20px;
  padding: 35px;
  margin-bottom: 24px;
  box-sizing: border-box;
}
.bb-profile-card.bb-profile-password-card {
  background: #d8d8d8;
}
.bb-profile-card.bb-profile-password-card.is-editing .bb-profile-card-head {
  margin-bottom: 30px;
}
.bb-profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bb-profile-card-head h2 {
  font-size: 25px;
  color: #000;
  font-weight: 700;
  margin: 0;
}

.bb-app .bb-submit-btn-pill {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 31px;
}

.bb-app .bb-submit-btn-pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.bb-profile-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.bb-profile-field-grid .bb-field input,
.bb-profile-field-grid .bb-field select {
  min-width: 0;
  width: 100%;
  color: #989898;
}

.bb-profile-field-grid .bb-field input:not(:placeholder-shown) {
  color: #484848;
}

.bb-field-select select {
  width: 100%;
  box-sizing: border-box;
  padding: 20px 40px 20px 18px;
  border: 1px solid #d3d3d3;
  border-radius: 50px;
  font-size: 15px;
  outline: none;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  color: #989898;
}

.bb-field-select select:valid {
  color: #484848;
}

.bb-field-select::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 10px solid #fb0103;
  transform: translateY(-50%);
  pointer-events: none;
}

.bb-field-select select:focus {
  border-color: #a11d24;
}

.bb-placeholder-label-select {
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  background: none;
  padding: 0;
  opacity: 0;
}

.bb-field-select select:valid + .bb-placeholder-label-select {
  top: 11px;
  transform: none;
  font-size: 12px;
  background: #fff;
  padding: 0 4px;
  left: 16px;
  opacity: 0;
}

.bb-profile-password-card fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: contents;
}

.bb-profile-password-card .bb-field input {
  background: transparent;
  border: solid 1px #b8b8b8;
  color: #8a8a8a;
}

.bb-profile-password-card .bb-field input[type="password"] {
  font-size: 20px;
  font-weight: 400;
  color: #666666;
  letter-spacing: 4px;
}

.bb-profile-password-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  justify-self: start;
}

.bb-profile-password-card fieldset:disabled .bb-profile-password-actions {
  display: none;
}

.bb-app .bb-submit-btn-outline {
  background: transparent;
  color: #fb0103;
  border: 1px solid #fb0103;
}

.bb-app .bb-submit-btn-outline::before {
  background: #fb0103;
}

.bb-app .bb-submit-btn-outline:hover {
  color: #fff;
}

.bb-app .bb-submit-btn-outline:focus-visible {
  outline: 2px solid #a11d24;
  outline-offset: 2px;
}

.bb-app .bb-submit-btn-outline:disabled {
  background: transparent;
  border-color: #d9d9d9;
  color: #b8b8b8;
  opacity: 1;
}

/* ---- Responsive ---- */

/* mobile */
@media (max-width: 768px) {
  .bb-auth-logo {
    margin-right: 0;
    max-width: 300px;
  }
  .bb-auth-visual {
    justify-content: center;
  }

  /* bb profile */
  .bb-header-logo img {
    width: 140px;
    height: auto;
  }
  .bb-profile-photo-card {
    display: flex;
    min-height: unset;
    align-items: center;
    justify-content: space-around;
  }
  .bb-profile-photo-frame {
    width: 100px;
    height: 100px;
    margin: 0;
  }
  .bb-profile-photo-upload-btn {
    right: -17px;
    bottom: -11px;
    width: 40px;
    height: 40px;
  }
  .bb-field input[type="text"],
  .bb-field input[type="email"],
  .bb-field input[type="password"],
  .bb-field input[type="number"] {
    padding: 15px 20px;
  }
  .bb-field {
    margin-bottom: 0;
  }

  /* race result */
  .bb-race-result-card-main {
    max-height: unset;
  }
  .bb-race-result-name {
    font-size: 15px;
  }
  .bb-race-result-toggle {
    height: 100%;
    align-items: flex-end;
    padding-bottom: 15px;
  }
  .bb-race-result-toggle-caret {
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 12px solid #fb0103;
  }
  .bb-race-result-info {
    padding: 15px 9px;
  }
}

@media (max-width: 960px) {
  .bb-module-grid-2,
  .bb-stats-grid-3 {
    grid-template-columns: 1fr;
  }

  .bb-profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .bb-profile-field-grid {
    grid-template-columns: 1fr;
  }
  .bb-profile-card {
    padding: 20px 20px 35px;
  }
}

@media (max-width: 600px) {
  .bb-header {
    padding: 12px 16px;
  }

  .bb-back-btn span:not(.bb-back-btn-icon) {
    display: none;
  }

  .bb-back-btn {
    padding: 9px 12px;
  }

  .bb-main {
    padding: 24px 16px 48px;
  }

  .bb-module-head {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* to hide shift nav on mobile */
@media (max-width: 768px) {
  .page-template-blackbooker #shiftnav-toggle-main-button {
    display: none !important;
  }
}
