body.cms-ui,
body.public-ui {
  .block.count_down .public-ui {
    a:not(.btn) {
      color: $white; //to force color in cms-ui
    }
  }
}

.block.count_down .public-ui {
  color: $white;

  h2,
  h3,
  h4,
  h5,
  h6,
  a:not(.btn) {
    color: $white;
  }

  .block-content {
    height: auto;
    padding: 2.5rem 0;

    @media (max-width: #{map-get($grid-breakpoints, lg) - 1px}) {
      padding: 2rem 1rem;
    }

    &:not(.full-width) {
      .col-lg-12 {
        padding: 0 2.5rem;
      }
    }

    .col-lg-12 {
      .text-center {
        margin-bottom: 0.5rem;
      }
    }
  }

  .background-image {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;

    &:after {
      position: absolute;
      width: 100%;
      height: 100%;
      background-color: rgba(#000, 0.65);
      content: '';
    }
  }

  .countdown_text {
    margin-top: 1.5rem;
  }

  .countdown_text,
  .text {
    p:last-of-type {
      margin-bottom: 0;
    }
  }

  @media (max-width: #{map-get($grid-breakpoints, lg) - 1px}) {
    .order-last {
      margin-top: 2rem;
    }
  }

  @media (min-width: #{map-get($grid-breakpoints, lg)}) {
    .block-content.full-width {
      .order-last {
        &.text {
          padding-left: 2rem;
        }
      }
    }
  }
}

.count-down-timer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  .interval {
    margin: 0.5rem 0.5rem 0;
    text-align: center;

    .number {
      padding: 1.3rem;
      border: 1px solid $white;
      border-radius: 0.5rem;
      background-color: rgba(255, 255, 255, 0.06);
      font-family: $font-family-monospace !important;
      font-size: 3.8rem;
      font-weight: bold;
      line-height: 1em;
    }

    .label {
      font-size: 1.2rem;
      line-height: 2;
      text-transform: uppercase;
    }
  }

  .expired {
    padding: 1.5rem;
    border: 1px solid $white;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.06);
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
  }
}
