/*
  ============================================================
  GRFTSH NOTIFICATIONS UI V1
  ============================================================
*/

.notification-button {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -6px;

  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #0a0a0a;
  border-radius: 999px;

  background: #ff2b73;
  color: #fff;

  font-size: 10px;
  font-weight: 800;
  line-height: 1;

  pointer-events: none;
}

.notification-badge[hidden] {
  display: none !important;
}


.notifications-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;

  background:
    rgba(0, 0, 0, 0.62);

  backdrop-filter:
    blur(5px);
}

.notifications-overlay[hidden] {
  display: none;
}

.notifications-panel {
  position: absolute;
  top: 0;
  right: 0;

  width: min(
    430px,
    100%
  );
  height: 100%;

  display: flex;
  flex-direction: column;

  background:
    #0d0d0f;

  border-left:
    1px solid rgba(
      255,
      255,
      255,
      0.08
    );

  box-shadow:
    -24px 0 70px
    rgba(0, 0, 0, 0.45);
}

.notifications-header {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding:
    calc(
      18px + env(safe-area-inset-top)
    )
    18px
    18px;

  border-bottom:
    1px solid rgba(
      255,
      255,
      255,
      0.08
    );
}

.notifications-header-copy {
  min-width: 0;
}

.notifications-header-copy h2 {
  margin: 0;

  color: #fff;

  font-size: 1.1rem;
  font-weight: 800;
}

.notifications-header-copy p {
  margin: 4px 0 0;

  color:
    rgba(255, 255, 255, 0.52);

  font-size: 0.78rem;
}

.notifications-close {
  width: 38px;
  height: 38px;

  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.07);

  color: #fff;

  font-size: 23px;

  cursor: pointer;
}

.notifications-toolbar {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding:
    11px 16px;

  border-bottom:
    1px solid rgba(
      255,
      255,
      255,
      0.06
    );
}

.notifications-mark-all {
  border: 0;
  padding: 6px 0;

  background: transparent;

  color: #ff4d87;

  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;

  cursor: pointer;
}

.notifications-mark-all:disabled {
  opacity: 0.42;
  cursor: default;
}


.notifications-delete-all {
  border: 0;
  padding: 6px 0;

  background: transparent;

  color:
    rgba(255, 255, 255, 0.52);

  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;

  cursor: pointer;
}

.notifications-delete-all:hover {
  color: #ff4d87;
}

.notifications-delete-all:disabled {
  opacity: 0.35;
  cursor: default;
}


.notification-row {
  position: relative;

  overflow: hidden;

  border-bottom:
    1px solid rgba(
      255,
      255,
      255,
      0.06
    );
}


.notification-row .notification-item {
  position: relative;
  z-index: 2;

  border-bottom: 0;

  background:
    #0d0d0f;

  transition:
    transform 180ms ease,
    background 120ms ease;

  touch-action:
    pan-y;
}


.notification-row .notification-item.is-unread {
  background:
    linear-gradient(
      90deg,
      #241019,
      #100d10
    );
}


.notification-delete {
  position: absolute;
  z-index: 1;

  pointer-events: none;

  top: 0;
  right: 0;

  width: 76px;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;

  background:
    #d9265f;

  color: #fff;

  cursor: pointer;
}


.notification-row.is-swiped
.notification-delete {
  pointer-events: auto;
}


.notification-delete svg {
  width: 22px;
  height: 22px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


@media (hover: hover) and (pointer: fine) {
  .notification-row .notification-item {
    padding-right: 58px;
  }

  .notification-delete {
    z-index: 3;

    pointer-events: auto;

    width: 40px;
    height: 40px;

    top: 50%;
    right: 10px;

    border-radius: 50%;

    background:
      transparent;

    color:
      rgba(255, 255, 255, 0.38);

    transform:
      translateY(-50%);

    opacity: 0;

    transition:
      opacity 120ms ease,
      color 120ms ease,
      background 120ms ease;
  }

  .notification-row:hover
  .notification-delete {
    opacity: 1;
  }

  .notification-delete:hover {
    color: #fff;

    background:
      rgba(217, 38, 95, 0.9);
  }
}


.notifications-content {
  min-height: 0;
  flex: 1 1 auto;

  overflow-y: auto;
  overscroll-behavior: contain;
}

.notifications-state {
  padding:
    48px 28px;

  text-align: center;

  color:
    rgba(255, 255, 255, 0.58);

  font-size: 0.88rem;
  line-height: 1.55;
}

.notifications-list {
  margin: 0;
  padding: 0;

  list-style: none;
}

.notification-item {
  position: relative;

  display: grid;
  grid-template-columns:
    44px
    minmax(0, 1fr);
  gap: 12px;

  padding:
    16px 18px;

  border-bottom:
    1px solid rgba(
      255,
      255,
      255,
      0.06
    );

  cursor: pointer;

  transition:
    background 120ms ease;
}

.notification-item:hover {
  background:
    rgba(255, 255, 255, 0.035);
}

.notification-item.is-unread {
  background:
    linear-gradient(
      90deg,
      rgba(255, 43, 115, 0.12),
      rgba(255, 43, 115, 0.02)
    );
}

.notification-item.is-unread::before {
  content: "";

  position: absolute;
  left: 5px;
  top: 50%;

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #ff2b73;

  transform:
    translateY(-50%);
}

.notification-icon {
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.065);

  color: #fff;
}

.notification-icon svg {
  width: 21px;
  height: 21px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-main {
  min-width: 0;
}

.notification-title {
  display: block;

  color: #fff;

  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.notification-body {
  margin:
    4px 0 0;

  color:
    rgba(255, 255, 255, 0.66);

  font-size: 0.82rem;
  line-height: 1.45;
}

.notification-time {
  display: block;

  margin-top: 7px;

  color:
    rgba(255, 255, 255, 0.4);

  font-size: 0.72rem;
}

body.notifications-open {
  overflow: hidden;
}

@media (
  max-width: 600px
) {
  .notifications-panel {
    width: 100%;
  }

  .notifications-header {
    padding-left: 16px;
    padding-right: 16px;
  }
}



.notifications-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background:
    rgba(0, 0, 0, 0.72);

  backdrop-filter:
    blur(8px);

  opacity: 0;

  transition:
    opacity 160ms ease;
}

.notifications-confirm-overlay.is-visible {
  opacity: 1;
}


.notifications-confirm {
  width: min(
    390px,
    100%
  );

  padding: 26px;

  border:
    1px solid
    rgba(255, 255, 255, 0.09);

  border-radius: 22px;

  background: #121214;

  box-shadow:
    0 26px 80px
    rgba(0, 0, 0, 0.58);

  text-align: center;
}


.notifications-confirm-icon {
  width: 54px;
  height: 54px;

  margin:
    0 auto 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    rgba(255, 43, 115, 0.13);

  color: #ff4d87;
}


.notifications-confirm-icon svg {
  width: 25px;
  height: 25px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.notifications-confirm h3 {
  margin:
    0 0 9px;

  color: #fff;

  font-size: 1.08rem;
  font-weight: 800;
}


.notifications-confirm p {
  margin: 0;

  color:
    rgba(255, 255, 255, 0.62);

  font-size: 0.86rem;
  line-height: 1.55;
}


.notifications-confirm-actions {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 10px;

  margin-top: 24px;
}


.notifications-confirm-actions button {
  min-height: 44px;

  padding:
    10px 14px;

  border-radius: 12px;

  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;

  cursor: pointer;
}


.notifications-confirm-cancel {
  border:
    1px solid
    rgba(255, 255, 255, 0.11);

  background:
    rgba(255, 255, 255, 0.055);

  color: #fff;
}


.notifications-confirm-delete {
  border:
    1px solid
    rgba(255, 43, 115, 0.5);

  background: #d9265f;

  color: #fff;
}


@media (
  max-width: 480px
) {
  .notifications-confirm-overlay {
    align-items: flex-end;

    padding: 14px;
  }

  .notifications-confirm {
    padding:
      24px 20px
      calc(
        20px
        +
        env(
          safe-area-inset-bottom
        )
      );

    border-radius: 22px;
  }
}

/* ==========================================================
   GRFTSH PWA PUSH INVITE V1
   ========================================================== */

.grftsh-push-invite {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 9998;

  width: min(
    360px,
    calc(100vw - 36px)
  );

  padding: 16px;

  border:
    1px solid rgba(
      255,
      255,
      255,
      .12
    );

  border-radius: 16px;

  background: #141414;

  box-shadow:
    0 18px 50px
    rgba(
      0,
      0,
      0,
      .45
    );
}

.grftsh-push-invite__text {
  display: grid;
  gap: 5px;
}

.grftsh-push-invite__text strong {
  font-size: 15px;
}

.grftsh-push-invite__text span {
  color: #aaa;
  font-size: 13px;
  line-height: 1.4;
}

.grftsh-push-invite__actions {
  display: flex;
  gap: 8px;

  margin-top: 14px;
}

.grftsh-push-invite__actions button {
  min-height: 38px;

  padding: 0 14px;

  border-radius: 999px;

  font: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.grftsh-push-invite__enable {
  border: 0;

  background: #d21f56;
  color: #fff;
}

.grftsh-push-invite__later {
  border:
    1px solid #3a3a3a;

  background: transparent;
  color: #ddd;
}

@media (
  max-width: 640px
) {
  .grftsh-push-invite {
    right: 12px;
    bottom: 76px;

    width:
      calc(
        100vw - 24px
      );
  }
}

