.overlay {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(black, 0.1);
  z-index: 99;
}
.pegahealth--offers {
  .row-pos {
    position: relative;
  }

  &--heading {
    &--emoji {
      --minFontSize: 30px;
      --maxFontSize: 60px;
      --scaler: 7vw;
      font-size: clamp(var(--minFontSize), var(--scaler), var(--maxFontSize));
    }

    &--title {
      color: $c-main;
      --minFontSize: 20px;
      --maxFontSize: 32px;
      --scaler: 7vw;
      font-size: clamp(var(--minFontSize), var(--scaler), var(--maxFontSize));
      font-weight: 700;

      @media (max-width: 1366px){
        --minFontSize: 20px;
        --maxFontSize: 28px;
        --scaler: 5vw;
        font-size: clamp(var(--minFontSize), var(--scaler), var(--maxFontSize));
      }
    }

    &--subtitle {
      color: $c-gray;
      --minFontSize: 16px;
      --maxFontSize: 20px;
      --scaler: 7vw;
      font-size: clamp(var(--minFontSize), var(--scaler), var(--maxFontSize));
      font-weight: 600;

      @media (max-width: 1366px){
        --minFontSize: 16px;
        --maxFontSize: 18px;
        --scaler: 5vw;
        font-size: clamp(var(--minFontSize), var(--scaler), var(--maxFontSize));
      }
    }
  }

  &--item {
    box-shadow: 0px 0px 6px #acabab29;
    border-radius: 12px;
    height: 220px;
    cursor: pointer;
    margin-bottom: 10px;

    @media (max-width: 991px) {
      height: auto;
    }



    &--front {
      &--head {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 16px 24px;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        height: 80px;
        img {
          width: 40px;
          height: 40px;
          margin-right: 24px;
        }

        &--title {
          --minFontSize: 16px;
          --maxFontSize: 24px;
          --scaler: 5vw;
          font-size: clamp(
            var(--minFontSize),
            var(--scaler),
            var(--maxFontSize)
          );
          margin-bottom: 0;
          font-weight: 800;
          @media (max-width: 1366px){
            --minFontSize: 16px;
            --maxFontSize: 22px;
            --scaler: 5vw;
            font-size: clamp(var(--minFontSize), var(--scaler), var(--maxFontSize));

          }
        }
      }

      &--content {
        padding: 16px 24px;
        @media (max-width: 800px) {
          padding: 10px 16px;
        }
        p {
          color: $c-gray;
          --minFontSize: 12px;
          --maxFontSize: 16px;
          --scaler: 7vw;
          font-size: clamp(
            var(--minFontSize),
            var(--scaler),
            var(--maxFontSize)
          );
          line-height: 26px;
          @media (max-width: 800px) {
            margin-bottom: 0;
          }
        }
      }
    }

    &--back {
      background-color: $c-white;
      color: white;
      position: absolute;
      width: 100%;
      height: 220px;
      border-radius: 12px;
      // padding: 24px 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: row;
      flex-wrap: wrap;
      z-index: 999;
      top: 0;
      left: 0;
      visibility: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: row;
      flex-wrap: wrap;
    
      z-index: 999;
      top: 0;
      left: 0;
      visibility: hidden;
      @media (max-width: 991px) {
        // height: 180px;
        flex-wrap: wrap;

        }

      

      &--left {
        background-color: #ebeff5;
        text-align: center;
        display: flex;
        align-content: center;
        justify-content: center;
        flex-direction: column;
        height: 100%;
        padding: 16px;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
        width: 25%;
        @media (max-width: 991px) {
          border-bottom-left-radius: 0;
          border-top-left-radius: 12px;
          border-top-right-radius: 12px;
          height: auto;
          width: 100%;
      }
        img {
          width: 60px;
          height: 60px;
        }

        &--title {
          color: $c-main;
          --minFontSize: 14px;
          --maxFontSize: 18px;
          --scaler: 7vw;
          font-size: clamp(
            var(--minFontSize),
            var(--scaler),
            var(--maxFontSize)
          );
          margin-bottom: 0;
          font-weight: 800;
          padding-top: 16px;
          padding-bottom: 8px;
        }
        &--subTitle {
          color: $c-gray;
          --minFontSize: 12px;
          --maxFontSize: 14px;
          --scaler: 7vw;
          font-size: clamp(
            var(--minFontSize),
            var(--scaler),
            var(--maxFontSize)
          );
          margin-bottom: 0 !important;
          font-weight: 500;
        }
      }

      &--right {
        height: 100%;
        background-color: white;
        color: $c-gray;
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
        padding: 16px;
        width: 75%;
        @media (max-width: 991px) {
          border-top-right-radius: 0;
          border-bottom-left-radius: 12px;
          border-bottom-right-radius: 12px;
          height: auto;
          width: 100%;
          text-align: center;
      }
        &--title {
          color: $c-main;
          --minFontSize: 14px;
          --maxFontSize: 18px;
          --scaler: 7vw;
          font-size: clamp(
            var(--minFontSize),
            var(--scaler),
            var(--maxFontSize)
          );
          margin-bottom: 0;
          font-weight: 600;
          padding-bottom: 8px;
        }

        &--form {
          display: flex;
          align-content: center;
          justify-content: flex-start;
          padding-top: 16px;
          @media (max-width: 991px) {
            justify-content: center;
          }
          label {
            padding: 0;
            padding-top: 4px;
            padding-right: 12px;
          }

          select {
            border: none;
            border-bottom: 1px solid #ebeff5;
            background-color: #f8f8fc;
            box-shadow: none;
            color: $c-third;
            font-weight: 600;
            outline: none;

            &:focus {
              box-shadow: none;
              border-color: transparent;
            }
          }
          input {
            border: none;
            border-bottom: 1px solid #ebeff5;
            background-color: #f8f8fc;
            box-shadow: none;
            color: $c-third;
            font-weight: 600;
            outline: none;

            &:focus {
              box-shadow: none;
              border-color: transparent;
            }
          }
        }

        &--actions {
          padding-top: 16px;

          @media (max-width: 991px) {
            text-align: center;
          }
        }
      }
    }

    .close {
      position: absolute;
      right: 1%;
      top: 3%;

      i {
        color: $c-main;
        font-size: 24px;
      }
    }

    .o--1 {
      background-color: rgba($c-main, 0.09);
      color: $c-main;
    }
    .o--2 {
      background-color: rgba($c-second, 0.09);
      color: $c-second;
    }
    .o--3 {
      background-color: rgba($c-third, 0.09);
      color: $c-third;
    }
  }

  &--details {
    text-align: center;
    &--emoji {
      width: 60px;
      height: 60px;
    }
    &--title {
      color: $c-second;
      --minFontSize: 16px;
      --maxFontSize: 20px;
      --scaler: 7vw;
      font-size: clamp(var(--minFontSize), var(--scaler), var(--maxFontSize));
      font-weight: 700;
      padding: 16px 0 8px;
    }
    &--desc {
      color: $c-gray;
      --minFontSize: 13px;
      --maxFontSize: 16px;
      --scaler: 7vw;
      font-size: clamp(var(--minFontSize), var(--scaler), var(--maxFontSize));
      font-weight: 600;
      padding: 0 24px;
    }
  }
}

.section--packs {
  background-color: #fff;
  // background-image: linear-gradient(to left,rgba(248, 248, 252, 1), rgba(255, 255, 255, 1));



    &--emoji {
      width: 60px;
      height: 60px;
    }
    &--subtitle {
      color: $c-second;
      --minFontSize: 16px;
      --maxFontSize: 20px;
      --scaler: 7vw;
      font-size: clamp(var(--minFontSize), var(--scaler), var(--maxFontSize));
      font-weight: 500;
      padding: 8px 0 8px;
    }
    &--desc {
      color: $c-gray;
      --minFontSize: 13px;
      --maxFontSize: 16px;
      --scaler: 7vw;
      font-size: clamp(var(--minFontSize), var(--scaler), var(--maxFontSize));
      font-weight: 500;
      padding: 0 24px;
    }

  &--item {
    padding: 24px;
    border: 1px solid rgb(255, 255, 255);
    &--head {
      display: flex;
      align-items: center;

      @media (max-width: 800px) {
        justify-content: center;
      }
      &--emoji {
        padding-right: 20px;
      }
      &--title {
        --minFontSize: 16px;
        --maxFontSize: 28px;
        --scaler: 7vw;
        font-size: clamp(var(--minFontSize), var(--scaler), var(--maxFontSize));
        font-weight: 700;
        color: $c-black;
        margin-bottom: 0;
        .essential {
          color: $c-third;
        }
        .optimal {
          color: $c-second;
        }
      }

    }

    &--content {
      padding-top: 24px;
      @media (max-width: 800px) {
        text-align: center;
      }
      p {
        font-size: 16px;
        color: $c-gray;
        line-height: 28px;
        margin-bottom: 0;
      }
    }

    &:hover {
      background-color: rgb(248, 248, 252);
      border: 1px solid rgb(216, 216, 244);
    }
  }
}

.section--who--works {
  background-image: linear-gradient(to left,rgba(248, 248, 252, 1), rgba(255, 255, 255, 1));

  &--wrapper {
    &--item {
      padding-inline-start: 0.35em;
      padding: 12px 0;
      border-bottom: 2px solid #eff2f7;
      h5 {
        color: $c-second;
      }
      p {
        color: $c-gray;
        margin-bottom: 0;
        line-height: 28px;
      }

      &::marker {
        content: "👉";
      }
    }
  }
}

.section--plafonds {
  // clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
  // background-color: #FBFBFF;
  background-image: url('/assets/images/banner-clippath.svg');
  background-size: cover;
  background-repeat: no-repeat;
  &--table {
    white-space:  inherit;

    @media (max-width: 800px) {
      overflow-x: scroll;
      // white-space: pre;
    }

    &--wrapper {
      width: 100%;
      text-align: left;
      border-spacing: 0;
      border-collapse: collapse;
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
      overflow: scroll;
  
  
      .double--infos {
        padding: 0;
  
        &--item {
          padding: 8px 12px;
          border-bottom: 1px solid #ECEFF4;
  
          p {
            font-size: 14px;
            margin-bottom: 0;
            @media (max-width: 800px) {
            font-size: 12px;
              
            }
          }
          
          &:last-child {
            border-bottom: 0;
            
          }
        }
      }
  
      .multi--line {
        p {
          margin-bottom: 0;
          font-weight: 300;
          font-size: 13px;
        }
      }
  
      th,
      td {
        font-family: inherit;
        font-size: 0.875em;
        line-height: 1.45;
        color: $c-gray;
        vertical-align: middle;
        padding: .6em 1em;
        @media (max-width: 800px) {
          padding: .3em .5em;
        }
      }
      th {
        font-weight: 600;
      }
  
      colgroup:nth-child(1) {
        width: 30%;
        border: 0 none;
      }
      colgroup:nth-child(2) {
        width: 10%;
        border: none;
      }
     
      colgroup:nth-child(3) {
        width: 30%;
        border: 1px solid #ECEFF4;
      }
      colgroup:nth-child(4) {
          width: 30%;
          border: 1px solid #ECEFF4;
        }
  
      /* Tablehead */
  
      thead th {
        text-align: center;
        position: relative;
        border-bottom: 1px solid #ECEFF4;
      }
      thead th:nth-child(1) {
        background: transparent;
      }
      thead th:nth-child(2) {
          background: transparent;
        }
      thead th:nth-child(3) {
        padding: 16px 24px;
        @media (max-width: 800px) {
          padding: 6px 8px;
        }
      }
      thead th h2 {
        font-weight: 700;
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 0;
        @media (max-width: 800px) {
          font-size: 16px;
        }
      }
      .primary {
          color: $c-second;
          background-color: #FFFAFB;
      }
      .second {
          color: $c-third;
          background-color: $c-white;
          
      }

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

        img {
          margin-right: 12px;
          @media (max-width: 800px) {
            margin-right: 8px;
            width: 24px;
          }
        }
      }
   
  
    
      /* Tablebody */
  
      tbody th {
        background: #fff;
        border-left: 1px solid #ECEFF4;
        color: $c-main;
        font-size: 18px;
        @media (max-width: 800px) {
          font-size: 14px;

        }
      }
  
      
      tbody th span {
        font-weight: normal;
        font-size: 87.5%;
        color: #999;
        display: block;
      }
  
      tbody td {
        background: #fff;
        text-align: center;
        font-size: 18px;
        font-weight: 500;
        color: $c-gray;
        @media (max-width: 800px) {
          font-size: 12px;

        }
  
      }
  
      tbody td:nth-child(3) {
          color: $c-gray;
          background-color: #FFFAFB;
          font-size: 16px;
          font-weight: 500;
          @media (max-width: 800px) {
            font-size: 12px;
  
          }
      }
  
      tbody th:nth-child(2) {
          color: $c-gray;
          background-color: #F8F8FC;
          font-size: 16px;
          font-weight: 500;
          text-align: center;
          @media (max-width: 800px) {
            font-size: 12px;
  
          }
      }
  
      // tbody tr:nth-child(even) th,
      // tbody tr:nth-child(even) td {
      //   background: #f5f5f5;
      //   border: 1px solid #ECEFF4;
      //   border-width: 1px 0 1px 1px;
      // }
  
      tbody tr {
        border-bottom: 1px solid #ECEFF4;
      }
      tbody tr:last-child td {
        border-bottom: 1px solid #ECEFF4;
      }
  
      /* Tablefooter */
  
      .no--border {
        border: none;
        font-size: 20px;
        font-weight: 700;
        color: $c-main;
        background-color: white;
        @media (max-width: 800px) {
          font-size: 14px;
        }
      } 
    
      tfoot th {
        padding: 2em 1em;
        // border-top: 1px solid #ECEFF4;
        @media (max-width: 800px) {
          padding: 1em .5em;
        }
      }
      tfoot td {
        text-align: center;
        padding: 12px;
        border-top: 1px solid #ECEFF4;
        font-size: 24px;
        font-weight: 900;
        @media (max-width: 800px) {
          padding: 8px;
          font-size: 16px;
        }
      }
  
      tfoot tr:nth-child(1) > * {
      border-bottom: none;
      }
  
     
    }
  }
}
