/* Info Pop Ups */
.alert-wrap2 {
  width: 100%;

  @include media-breakpoint-down(xxl){
    z-index: 1;
  }
  .inner-wrap {
      width: 100%;
      height: 36px;
      float: left;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      font-family: $font-family-secondary;
      font-size: $font-size-16;
      color: $primary-color;
      line-height: $line-height-16;
      text-align: center;
      text-transform: uppercase;
      background: rgba(0, 109, 143, 0.85);
      box-shadow: $box-shadow-box;
      position: relative;
      overflow: hidden;
      padding: 0 15%;

      strong {
          color: $red;
          font-weight: $font-weight-bold;
      }

      p {
          max-width: 100%;
          height: 36px;
          float: left;
          line-height: 36px;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          font-weight: $font-weight-normal;

          a {
              font-weight: 400;
              color: $red;
              text-decoration: underline;
          }
      }

      .more-link {
          float: left;
          height: 46px;
          line-height: $line-height-46;
          position: relative;
          margin: 0 -25px 0 -75px;

          a {
              font-weight: 400;
              color: $red;
              text-decoration: underline;
          }
      }

      .alert-close {
          width: 31px;
          height: 31px;
          float: right;
          font-size: 18px;
          color: $tertiary-color;
          line-height: 31px;
          text-align: center;
          background: $primary-color;
          border-radius: 360px;
          position: absolute;
          top: 50%;
          right: 10px;
          transform: translate(0, -50%);
          cursor: pointer;
      }
  }

  @include media-breakpoint-down(xl) {
      .inner-wrap {
          padding: 0 90px 0 30px;
      }
  }

  @include media-breakpoint-down(md) {
      position: relative;
      padding: 0;

      &:before {
          content: "";
          width: 10000px;
          height: 100%;
          background: $secondary-bg;
          box-shadow: $box-shadow-box;
          opacity: 0.9;
          position: absolute;
          top: 0;
          left: -5000px;
      }

      .inner-wrap {
          font-size: $font-size-12;
          line-height: $line-height-16;
          text-align: left;
          background: none;
          box-shadow: none;
          border-radius: 0;
          position: relative;
          padding: 0 55px 0 0;

          p {
              padding: 0 10px;
          }

          .more-link {
              margin: 0 0 0 -75px;
          }

          .alert-close {
              right: 0;
          }
      }
  }
}

.alert-wrap2, .alert-wrap {
  overflow: hidden;
  box-shadow: 0px 5px 15px #0000001a;
  @include media-breakpoint-up(lg) {
    border-radius: 0 0 8px 8px;
  }

  .inner-wrap {
    background: $secondary-bg;
    position: relative;
    margin-top: 0;
    transition: margin-top 1s;
    box-shadow: 0px 5px 15px #0000001a;

    .icon-background {
      opacity: 0.9;
      border-radius: 360px;
      width: 25px;
      height: 25px;
      background-color: $white;
      position: absolute;
      top: 50%;
      right: 10px;
      transform: translate(0, -50%);
      cursor: pointer;

      .icon {
        opacity: 0.9;
        position: absolute;
        top: 20%;
        bottom: 20%;
        left: 20%;
        right: 20%;
        background: $tertiary-color;
      }
    }
  }
}

.alert-wrap2.hidden, .alert-wrap.hidden {
  .inner-wrap {
    margin-top: -100px;
  }
}


.special-offers {
  position: absolute;
  top: 50vh;
  left: -10px;
  z-index: 2;
  width: 140px;
  transition: all 0.25s ease-out;

  .image {
    background: $primary-color;
    border-radius: 0px 360px 360px 0px;
    padding: 15px 15px 15px 25px;

    img {
      width: 68px;
    }
  }

  p {
    padding-left: 25px;
    font-weight: $font-weight-bold;
    font-size: $font-size-14;
    text-transform: uppercase;
    padding-top: 10px;
    line-height: $line-height-22;
  }

  &:hover {
    left: 0px;
    transition: all 0.25s ease-out;

    a {
      color: $primary-color;
      text-decoration: none;
    }

    p {
      color: $primary-color;
      text-decoration: none;
    }
  }

  @include media-breakpoint-down(lg) {
    display: none;
  }
}


.alert-box {
  position: fixed;
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  width: 361px;
  height: auto;
  background: $quaternary-color;
  border-radius: 0px 0px 0px 8px;
  z-index: 99;
  padding: 25px;
  box-shadow: 0 0 15px rgb(0 0 0 / 25%);
  max-width: 90vw;
  transition: max-width 1s;

  .alert-box-image{
    img{
      height: 175px;
       object-fit: contain;
    }
  }

  .btn{
    background: none;
    color: $quaternary-color;
    text-transform: none;
    padding: 0;
    font-size: $font-size-12;
    font-weight: $font-weight-bold;
    text-align: center;
    border: none;
    width: 100%;

    &:hover{
      background: none;
      border: none;
      color: white;
      box-shadow: none;
    }
  }

  .icon-background.alert-close-button {
    height: 17px;
    width: 17px;
    display: block;
    position: absolute;
    top: -14px;
    left: -27px;
    background: $white;
    border-radius: 20px;
    cursor: pointer;

    .icon {
      position: absolute;
      top: 20%;
      bottom: 20%;
      left: 20%;
      right: 20%;
      background: $black;
    }
  }

  .alert-close {
    width: 17px;
    height: 17px;
    float: right;
    font-size: 12px;
    color: #000000;
    line-height: 17px;
    text-align: center;
    background: #ffffff;
    border-radius: 360px;
    position: absolute;
    top: -3px;
    left: -31px;
    transform: translate(0, -50%);
    cursor: pointer;
  }

  .label {
    width: 85px;
    height: 15px;
    position: absolute;
    left: -50px;
    top: 35px;
    transform: rotate(-90deg);
    background: #D03554;
    font-size: $font-size-10;
    padding: 2px 10px;
    border-radius: 8px 8px 0px 0px;
    line-height: $line-height-11;
    cursor: pointer;

    img {
      margin-left: 5px;
      width: 10px;
      height: 10px;
      transform: rotate(0deg);
      transition: transform 1s;
    }
  }

  p {
    color: $primary-color;
    font-size: $font-size-10;
    line-height: $line-height-16;
    font-weight: $font-weight-normal;
    padding-bottom: 14px;

  }
}

.alert-box {
  right: 0;
  transition: right 1s, box-shadow 1s;
}

.alert-box.minimized {
  right: -361px;
  box-shadow: none;
  max-width: unset;

  .label {
    img {
      transform: rotate(180deg);
    }
  }
}

.alert-box.hidden {
  right: -1000px;
}

/* FAQ BUTTON FIXED */
.btn-faq{
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 10;

  &:hover{
    box-shadow: 0 0 20px rgb(255 255 255 / 30%);
    border-radius: 360px;
  }
}

/* Button Back to Top FIXED */
.btn-back-to-top{
  position: fixed;
  left: 20px;
  bottom: 20px;
  transform: rotate(180deg);
  border-radius: 360px;
  background: rgba(0,0,0,0.4);
  padding: 8px;
  z-index: 10;

  &:hover{
    background: rgba(0,0,0,0.7);
  }
}


.popup_layout_3 {
  // background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  background: #D31216;
  color: white;
  padding: 10px 20px;
  position: relative;
  animation: slideDown 0.4s ease-out;
  border-radius: 0px;

  &.closing {
    animation: slideUp 0.3s ease-in forwards;
  }

  .alert__inner {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
  }

  .alert__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: bellRing 2s ease-in-out infinite;

    svg {
      color: white;
    }
  }

  .alert__content {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 15px;
  }

  .alert__title {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .alert__text,
  .alert__link-text {
    font-weight: 400;
  }

  .alert__link {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s ease;

    &:hover {
      opacity: 0.8;
    }
  }

  .alert__close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;

    &:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: scale(1.1);
    }

    &:active {
      transform: scale(0.95);
    }
  }

  /* Tablet */
  @media screen and (max-width: 1024px) {
    padding: 10px 16px;

    .alert__content {
      font-size: 14px;
      gap: 5px;
    }

    .alert__title {
      font-size: 15px;
    }

    .alert__icon,
    .alert__close {
      width: 28px;
      height: 28px;
    }
  }

  /* Mobile */
  @media screen and (max-width: 767px) {
    padding: 12px;

    .alert__content {
      font-size: 13px;
      gap: 4px;
      line-height: 1.4;
    }

    .alert__title {
      font-size: 14px;
      width: 100%;
    }

    .alert__icon,
    .alert__close {
      width: 26px;
      height: 26px;
    }

    .alert__close {
      position: absolute;
      top: 8px;
      right: 0;
    }
  }

  /* Small Mobile */
  @media screen and (max-width: 480px) {
    padding: 10px;

    .alert__inner {
      padding-right: 30px;
    }

    .alert__content {
      font-size: 12px;
    }

    .alert__title {
      font-size: 13px;
    }

    .alert__icon {
      width: 24px;
      height: 24px;
    }
  }
}

/* Animations */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

@keyframes bellRing {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30% {
    transform: rotate(-10deg);
  }
  20%, 40% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(0deg);
  }
}
