/* Shared SweetAlert appearance for the main site and embedded chat pages.
   Keep SweetAlert's layout, focus management, timers, and result handlers. */
/* Alerts stay above payment sheets and their nested overlays. */
body .swal2-container {
  z-index: 2147483647;
}
body .swal2-container.swal2-backdrop-show {
  background: rgb(20 31 57 / 42%);
  backdrop-filter: blur(3px);
}
body .swal2-popup {
  --swal2-outline: 3px solid #c3d0ff;
  box-sizing: border-box;
  border: 1px solid #e2e8f3;
  border-radius: 18px;
  background: #fff;
  color: #202a43;
  font-family: 'GM Pretendard', 'Pretendard Variable', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  box-shadow: 0 24px 80px rgb(20 39 80 / 20%);
}
body .swal2-popup:not(.swal2-toast) {
  width: 28rem;
  max-width: calc(100vw - 32px);
  padding: 0 0 24px;
}
body .swal2-popup #swal2-title {
  padding: 24px 28px 0;
  color: #202a43;
  font-size: 22px !important;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -.5px;
  overflow-wrap: anywhere;
}
body .swal2-popup .swal2-html-container {
  margin: 14px 28px 0;
  padding: 0;
  color: #35455f;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7 !important;
  overflow-wrap: anywhere;
}
body .swal2-popup .swal2-html-container b,
body .swal2-popup .swal2-html-container strong { color: #35455f; font-weight: 700; }
/* One frame and stroke weight for every status, independent of native line geometry. */
body .swal2-popup .swal2-icon {
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--gm-swal-icon-color, #315bf4);
  background: var(--gm-swal-icon-background, #eef3ff) !important;
}
body .swal2-popup:not(.swal2-toast) .swal2-icon { margin: 28px auto 0; }
body .swal2-popup .swal2-icon::before {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  background: currentColor;
  -webkit-mask: var(--gm-swal-icon-mask) center / contain no-repeat;
  mask: var(--gm-swal-icon-mask) center / contain no-repeat;
}
body .swal2-popup .swal2-icon::after,
body .swal2-popup .swal2-icon > * { display: none !important; }
body .swal2-popup .swal2-icon.swal2-error {
  --gm-swal-icon-color: #dc405c;
  --gm-swal-icon-background: #fff0f3;
  --gm-swal-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 7 10 10M17 7 7 17'/%3E%3C/svg%3E");
}
body .swal2-popup .swal2-icon.swal2-success {
  --gm-swal-icon-color: #229573;
  --gm-swal-icon-background: #eaf8f2;
  --gm-swal-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E");
}
body .swal2-popup .swal2-icon.swal2-warning {
  --gm-swal-icon-color: #bc811f;
  --gm-swal-icon-background: #fff7e6;
  --gm-swal-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v8m0 5h0'/%3E%3C/svg%3E");
}
body .swal2-popup .swal2-icon.swal2-info {
  --gm-swal-icon-color: #315bf4;
  --gm-swal-icon-background: #eef3ff;
  --gm-swal-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 11v7m0-12h0'/%3E%3C/svg%3E");
}
body .swal2-popup .swal2-icon.swal2-question {
  --gm-swal-icon-color: #7160c4;
  --gm-swal-icon-background: #f3efff;
  --gm-swal-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 8a3.5 3.5 0 0 1 7 0c0 2.5-3.5 2.5-3.5 5m0 5h0'/%3E%3C/svg%3E");
}
body .swal2-popup.swal2-toast .swal2-icon { width: 28px; min-width: 0; height: 28px; margin: 0 12px 0 0; }
body .swal2-popup.swal2-toast .swal2-icon::before { width: 18px; height: 18px; }
/* Status icons stay complete and still while the dialog keeps its shared motion. */
body .swal2-popup .swal2-icon,
body .swal2-popup .swal2-icon::before,
body .swal2-popup .swal2-icon::after,
body .swal2-popup .swal2-icon *,
body .swal2-popup .swal2-icon *::before,
body .swal2-popup .swal2-icon *::after {
  animation: none !important;
  transition: none !important;
}
body .swal2-popup .swal2-actions { gap: 10px; margin: 24px auto 0; padding: 0 24px; }
body .swal2-popup .swal2-actions button.swal2-styled {
  min-width: 92px;
  min-height: 44px;
  margin: 0;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: none;
  transition: background-color 150ms, box-shadow 150ms;
}
body .swal2-popup .swal2-actions .swal2-confirm { background: #315bf4 !important; color: #fff !important; }
body .swal2-popup .swal2-actions .swal2-confirm:hover { background: #244be0 !important; }
body .swal2-popup .swal2-actions .swal2-cancel { border-color: #dfe6f2; background: #f5f7fc !important; color: #64728c !important; }
body .swal2-popup .swal2-actions .swal2-cancel:hover { background: #eaf0fa !important; }
body .swal2-popup .swal2-actions .swal2-deny { background: #dc405c !important; color: #fff !important; }
body .swal2-popup .swal2-actions button:focus-visible,
body .swal2-popup .swal2-close:focus-visible { outline: 3px solid #bacaff; outline-offset: 3px; box-shadow: none; }
body .swal2-popup .swal2-close { width: 40px; height: 40px; border-radius: 9px; color: #8b99af; font-size: 28px; }
body .swal2-popup .swal2-close:hover { color: #315bf4; background: #f1f5ff; }
body .swal2-popup :is(.swal2-input, .swal2-textarea, .swal2-select) {
  min-width: 0;
  max-width: calc(100% - 56px);
  margin: 18px 28px 0;
  border: 1px solid #dce4f2;
  border-radius: 9px;
  background: #fbfcff;
  color: #35455f;
  font-size: 15px;
  box-shadow: none;
}
body .swal2-popup :is(.swal2-input, .swal2-textarea, .swal2-select):focus { border-color: #7291fc; outline: 3px solid #edf2ff; box-shadow: none; }
body .swal2-popup .swal2-validation-message { margin-top: 18px; background: #fff2f4; color: #c43c55; font-size: 13px; }
body .swal2-popup .swal2-footer { margin-top: 22px; padding: 16px 24px 0; border-color: #e2e8f3; color: #71809b; font-size: 13px; }
body .swal2-popup .swal2-footer a { color: #315bf4; }
body .swal2-popup .swal2-loader { border-color: #315bf4 transparent #315bf4 transparent; }
body .swal2-popup :is(.swal2-checkbox, .swal2-radio, .swal2-range) input { accent-color: #315bf4; }
body .swal2-popup .swal2-progress-steps .swal2-progress-step { background: #315bf4; }
body .swal2-popup .swal2-progress-steps .swal2-progress-step-line { background: #dce5ff; }
body .swal2-popup .swal2-progress-steps .swal2-active-progress-step ~ .swal2-progress-step { background: #eaf0ff; color: #64728c; }
body .swal2-popup .swal2-timer-progress-bar { background: #315bf4; }
body .swal2-popup.swal2-toast { max-width: calc(100vw - 24px); padding: 14px 18px; border-radius: 12px; }
body .swal2-popup.swal2-toast #swal2-title { padding: 0; font-size: 14px !important; letter-spacing: 0; }
body .swal2-popup.swal2-toast .swal2-html-container { margin: 0; font-size: 13px; }
body .swal2-popup.swal2-toast .swal2-actions { margin: 0; padding: 0; }
@media (max-width: 520px) {
  body .swal2-popup #swal2-title { padding-inline: 22px; font-size: 21px !important; }
  body .swal2-popup .swal2-html-container { margin-inline: 22px; font-size: 17px; }
  body .swal2-popup .swal2-actions { padding-inline: 22px; }
  body .swal2-popup .swal2-actions button.swal2-styled { padding-inline: 18px; }
}
