.cx-sticky-score-ribbon {
  display: none;
}

@media (max-width: 768px) {
  .cx-sticky-score-ribbon.is-visible {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10020;
    display: block;
    background: #17364f;
    border-bottom: 2px solid #ffd24d;
    box-shadow: 0 8px 22px rgba(19, 45, 66, 0.2);
  }

  body.admin-bar .cx-sticky-score-ribbon.is-visible {
    top: 46px;
  }

  .cx-sticky-score-ribbon-main {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 30px;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-align: left;
  }

  .cx-sticky-score-team {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .cx-sticky-score-team-away {
    text-align: right;
  }

  .cx-sticky-score-team strong,
  .cx-sticky-score-team span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cx-sticky-score-team strong {
    font-size: 12px;
    line-height: 1.2;
  }

  .cx-sticky-score-team span {
    color: #ffd24d;
    font-size: 11px;
    font-weight: 800;
  }

  .cx-sticky-score-vs {
    color: rgba(255, 255, 255, 0.64);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .cx-sticky-score-return-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 17px;
  }
}

.cx-floating-score {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9990;
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid #315b7d;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(19, 45, 66, 0.24);
}

.cx-floating-score.is-ready {
  display: block;
}

.cx-floating-score-header {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  background: #17364f;
  color: #fff;
}

.cx-floating-score-header strong {
  color: #ffd24d;
  font-size: 12px;
}

.cx-floating-score-header > span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cx-floating-score-actions {
  display: flex;
  gap: 4px;
}

.cx-floating-score-actions button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.cx-floating-score-actions button:hover,
.cx-floating-score-actions button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: 2px solid #ffd24d;
  outline-offset: 1px;
}

.cx-floating-score-body {
  height: 330px;
  transition: height 0.18s ease;
}

.cx-floating-score-body iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #f6f9fb;
}

.cx-floating-score.is-minimized .cx-floating-score-body {
  height: 0;
}

@media (max-width: 600px) {
  .cx-floating-score {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .cx-floating-score-body {
    height: min(360px, 58vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cx-floating-score-body {
    transition: none;
  }
}
