@import url("../../epic/theme_tokens.css");
@import url("../../epic/custom_icons.css");

.common-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
}

.common-modal {
  background: var(--white-90, rgba(255, 255, 255, 0.9));
  border-radius: var(---, 16px);
  width: 328px;
  max-width: calc(100% - 40px);
  min-height: 230px;
  box-shadow: 0 0 24px 0 var(---LV-3, rgba(14, 15, 17, 0.07)),
    0 0 56px 0 var(---LV-3, rgba(14, 15, 17, 0.07)),
    0 0 72px 0 var(---LV-3, rgba(14, 15, 17, 0.07));
  backdrop-filter: blur(50px);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 32px 56px;
  box-sizing: border-box;
  text-align: center;
}

.common-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.common-modal-icon {
  font-size: 56px;
  color: #5856d6;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.common-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0e0f11;
}

.common-modal-body {
  font-size: 16px;
  font-weight: 400;
  color: #1e2224;
  line-height: 22px;
  margin: 0px 0 0;
}

.common-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.common-modal-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  font-family: "Pretendard", sans-serif;
  border: none;
  cursor: pointer;
  transition: background 120ms ease;
}

.common-modal-btn.secondary {
  background: rgba(88, 86, 214, 0.1);
  color: #282691;
}

.common-modal-btn.secondary:hover {
  background: rgba(61, 59, 201, 0.15);
}

.common-modal-btn.primary {
  background: #5856d6;
  color: #ffffff;
}

.common-modal-btn.primary:hover {
  background: #3d3bc9;
}

body.common-modal-open {
  /*overflow: hidden;*/
}

@media (max-width: 1299px) {
  .common-modal {
    width: 300px;
    min-height: 177px;
    padding: 24px;
    box-sizing: border-box;
    gap: 16px;
  }

  .common-modal-actions {
    flex-direction: row;
    justify-content: center;
  }

  .common-modal-btn {
    flex: 1 1 0;
    width: 120px;
  }

  .common-modal-icon {
    font-size: 40px;
    color: #5856d6;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
