$chip-color-main: #eb443f;
$chip-hover: #c93636;

body {
  width: 100%;
  overflow: hidden;
  padding: 0 10px;
  margin: 0;
}

html {
  &.myoffrz-brand {
    .logo-link {
      background: url("../images/brand/myoffrz/logo.svg") no-repeat right center;
      background-size: cover;
      pointer-events: none
    }

    .code-copy {
      color: #00AEF0;

      &:hover {
        color: #0078CA;
      }
    }

    .btn {
      background-color: #00AEF0;
      &:hover {
        background-color: #0078CA;
      }
    }
  }

  &.cliqz-brand {
    &.blue {
      background: #00AEF0;

      &:before {
        background: #fff;
      }
      .vertical-txt {
          color: rgba(255,255,255,.7)
      }
      .promo-container {
          .why-offer {
              span {
                  color: rgba(255,255,255,.7);
                  &:hover {
                      color: rgba(255,255,255,1)
                  }
              }
          }
      }
    }

    .logo-link {
      mask: url("../images/brand/cliqz/logo.svg");
      -webkit-mask: url("../images/brand/cliqz/logo.svg");
      background: rgba(0,0,0,0.4);
      pointer-events: none;
    }

    .code-copy {
      color: #00AEF0;

      &:hover {
        color: #0078CA;
      }
    }

    .btn {
      background-color: #00AEF0;
      &:hover {
        background-color: #0078CA;
      }
    }
  }

  &.chip-brand {
    background: #4D4D4D;

    .logo-link {
      background: url("../images/brand/chip/logo.svg") no-repeat right center;
      background-size: cover;
      pointer-events: none;
    }

    .code-copy {
      color: $chip-color-main;

      &:hover {
        color: $chip-hover;
      }
    }

    .btn {
      background-color: $chip-color-main;
      &:hover {
        background-color: $chip-hover;
      }
    }

    .vertical-txt {
      color: rgba(255,255,255,.7)
    }
    .promo-container {
      .why-offer {
        span {
          color: rgba(255,255,255,.7);
          &:hover label {
            color: $chip-color-main;
          }
        }
      }
    }
  }
}


#cqz-browser-panel-re {
  position: relative;
  margin-top: 6px;
  .logo-link {
    width: 20px;
    height: 20px;
    position: absolute;
    bottom: 10px;
    left: -30px;
  }

  .anzeige {
    position: absolute;
    bottom: 12px;
    right:-30px;
    transform: rotate(180deg);
    writing-mode: vertical-lr;
    font-size: 9px;
    text-transform: uppercase;
    color: rgba(0,0,0,.7);
    letter-spacing: 1px;
    font-weight: 100;
    font-family: "-mac-system", "-apple-system", "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif
  }

  .close {
    cursor: pointer;
      margin: 0 10px;
      flex-shrink: 0;
      width: 11px;
      transform: translateX(5px);
    img {
      opacity: 0.4;
      &:hover {
        opacity: 1;
      }
    }
  }

  .code-container {
    font-family: "-mac-system", "-apple-system", "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    display: flex;
    justify-content: center;
    visibility: hidden;

    .code-box {
      position: absolute;
      cursor: pointer;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 1px;
      top: -5px;
      .bevel {
        border-color: #fff;
        border-style: solid;
        border-width: 17px;
        position: relative;
        z-index: 10;
        &.tr, &.tl {
          border-top: 0px;
          height: 0px;
          width: 100%;
        }

        &.tl {
          border-left-color: transparent;
        }

        &.tr {
          border-right-color: transparent;
          border-top:0;
        }

        .content {
          padding: 0 5px;
        }
      }

      .hidden-input-wrapper {
        position: relative;
      }

      .hidden-input {
        border: none;
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0px;
        top: 2px;
      }

      .divider {
        padding: 0 4px 0 0;
        color: #ccc;
        position: relative;
        top: 2px;
      }

      .code {
        position: relative;
        top: 2px;
      }

      .code-copy {
        font-size: 11px;
        position: relative;
        top: 2px;
        display: inline-block;
        max-width: 50px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        position: relative;
        top: 5px;
        text-transform: uppercase;
      }

      .code-copied {
        display: none;
        position: relative;
        top: 2px;
        text-transform: uppercase;
      }

      &.copied {
        .code-copied {
          display: inline-block;
        }

        .code-copy {
          display: none;
        }
      }
    }

    &.show {
        visibility: visible;
    }
  }

  .promo-container {

    display: flex;
    box-shadow: inset 0px 0px 0px 0px #CCC, 0px 8px 31px 0px rgba(0, 0, 0, 0.2);
    height: 85px;
    align-items: stretch;
    font-family: "-mac-system", "-apple-system", "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    background: #fff;
    min-width: 275px;
    position: relative;
    margin-top: 10px;
    &:after {
        content: '';
        width: 100%;
        height: 1px;
        background: transparent;
        box-shadow: 0px -6px 9px 1px rgba(0,0,0,0.3);
        position: absolute;
        left: 0;
        bottom: -8px;
    }
    .why-offer {
        position: absolute;
        top: -16px;
        right: 0;
        width: 100%;
        min-width: 100%;
        max-width: 1400px;
        left: 0;
        margin: 0 auto;
        font-size: 11.2px;
        color: rgba(0,0,0,0.7);
        font-weight: 600;
        z-index: 1;
        > span {
            float: right;
            position: relative;
            cursor: pointer;
            transform: translateY(-3px);
            padding-bottom: 7px;
            &:hover {
                color: rgba(0,0,0,1);
                .tooltip-text {
                    opacity: 1;
                    visibility: visible;
                    cursor: default
                }
            }
            label {
                font-weight: 300;
            }
            .tooltip-text {
                background: rgba(0,0,0,0.85);
                color: #fff;
                padding: 10px;
                width: 355px;
                position: absolute;
                right: 0;
                top: 23px;
                font-weight: 400;
                line-height: 17px;
                opacity: 0;
                visibility: hidden;
                transition: all linear 0.3s;
                span {
                    color: #fff;
                }
                a {
                    color: #fff;
                    font-weight: 600;
                    text-transform: uppercase;
                    text-decoration: none;
                    display: inline-block;
                    position: relative;
                    &:after {
                        position: absolute;
                        content: "›";
                        right: -10px;
                        top: -1px;
                    }
                }
                &:after {
                    content:"";
                    position: absolute;
                    top: -5px;
                    right: 30px;
                    width: 0;
                    height: 0;
                    border-left: 5px solid transparent;
                    border-right: 5px solid transparent;
                    border-bottom: 5px solid rgba(0,0,0,0.85);

                }
            }
        }
    }
    .flex-item {
      flex: 1;
      display: flex;
      align-items: center
    }

    .vertical-txt {
      display: block;
    }

    .logo {
      flex: 0;
      flex-basis: 70px;
      flex-shrink: 0;
      margin-right: 10px;
      margin-left: 10px;
      text-align: center;
      cursor: pointer;
    }

    &.long {
      .logo {
        flex-basis: 105px;
      }
    }

    &.short {
      .logo {
        flex-basis: 55px;
      }
    }

    &.square {
      .logo {
        flex-basis: 30px;
      }
    }

    .picture {
      display:none;
      flex: 0;
      flex-shrink: 0;
      flex-basis: 137px;
      margin-right: 20px;
      cursor: pointer;
      img {
        height: 84px;
        width: auto;
        position: relative;
        max-width: none;
      }
    }

    .benefit {
      flex: 0;
      font-size: 25px;
      margin-right: 5px;
      color: #2d2d2d;
      cursor: pointer;
      padding-right: 10px;
      &.only-benefit {
        flex: 1;
        font-size: 24px;
      }
    }

    .headline-container {
      display: flex;
      align-items: center;
      flex-basis: 70px;
      overflow: hidden;
      min-height: 50px;
      max-width: 220px;
    }

    .headline {
      @include hyphenate;
      cursor: pointer;
      overflow: hidden;
    }

    .title {
      @include hyphenate;
      display: block;
      flex: 3;
      font-size: 13.5px;
      cursor: pointer;
      max-height: 63px;
      overflow: hidden;
    }

    .common {
      color: #2d2d2d;
      font-weight: 500;
      line-height: 20px;
      padding-right: 20px;
      height: auto;
    }

    .description {
      @include hyphenate;
      flex: 3;
      font-size: 11.5px;
      padding-right: 20px;
      cursor: pointer;
      display: flex;
      border-left: 2px solid #ccc;
      margin: 15px 0;
      .desc-content {
        color: #2d2d2d;
        padding-left: 10px;
        overflow: hidden;
        line-height: 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 17px;
        max-height: 55px;
        justify-content: start
      }
    }

    .call-to-action {
      text-align: right;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      a {
          text-transform: uppercase
      }
      .conditions {
        display: none;
        text-transform: uppercase;
        font-size: 11px;
        color: #ccc;
      }

      .info-icon {
        cursor: pointer;
        margin-right: 7px;
        margin-left: 7px;
        width: 15px;
        height: 15px;
        background: url('../images/info.svg') no-repeat;
        vertical-align: 4px;
        cursor: default;
        background-size: 14px;

        &:hover {
          filter: brightness(0.7);
          -webkit-filter: brightness(0.7);
        }
      }

      .btn {
        min-width: 60px;
        max-width: 60px;
        letter-spacing: 1px;
        font-size: 11px;
        color: #fff;
        text-decoration: none;
        display: inline-block;
        text-align: center;
        padding: 7px 10px;
        border-radius: 5px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
      }
    }
  }
}

.tooltipster-sidetip.tooltipster-shadow.tooltipster-shadow-customized {
  pointer-events: auto;
}


.tooltipster-sidetip.tooltipster-shadow.tooltipster-shadow-customized .tooltipster-box {
  font-family: "-mac-system", "-apple-system", "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  max-width: 400px;
  height: 62px;
  font-size: 11.5px;
  box-shadow: 0px 2px 14px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  display: flex;
  align-items: center
}

.tooltipster-sidetip.tooltipster-noir.tooltipster-noir-customized .tooltipster-box {
    font-family: "-mac-system", "-apple-system", "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    max-width: 400px;
    font-size: 11.5px;
    right: calc(100% - 1400px);
}

@media only screen and (min-width: 335px) {
  body {
    padding-left: 37px;
    padding-right: 37px;
  }
  #cqz-browser-panel-re {
    &:before {
      display: block;
    }

    .close {
      top: -2px;
      right: -30px;
    }

    .promo-container {
      min-width: 300px;
      .headline {
        display: block;
        font-size: 13.5px;
        max-height: 63px
      }
      .why-offer {
        display: none;
      }
      .description {
        display: none;
      }
    }

    .code-container {
      margin-top: 20px;
      .code-box {
        .code-copy {
          max-width: 100%;
        }
      }
    }
  }
}

@media only screen and (min-width: 550px) {

  #cqz-browser-panel-re {
    .promo-container {

      .headline {
        display: block;
        font-size: 13.5px;
      }
      .why-offer {
          display: none;
      }
      .description {
        display: none;
      }
      .benefit {
        font-size: 36px;
      }

      .call-to-action {
        .btn {
          min-width: auto;
          max-width: 191px;
        }
      }
    }
  }
}

@media only screen and (min-width: 650px) {

  #cqz-browser-panel-re {
    .promo-container {
      .why-offer {
        display: block;
      }
      .description {
          display: none;
      }
      .call-to-action {
        .btn {
          font-size: 11.5px;
          max-width: 130px;
          min-width: auto;
        }
      }
    }
  }
}


@media only screen and (min-width: 768px) {
  #cqz-browser-panel-re {
    .promo-container {
      .description {
        display: flex;
        align-items: center;
      }

      .title {
        flex: 1;
      }
      .call-to-action {
        .btn {
            min-width: 170px
        }
      }
    }
  }
}

@media only screen and (min-width: 992px) {
  #cqz-browser-panel-re {
    .promo-container {
      .description {
          align-items: center
      }
      .picture {
        display: block;
      }

      .headline,
      .title {
        font-size: 15.3px;
      }

       .logo {
        margin-left: 20px;
        margin-right: 20px;
      }

      .anzeige {
        margin-left: 20px;
      }
    }
  }
}


@media only screen and (min-width: 1200px) {

   #cqz-browser-panel-re  {
    .promo-container {
      .description {
        font-size: 13.5px;
      }
    }
   }
}


@media only screen and (min-width: 1600px) {

  #cqz-browser-panel-re  {
    .promo-container {
      margin: 10px auto 0 auto;
      max-width: 1400px;

      .call-to-action {
        .conditions {
          display: block;
        }
      }
    }
  }
}

@media only screen and (max-width: 375px) {
    #cqz-browser-panel-re {
        margin-top: 12px;
        .promo-container {
            .headline-container {
                display: none;
            }
            .description {
                display: none
            }
            .benefit {
                flex: 2;
                justify-content: center
            }
            .why-offer {
                display: none
            }
        }
    }
}
