:root {
  --gwo-blue: #d71920;
  --gwo-green: #d71920;
  --gwo-orange: #ffcb05;
  --gwo-row: #fff;
  --gwo-border: #e4e7ee;
  --gwo-muted: #5f6673;
  --gwo-lock: #f1d8db;
  --gwo-text: #070707;
  --gwo-radius: 8px;
  --gwo-font: Arial, Helvetica, sans-serif;
}

.gwo-widget,
.gwo-widget * {
  box-sizing: border-box;
}

.gwo-widget {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 8px;
  color: var(--gwo-text);
  font-family: var(--gwo-font);
}

.gwo-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.gwo-ball {
  font-size: 20px;
  line-height: 1;
}

.gwo-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.gwo-tab,
.gwo-filter {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--gwo-font);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.gwo-tab {
  min-width: 42px;
  height: 28px;
  padding: 0 12px;
  border-radius: 7px;
  background: #fff;
  color: #d71920;
  font-size: 12px;
  box-shadow: inset 0 0 0 1px var(--gwo-border);
}

.gwo-tab.gwo-is-active {
  background: var(--gwo-green);
  color: #fff;
}

.gwo-panel {
  overflow: hidden;
  border-radius: var(--gwo-radius);
  background: #f1f2f5;
  box-shadow: inset 0 0 0 1px #eef0f5;
}

.gwo-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 14px 16px;
  border-bottom: 1px solid var(--gwo-border);
  background: #f7f8fa;
}

.gwo-filter-label {
  margin-right: 2px;
  color: #222;
  font-size: 12px;
}

.gwo-filter {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d6dbe5;
  border-radius: 7px;
  background: #fff;
  color: #d71920;
  font-size: 12px;
}

.gwo-filter.gwo-is-active {
  border-color: var(--gwo-green);
  background: var(--gwo-green);
  color: #fff;
}

.gwo-events {
  padding: 0;
  background: #f1f2f5;
}

.gwo-event {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 74px minmax(300px, 1.25fr) 58px;
  align-items: center;
  column-gap: 8px;
  min-height: 64px;
  margin-bottom: 0;
  padding: 11px 12px 11px 18px;
  border-bottom: 1px solid #eef0f4;
  border-radius: 0;
  background: #fff;
}

.gwo-event:nth-child(even) {
  background: var(--gwo-row);
}

.gwo-js-ready .gwo-event.gwo-is-past,
.gwo-js-ready .gwo-event.gwo-is-filtered {
  display: none;
}

.gwo-match {
  min-width: 0;
}

.gwo-teams {
  overflow: hidden;
  color: #070707;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gwo-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: #070707;
  font-size: 12px;
  line-height: 1.1;
}

.gwo-live {
  display: inline-flex;
  align-items: center;
  height: 12px;
  padding: 0 4px;
  border-radius: 2px;
  background: #d71920;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 12px;
  letter-spacing: .2px;
}

.gwo-time {
  color: #d71920;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
}

.gwo-clock {
  display: block;
  font-size: 14px;
}

.gwo-date {
  display: block;
  margin-top: 2px;
}

.gwo-odds {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 4px;
  align-items: center;
  min-width: 0;
}

.gwo-odds.gwo-has-two {
  grid-template-columns: repeat(2, minmax(86px, 1fr));
}

.gwo-odd {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(48px, 1fr);
  min-height: 34px;
  overflow: visible;
  border: 1px solid var(--gwo-border);
  border-radius: 4px 4px 0 0;
  background: #fff;
  color: #070707;
  cursor: pointer;
  font-family: var(--gwo-font);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.gwo-odd:hover,
.gwo-more:hover {
  text-decoration: none;
}

.gwo-odd::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 2px;
  background: #dfe3eb;
}

.gwo-odd.gwo-is-fav::after,
.gwo-odd.gwo-is-selected::after {
  background: var(--gwo-green);
}

.gwo-odd.gwo-is-soft::after {
  background: var(--gwo-orange);
}

.gwo-odd-label,
.gwo-odd-price {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 6px;
}

.gwo-odd-label {
  justify-content: flex-start;
  background: #fff;
  color: #070707;
}

.gwo-odd-price {
  justify-content: center;
  background: #fff4f4;
  color: #070707;
  text-align: center;
}

.gwo-odd.gwo-is-locked {
  cursor: not-allowed;
  pointer-events: none;
}

.gwo-odd.gwo-is-locked .gwo-odd-price {
  background: var(--gwo-lock);
  color: #d71920;
  font-size: 14px;
}

.gwo-odd.gwo-is-hidden {
  display: none;
}

.gwo-more {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: 100%;
  color: #d71920;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.gwo-arrow {
  width: 10px;
  height: 10px;
  border-top: 3px solid #d71920;
  border-right: 3px solid #d71920;
  transform: rotate(45deg);
}

.gwo-empty {
  display: none;
  padding: 24px 14px;
  color: var(--gwo-muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.gwo-empty.gwo-is-visible {
  display: block;
}

.gwo-match-odds {
  width: min(100%, 920px);
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid var(--gwo-border);
  border-radius: var(--gwo-radius);
  background: #f2f3f6;
  color: #070707;
  font-family: var(--gwo-font);
}

.gwo-match-odds-header {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-bottom: 3px solid var(--gwo-blue);
  background: #fff;
  color: #070707;
  font-size: 18px;
  font-weight: 800;
}

.gwo-match-odds-header small {
  color: var(--gwo-muted);
  font-size: 12px;
  font-weight: 700;
}

.gwo-market {
  border-top: 1px solid #ddd;
  background: #fff;
}

.gwo-market-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #f7f8fa;
  color: #070707;
  font-size: 14px;
  font-weight: 800;
}

.gwo-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid var(--gwo-green);
  border-radius: 50%;
  color: #d71920;
  font-size: 12px;
  line-height: 1;
}

.gwo-market-options {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.gwo-market-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gwo-market-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gwo-market-btn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid var(--gwo-border);
  border-radius: 3px;
  background: #fff;
  color: #070707;
  cursor: pointer;
  font-family: var(--gwo-font);
  font-weight: 800;
  padding: 0;
  text-align: left;
}

.gwo-market-label,
.gwo-market-price {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 9px;
  font-size: 13px;
}

.gwo-market-price {
  justify-content: center;
  background: #fff4f4;
  color: #070707;
}

.gwo-market-btn:hover,
.gwo-market-btn:focus {
  box-shadow: inset 0 -3px 0 var(--gwo-green);
}

.gwo-market-extra {
  display: none;
}

.gwo-match-odds.gwo-expanded .gwo-market-extra {
  display: block;
}

.gwo-show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: var(--gwo-blue);
  color: #fff;
  cursor: pointer;
  font-family: var(--gwo-font);
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 720px) {
  .gwo-widget {
    padding: 8px;
  }

  .gwo-title {
    font-size: 15px;
  }

  .gwo-filters {
    flex-wrap: wrap;
    padding: 14px 10px;
  }

  .gwo-filter-label {
    width: 100%;
  }

  .gwo-event {
    grid-template-columns: minmax(0, 1fr) 68px;
    row-gap: 8px;
    padding: 10px;
  }

  .gwo-match {
    grid-column: 1 / 2;
  }

  .gwo-time {
    grid-column: 2 / 3;
  }

  .gwo-odds {
    grid-column: 1 / 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gwo-more {
    grid-column: 1 / 3;
    justify-content: flex-end;
  }

  .gwo-teams {
    font-size: 15px;
  }

  .gwo-meta {
    flex-wrap: wrap;
  }

  .gwo-odd {
    grid-template-columns: 30px minmax(42px, 1fr);
  }

  .gwo-market-columns-2,
  .gwo-market-columns-3 {
    grid-template-columns: 1fr;
  }

  .gwo-market-btn {
    grid-template-columns: minmax(0, 1fr) 68px;
  }
}

@media (max-width: 520px) {
  .gwo-widget {
    padding-right: 0;
    padding-left: 0;
  }

  .gwo-panel {
    border-radius: 0;
  }

  .gwo-events {
    padding-right: 0;
    padding-left: 0;
  }

  .gwo-event {
    margin-bottom: 4px;
    border-radius: 6px;
  }

  .gwo-title,
  .gwo-tabs {
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (max-width: 420px) {
  .gwo-tabs {
    gap: 6px;
  }

  .gwo-tab {
    min-width: 38px;
    padding: 0 9px;
  }

  .gwo-odds {
    gap: 3px;
  }

  .gwo-odd {
    min-height: 32px;
    font-size: 12px;
  }
}
