@import "../../../assets/scss/variables";

:root {
  --info-box-text: var(--secondary-color);
  --backg:transparent;
  --border:#BCDDFB;
}


:root[data-theme="dark"] {

  --info-box-text: #ccc;
  --backg:#20262E;
  --border:#20262E;
}

.info-box {
  background: var(--backg) ;
  flex-wrap: wrap;
  width: 100%;
  min-height: 110px;
  border: 1px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 clamp(10px, 1vw, 20px);

  &.split{
    .info-box--left{
      flex:  1 0 0;
      &:after{
        content: '';
        position: absolute;
        right: 0;
        width: 1px;
        height: 44px;
        top: 50%;
        transform: translateY(-50%);
        border-right: 1px dashed #CCCCCC;
      }
    }
    .info-box--right{
      flex:  1 0 0;
      p {
        color: var(--info-box-text) !important;
      }

    }

  }


  &--left {

    flex: 0 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: flex-start;
    gap: clamp(10px, 1vw, 30px);
    position: relative;
    align-items: center;

    img {
      height: 40px;
      filter:$svg-default;
    }

    p {

      color: $title-color;
      font-weight: bold;
      font-size: 1.6rem;
      line-height: 20px;
      max-width: 114px;
    }


  }

  &--right {
    flex: 1 0 auto;
    text-align: center;

    p {
      color: var(--info-box-text) !important;
      font-weight: 300;
      font-size: 4.5rem;
    }

    .date-from-to{
      display: flex;
      justify-content: space-evenly;

      .label{
        text-align: left;
        font-size: 1.2rem;
        font-weight: bold;
        color: $title-color;
      }

      .text{
        font-weight: 200;
        font-size: 1.8rem;
        color: $text-color;
      }
    }
    a{

      font-size: 1.3rem;
      background-color: $main-color;
      color: $white;
      letter-spacing: 0;
      max-height: max-content;
      padding: 1.2rem 2.9rem;
      border-radius: 10px;
      transition: 0.5s;
      white-space: nowrap;
      text-decoration: none;
      cursor: pointer;

      &:hover {
        background-color: #1a73e8;
      }
    }
  }
}
