.innerContainer {
  background: var(--horse-calc-background-color, #fff);
  border-radius: var(--horse-calc-border-radius, 1.6rem);
  border: 1px solid var(--horse-calc-border-color, transparent);
  padding: 3.7rem 1rem;
  color: var(--horse-calc-label-color, #150e06);
  margin-top: 2rem;

  @include min(tablet) {
    padding: 3.7rem 2.4rem;
  }

  h2 {
    margin-top: 0;
    margin-bottom: 3.6rem;
  }

  > div {
    @include flex-direction(column);
    gap: 2rem;

    table {
      width: 100% !important;
      background-color: var(--horse-calc-totals-table-background, #fff);

      th,
      tr {
        border: var(--horse-calc-outcome-table-header-border-width, 1.5px) solid
          var(--horse-calc-outcome-table-header-border-color, #dcd9d3);

        &.deadHeatEnabled,
        &.selectionNotesRow {
          border-bottom: none;
        }

        &.deadHeatRow,
        &.selectionNotesEnabled {
          border-top: none;
        }
      }
      th {
        border-color: var(--table-head-background);
      }
    }
  }
}
.cells{
  @include flex-direction(row);
  @include flex-align(center, space-between);
  @include min(tablet){
    @include flex-direction(column);
    @include flex-align(start, start);
    width: 100%;
    >div{
      width: 100%;
    }
  }
  &:before{
    color: #39394f;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    @include min(tablet){
      font-size: 1.4rem;
    }
  }
  select, label{
    max-width: 13.2rem;
    @include min(tablet){
      max-width: 100%;
      width: 100%;
    }
  }
}

.outComing{
  &:before{
    content: 'Outcome:';
  }
}

.odds{
  &:before{
    content: 'Odds:';
  }
}
.placeOdds{
  &:before{
    content: 'Place Odds:';
  }
}
.ruleFour{
  select{
    min-width: 13.2rem;
  }
  &:before{
    content: 'Rule Four:';
  }
}

.placeOdds {
  width: 100%;
  @include flex-direction(row);
  @include flex-align(center, space-between);
  @include min(tablet) {
    @include flex-direction(column);
    @include flex-align(start, center);
    > div {
      width: 100%;
      select {
        width: 100% !important;
        max-width: 100%;
      }
    }
  }
  label {
    color: #39394f;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    @include min(tablet){
      font-size: 1.4rem;
      font-style: normal;
      font-weight: 600;
      line-height: 22px;
    }
  }
  select {
    min-width: 13.2rem;
  }
}
.selectes {
  gap: 1.6rem;
  @include flex-direction(column);
  > label {
  }
  select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #b0d0d0;
    background: #fff;
    color: #262629;
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2.4rem;
    padding: 1.1rem 3rem 1.1rem 1.5rem;
  }
  @include min(tablet) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  @include min(laptop) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

.selectesSelect {
  @include flex-direction(column);
  flex-basis: 50%;
  gap: 1rem;
  font-weight: 700;
  font-size: 16px;
  line-height: 23px;

  > div {
    color: #1b1b1c;
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 600;
    line-height: 2.4rem;
    text-transform: capitalize;
    @include flex-direction(row);
    @include flex-align(center, start);
    gap: 0.8rem;

    > div {
      width: 2rem;
      height: 2rem;
      svg {
        width: 2rem;
        height: 2rem;
        fill: #50657a;
      }
    }

    &::after {
      right: 1.6rem;
      left: auto;
      pointer-events: none;
    }
  }
}

.stakeType {
  border-radius: 8px;
  background: #fbfaf9;
  @include flex-direction(column);
  margin-top: 1.6rem;
  padding: 1.6rem;
  gap: 1.6rem;
  @include min(tablet) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .stakeTypeSelect,
  label {
    color: #1b1b1c;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    text-transform: capitalize;
    @include flex-direction(column);
    gap: 0.8rem;

    > div {
      select,
      input {
        border-radius: 8px;
        border: 1px solid #b0d0d0;
        background: #fff;
        height: 4.8rem;
        width: 100%;
        padding: 1.2rem 1.5rem;
      }
    }
  }
}

.fullWidth {
  display: flex !important;
  >label>div{
    @include flex-align(center, start);
    padding-bottom: .8rem;
    &::after{
      right: 1.6rem;
      left: auto;
    }
    >div{
      display: flex;
      svg {
        width: 2rem;
        height: 2rem;
        fill: #50657a;
      }
    }
  }

  select{
    width: 100%;
    min-width: 13.2rem;
  }
  label {
    flex-basis: 100% !important;
    color: #39394f;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: .8rem;
    >div{
      gap: .8rem;
    }

    @include min(tablet){
      font-size: 1.4rem;
      font-style: normal;
      font-weight: 600;
      line-height: 22px;
    }
  }
}
.deadHeatRow {
  margin-top: -5px !important;
  padding-top: 1.6rem;
  border-radius: 0 0 8px 8px !important;
  @include min(tablet) {
    padding-left: 0 !important;
  }
  td {
    padding: 0 !important;
  }
  > td:first-child {
    display: none !important;
  }
}
.deadHeat {
  @include flex-align(center, space-between);
  padding-top: 2rem;
  margin-top: -3rem;
  @include flex-direction(column);
  width: 100%;
  @include min(tablet) {
    @include flex-direction(row);
    margin-top: -3.6rem;
  }
  > label {
    width: 100%;
    padding: 1rem;
    @include flex-direction(row);
    @include flex-align(center, space-between);
    border-top: 1px solid #eae5e0;
    @include min(tablet) {
      @include flex-direction(column);
    }
    > div {
      white-space: wrap;
      @include min(tablet) {
        width: 100%;
        font-size: 12px !important;
      }
    }
    select {
      min-width: 13.2rem;
    }
  }

  label:nth-child(2) {
    flex-grow: 1;
  }
}

.foldTable {
  width: 100%;
  border-collapse: collapse;
  border-radius: .8rem;
  overflow: hidden;
  th,td{
    width: 150px !important;
    white-space: nowrap; 
    overflow: hidden;
  }
  thead {
    tr {
      th {
        background-color: #eae5e0;
        border-color: #c5c5c5;
        color: #39394f;
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 24px;
        margin-bottom: .8rem;
        padding: 1rem;
        &:first-child {
          width: 100px !important;
        }
        &:nth-child(2){
          width: 100px !important;
        }
      }
    }
  }
  tbody{
    tr{
      td{
        color: #39394f;
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 24px;
        margin-bottom: .8rem;
        padding: 1rem;
        >input{
          background-color: var(--horse-calc-input-background, #fff);
          padding: 1.1rem 3rem 1.1rem 1.6rem;
          border: 1px solid var(--horse-calc-input-border, #b0d0d0);
          border-radius: var(--horse-calc-input-border-radius, 0.4rem);
          color: var(--horse-calc-label-color, #1a1c1f);   
          width: 100%;
          box-sizing: border-box;
          @include min(tablet){
            padding: 1.6rem;
          }
        }
      }
    }
  }
}
.scrollTable{
  width: 100%;
  overflow-x: auto;
}

.ctaContainer {
  margin-top: 2rem;
  @include flex-align(center, center);
  @include min(tablet){
    @include flex-align(flex-start, start);
  }
    a {
    padding: 1.1rem 4rem !important;
    width: 100%;
    border-radius: 8px;
    background: #cbdfe0;
    color: #1b1b1c;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 600;
    line-height: 2.2rem;
    letter-spacing: 0.09px;
    text-transform: capitalize;
    border-color: transparent;
    @include min(tablet){
      max-width: 34.5rem;
    }
  }
}

.currencyInput {
  position: relative;

  input {
    padding-left: 4rem;
  }

  &:before {
    content: attr(data-curr-symbol);
    position: absolute;
    left: 2rem;
    top: 1.4rem;
    font-weight: 500;
  }
}

.displayNone {
  display: none !important;
}

.overflowTable {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  @include min(tablet) {
    display: table;
  }
  tbody {
    display: block;
    > tr {
      display: flex;
      flex-direction: column;
      width: 100%;
      margin-top: 4.6rem;
      position: relative;
      border-radius: 0px 8px 8px 8px;
      border: 1px solid var(--td-border-horse-calculator, #eae5e0);
      background: var(--td-backgorund-horse-calculator, #fff);
      @include min(tablet) {
        @include flex-direction(row);
        padding-left: 4.6rem;
        overflow: hidden;
        border-radius: 0.8rem;
        margin-top: 1.6rem;
      }

      td {
        text-align: start;
        padding: 1rem;
        @include min(tablet) {
          flex: 1;
        }
        > label {
          @include flex-direction(row);
          @include flex-align(center, space-between);
          @include min(tablet) {
            flex-direction: column;
            > div {
              width: 100%;
            }
          }

          select,
          input {
            min-width: 13.2rem;
            max-width: 13.2rem;
            @include min(tablet) {
              min-width: 100%;
              max-width: 100%;
              width: 100%;
            }
          }
        }
      }
      td:first-child {
        position: absolute;
        top: -3.3rem;
        background: black;
        color: white;
        padding: 0;
        height: 3.2rem;
        min-width: 9.6rem;
        border-top-right-radius: 0.8rem;
        border-top-left-radius: 0.8rem;
        @include flex-direction(row);
        @include flex-align(center, start);

        &::before {
          content: '#';
          padding-left: 0.8rem;
        }
        @include min(tablet) {
          top: 0;
          height: 100%;
          bottom: 0;
          min-width: 3.5rem;
          left: 0;
          border-radius: 8px 0 0px 8px !important;
          font-size: 1.2rem;
        }
      }
    }
  }
  label {
    > div:first-child {
      color: #39394f;
      font-size: 16px;
      font-style: normal;
      font-weight: 600;
      line-height: 24px;
      @include min(tablet) {
        font-size: 1.4rem;
        font-style: normal;
        font-weight: 600;
        line-height: 22px;
      }
    }
    select {
      color: #1b1b1c;
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      line-height: 20px;
    }
  }
  select {
    padding: 1.1rem 3rem 1.1rem 1.6rem;
    border-radius: 4px;
    background: var(--select-background-horse-calculator, #eae5e0);
    max-height: 4rem;
  }

  input {
    background-color: var(--horse-calc-input-background, #fff);
    padding: 1.1rem 3rem 1.1rem 1.6rem;
    width: 100%;
    border: 1px solid var(--horse-calc-input-border, #b0d0d0);
    border-radius: var(--horse-calc-input-border-radius, 0.4rem);
    color: var(--horse-calc-label-color, #1a1c1f);
  }
}

.outcomeColumn {
  min-width: 20rem;
}

.oddsColumn {
  min-width: 9rem;
}
.hideRow {
  display: none;
  > tr {
    padding: 0 !important;
  }
}
.extraFields {
  @include flex-direction(column);
  gap: 0.8rem;
  label {
    border: 1px solid #eae5e0;
    border-radius: 0.8rem;
    padding: 1.2rem 1.6rem;
    @include flex-direction(row);
    @include flex-align(center, space-between);
    color: #39394f;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    input {
      padding: 1.1rem 3rem 1.1rem 1.6rem;
      border-radius: 4px;
      background: var(--select-background-horse-calculator, #eae5e0);
      max-height: 4rem;
      width: 13.2rem;
    }
  }
}

.outcomeTable {
  @include flex-direction(column);
  @include flex-align(center, center);
  gap: 1.6rem;
  @include min(tablet){
    @include flex-direction(row);
  }
  > div {
    width: 100%;
    @include flex-direction(column);
    @include flex-align(center, center);
    border-radius: 0.8rem;
    overflow: hidden;
    p {
      background: #d3db34;
      padding: 0.8rem;
      color: #1b1b1c;
      text-align: center;
      font-size: 1.6rem;
      font-style: normal;
      font-weight: 600;
      line-height: 2.4rem;
      width: 100%;
    }
    span {
      padding: 0.8rem;
      min-height: 4.8rem;
      border-right: 1px solid #eae5e0;
      border-bottom: 1px solid #eae5e0;
      border-left: 1px solid #eae5e0;
      width: 100%;
      text-align: center;
      border-bottom-left-radius: 8px;
      border-bottom-right-radius: 8px;
      font-size: 18px;
      font-style: normal;
      font-weight: 600;
      line-height: 26px;
      color: #3c3c40;
    }
  }
}

