@import '~core/styles/vars/breakpoints.css';

.notification {
  border-radius: 8px;
  background-color: #FFFFFF;
  box-shadow: 0 2px 15px 0 rgba(152,15,221,0.1);
  animation: move 0.3s ease-in;
  width: 390px;
  
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 130;
  @media (--ms-and-down) {
    right: 10px;
  }

  @media (--xs-only) {
    width: calc(90%);
  }
}

.content {
  display: flex;
  align-items: center;
  padding: 20px 30px 24px 30px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  @media (--ms-and-down) {
    padding: 20px 20px 24px 20px;
  }
}

.button {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  padding: 3px;
}

.close {
  color: rgb(40 40 40 / 0.3);
  font-size: 12px;
  transition: color 0.2s ease-in;
  &:hover {
    color: var(--primary-color);
  }
}

.left {
  border-radius: 50%;
  height: 50px;
  width: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  position: relative;
  &:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
    top: 0;
    left: 0;
    background: var(--primary-color);
    opacity: 0.1;
  }
}

.gift {
  font-size: 20px;
  color: var(--primary-color);
  position: relative;
}

.right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 20;
}

.title {
  color: #282828;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 22px;
  margin-bottom: 5px;
}

.btn {
  color: var(--primary-color);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.38px;
  line-height: 19px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-color);
  transition: opacity 0.2s ease-in;
  cursor: pointer;
  &:hover {
    opacity: 0.85;
  }
}

@keyframes move {
  0% {
    opacity: 1;
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

:global(.dir--rtl) {
  .button {
    left: 10px;
    right: initial;
  }

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