/**
 * Il CSS per lo shortcode del miglior pronostico che generalmente
 * si trova dentro il pronostico.
 *
 * @since       1.0.3 <17/07/2023>
 */

.odds .odds-label {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  width: 100%;
  background: var(--hsbg-neutral-color-1);
  border: 0;
  padding: 10px 40px 10px 10px;
  text-align: left;
  font-family: inherit;
  font-size: var(--hsbg-font-size-p);
  color: var(--hsbg-neutral-color-10);
  border-top-left-radius: var(--hsbg-border-radius);
  border-top-right-radius: var(--hsbg-border-radius);
  cursor: pointer;
}

.odds .odds-label:before {
  content: '';
  position: absolute;
  right: 14px;
  content: "";
  display: inline-block;
  -webkit-transform: rotate(-30deg);
  transform: rotate(-30deg);
  width: 9px;
  height: 2px;
  background-color: var(--hsbg-neutral-color-10);
  transition: 0.4s ease;
}

.odds .odds-label.show:before {
  transform: rotate(30deg);
}

.odds .odds-label:after {
  content: '';
  position: absolute;
  right: 20px;
  display: inline-block;
  -webkit-transform: rotate(45deg);
  transform: rotate(30deg);
  width: 9px;
  height: 2px;
  background-color: var(--hsbg-neutral-color-10);
  transition: 0.4s ease;
}

.odds .odds-label.show:after {
  transform: rotate(-30deg);
}

.odds .odds-container {
  max-height: 0;
  background: var(--hsbg-neutral-color-9);
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  overflow: hidden;
  transition: max-height 0.5s;
  margin: 0 0 20px;
}

.odds .odds-label.show~.odds-container {
  max-height: 1000px;
}

.odds table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-collapse: collapse;
  min-width: 100%;
  overflow-x: auto;
  width: 100%;
  padding: 10px;
  border-radius: var(--hsbg-border-radius);
}

.odds table thead,
.odds table tbody,
.odds table tr {
  display: contents;
}

.odds table thead th {
  display: flex;
  justify-content: center;
  align-items: center;
}

.odds table td {
  text-align: center;
}

.odds table td .odd-result {
  display: block;
  font-weight: 700;
}

.odds table td .name-bookmaker {
  font-size: var(--hsbg-font-size-label);
}

.odds table td a {
  display: block;
  background: var(--hsbg-primary-color-3);
  border-bottom: 2px solid var(--hsbg-primary-color-1);
  border-radius: var(--hsbg-border-radius);
  font-size: var(--hsbg-font-size-p);
  color: var(--hsbg-primary-color-10);
  text-decoration: none;
  font-weight: initial;
  padding: 10px;
}

.odds .odds-update {
  width: 100%;
  font-size: var(--hsbg-font-size-label);
}