.phone-notification {
  --notification-scale-from: 0.2;
  --notification-offset-y: 0px;

  position: absolute;
  left: 4%;
  right: 4%;
  top: 44%;
  display: flex;
  gap: 4%;
  align-items: flex-start;
  padding: 3.4% 4%;
  border-radius: calc(var(--phone-width) * 0.065);
  text-align: left;
  background: rgb(246 246 248 / 78%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 4px 14px rgb(25 31 40 / 8%);
  opacity: calc(var(--notification-in, 0) * (1 - var(--letter-open, 0)));
  transform: translateY(calc((1 - var(--notification-in, 0)) * var(--notification-offset-y, -14px)))
    scale(
      calc(
        (
            var(--notification-scale-from, 0.94) + (1 - var(--notification-scale-from, 0.94)) *
              var(--notification-in, 0)
          ) *
          (1 - var(--notification-tap, 0) * 0.03)
      )
    );
}

.phone-notification-icon {
  flex: none;
  width: 13.5%;
  aspect-ratio: 1;
  margin-top: 0.5%;
  border-radius: 24%;
  background: linear-gradient(180deg, var(--message-green-light), var(--message-green));
  display: grid;
  place-items: center;
}

.phone-notification-icon-art {
  width: 62%;
  height: 100%;
  display: block;
  overflow: visible;
}

.phone-notification-text {
  flex: 1;
  min-width: 0;
  color: var(--phone-text);
}

.phone-notification-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.phone-notification-app {
  font-size: calc(var(--phone-width) * 0.047);
  font-weight: 600;
}

.phone-notification-time {
  flex: none;
  font-size: calc(var(--phone-width) * 0.038);
  color: rgb(60 60 67 / 60%);
}

.phone-notification-message {
  margin-top: 0.8%;
  font-size: calc(var(--phone-width) * 0.043);
  line-height: 1.32;
  color: var(--phone-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
