@import url('https://cdn.jsdelivr.net/npm/notyf@3/notyf.min.css');

.notyf {
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  align-items: center;
  justify-content: flex-start;
  z-index: 9999;
  padding: 20px 16px 0;
  font-family: Pretendard, Inter, 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.notyf__toast.review-toast {
  width: min(400px, calc(100vw - 32px));
  max-width: none;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF !important;
  color: #0A2540;
  box-shadow:
    0 18px 42px -24px rgba(10, 37, 64, 0.45),
    0 1px 3px 0 rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.notyf__toast.review-toast::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #0077FE;
}

.notyf__toast.review-toast--success::before {
  background: #10B981;
}

.notyf__toast.review-toast--warning::before {
  background: #F59E0B;
}

.notyf__toast.review-toast--error::before {
  background: #EF4444;
}

.notyf__toast.review-toast .notyf__wrapper {
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 16px 56px 16px 18px;
  box-sizing: border-box;
}

.notyf__toast.review-toast .notyf__icon {
  width: 36px;
  height: 36px;
  margin: 0;
}

.notyf__toast.review-toast .review-toast__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 500;
}

.notyf__toast.review-toast--success .review-toast__icon {
  background: #ECFDF5;
  color: #10B981;
}

.notyf__toast.review-toast--warning .review-toast__icon {
  background: #FFFBEB;
  color: #D97706;
}

.notyf__toast.review-toast--error .review-toast__icon {
  background: #FEF2F2;
  color: #EF4444;
}

.notyf__toast.review-toast .notyf__message {
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
  padding-top: 0;
}

.notyf__toast.review-toast .notyf__dismiss {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 8px;
  background: transparent !important;
  opacity: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.notyf__toast.review-toast .notyf__dismiss:hover {
  background: #F1F5F9;
}

.notyf__toast.review-toast .notyf__dismiss-btn {
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  color: #94A3B8 !important;
  opacity: 1;
  cursor: pointer;
  transform: none;
}

.notyf__toast.review-toast .notyf__dismiss-btn::before,
.notyf__toast.review-toast .notyf__dismiss-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 13px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
  opacity: 1;
  transform-origin: center;
}

.notyf__toast.review-toast .notyf__dismiss-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.notyf__toast.review-toast .notyf__dismiss-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.notyf__ripple {
  display: none;
}

.review-toast-fallback-container {
  position: fixed;
  top: 20px !important;
  right: 0 !important;
  left: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: auto;
  height: auto;
  pointer-events: none;
  z-index: 9999;
}

.review-toast-fallback {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  width: min(400px, calc(100vw - 32px));
  padding: 16px 16px 16px 18px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  color: #334155;
  box-shadow:
    0 18px 42px -24px rgba(10, 37, 64, 0.45),
    0 1px 3px 0 rgba(15, 23, 42, 0.08);
  pointer-events: auto;
  animation: reviewToastIn 0.24s ease-out forwards;
}

.review-toast-fallback::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #0077FE;
}

.review-toast-fallback--success::before {
  background: #10B981;
}

.review-toast-fallback--warning::before {
  background: #F59E0B;
}

.review-toast-fallback--error::before {
  background: #EF4444;
}

.review-toast-fallback__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
}

.review-toast-fallback--success .review-toast-fallback__icon {
  background: #ECFDF5;
  color: #10B981;
}

.review-toast-fallback--warning .review-toast-fallback__icon {
  background: #FFFBEB;
  color: #D97706;
}

.review-toast-fallback--error .review-toast-fallback__icon {
  background: #FEF2F2;
  color: #EF4444;
}

.review-toast-fallback__message {
  padding-top: 0;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.review-toast-fallback__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.review-toast-fallback__close:hover {
  background: #F1F5F9;
  color: #64748B;
}

.review-toast-fallback__close .material-icons-round {
  font-size: 18px;
}

.review-toast-fallback--closing {
  animation: reviewToastOut 0.22s ease-in forwards;
}

@keyframes reviewToastIn {
  from {
    opacity: 0;
    transform: translate3d(12px, -8px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes reviewToastOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(12px, -8px, 0) scale(0.98);
  }
}

@media (max-width: 640px) {
  .notyf {
    padding: 14px 14px 0;
  }

  .notyf__toast.review-toast {
    width: min(100%, 400px);
  }

  .review-toast-fallback-container {
    top: 14px !important;
    right: 0 !important;
    left: 0 !important;
    padding: 0 14px;
    box-sizing: border-box;
  }

  .review-toast-fallback {
    width: min(100%, 400px);
  }
}
