/* Leave popup. Layout and fills from Figma 54:274 / 57:2. */

.g-modal[data-aw-leave] {
  width: 448px;
  max-width: min(448px, calc(100vw - 32px));
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(#1b1b1d, #0a0a0b);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.09),
    0 20px 22px rgba(0, 0, 0, 0.55);
}

.g-modal[data-aw-leave] .btn.btn-solid {
  display: none;
}

.g-modal[data-aw-leave] .g-muted + .g-muted {
  display: none;
}

.g-modal[data-aw-leave] .g-orb {
  margin: 0 auto;
}

.g-modal[data-aw-leave] .g-modal-title {
  margin: 24px 0 0;
  color: transparent;
  background: linear-gradient(#fff, #b9bbc4);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.45px;
  line-height: 30px;
}

.g-modal[data-aw-leave] p.g-muted {
  margin: 12px 0 0;
  color: #b7b7bf;
  font-size: 16px;
  font-weight: 400;
  line-height: 27px;
}

.g-modal[data-aw-leave] .g-quiet-link {
  margin-top: 16px;
  color: #92949f;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  transition: color 200ms var(--ease);
}

.g-modal[data-aw-leave] .g-close {
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.leave-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 16px 0 0;
}

.leave-msg {
  position: relative;
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 188px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: #f7f7fa;
  background: linear-gradient(#2d2d31, #17171a);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 18px;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--ease),
    border-color 200ms var(--ease);
}

.leave-msg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 19px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.23, 1, 0.32, 1);
}

.leave-msg-max::before {
  background: linear-gradient(
    167deg,
    #19baff 0%,
    #1e53ff 35%,
    #2d2dff 55%,
    #5416fe 78%,
    #8114ff 100%
  );
}

.leave-msg-tg::before {
  background: linear-gradient(#2aabee, #229ed9);
}

.leave-msg-ico,
.leave-msg-txt {
  position: relative;
  z-index: 1;
}

.leave-msg-ico {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: block;
}

.leave-msg:active {
  transform: scale(0.97);
}

.leave-msg:focus {
  outline: none;
}

.leave-msg:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .leave-msg:hover::before {
    opacity: 1;
  }

  .leave-msg:hover {
    border-color: rgba(255, 255, 255, 0.2);
  }

  .g-modal[data-aw-leave] .g-quiet-link:hover {
    color: #fff;
  }
}

@media (max-width: 420px) {
  .leave-row {
    flex-direction: column;
    align-items: stretch;
  }

  .leave-msg {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leave-msg,
  .leave-msg::before,
  .g-modal[data-aw-leave] .g-quiet-link {
    transition: opacity 200ms ease, color 200ms ease, border-color 200ms ease;
    transform: none;
  }

  .leave-msg:active {
    transform: none;
  }
}

html.rm .leave-msg,
html.rm .leave-msg::before,
html.rm .g-modal[data-aw-leave] .g-quiet-link {
  transition: opacity 200ms ease, color 200ms ease, border-color 200ms ease;
  transform: none;
}

html.rm .leave-msg:active {
  transform: none;
}
