@charset "utf-8";

/* ==============================
  Root
============================== */

:root {
  --point-color: #4caf50;
  --text-color: #111111;
  --sub-text-color: #666666;
  --border-color: #e5e7eb;
  --background-color: #f7faf8;
  --white-color: #ffffff;

  --transition: all .3s ease;
}

/* ==============================
  Reset
============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--background-color);
  font-family: "Inter", "Noto Sans KR", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-color);
}

ul,
ol,
li {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  border-radius: 0;
  outline: none;
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* ==============================
  Layout
============================== */

.inner {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
}

.pc_show {
  display: block;
}

.mo_show {
  display: none;
}

/* ==============================
  Toast
============================== */

#one_toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 99999;

  min-width: 280px;
  max-width: 520px;
  padding: 16px 22px;

  border-radius: 16px;
  background: rgba(17, 17, 17, .92);

  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: #ffffff;

  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(20px);

  transition:
    opacity .25s ease,
    visibility .25s ease,
    transform .25s ease;
}

#one_toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==============================
  Modal Common
============================== */

#one_modal,
#one_confirm {
  position: fixed;
  inset: 0;
  z-index: 100000;

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

  opacity: 0;
  visibility: hidden;

  transition:
    opacity .25s ease,
    visibility .25s ease;
}

#one_confirm {
  z-index: 100001;
}

#one_modal.show,
#one_confirm.show {
  opacity: 1;
  visibility: visible;
}

#one_modal .one_modal_dim,
#one_confirm .one_confirm_dim {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(4px);
}

#one_modal .one_modal_box,
#one_confirm .one_confirm_box {
  position: relative;
  z-index: 1;

  width: min(100% - 40px, 420px);
  padding: 34px 30px 28px;

  border-radius: 28px;
  background: #ffffff;

  text-align: center;

  transform: translateY(16px);
  transition: transform .25s ease;
}

#one_modal.show .one_modal_box,
#one_confirm.show .one_confirm_box {
  transform: translateY(0);
}

#one_modal .one_modal_message,
#one_confirm .one_confirm_message {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: #111111;
}

/* ==============================
  Alert Modal
============================== */

#one_modal .one_modal_close {
  width: 100%;
  height: 50px;
  margin-top: 26px;

  border-radius: 14px;
  background: #111827;

  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

/* ==============================
  Confirm Modal
============================== */

#one_confirm .one_confirm_btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  margin-top: 26px;
}

#one_confirm .one_confirm_cancel,
#one_confirm .one_confirm_ok {
  height: 50px;

  border-radius: 14px;

  font-size: 15px;
  font-weight: 800;
}

#one_confirm .one_confirm_cancel {
  background: #eef1f0;
  color: #111111;
}

#one_confirm .one_confirm_ok {
  background: #e53935;
  color: #ffffff;
}

#one_modal .one_modal_message {
  white-space: normal;
}

#one_modal:not(.profile_modal) .one_modal_message,
#one_confirm .one_confirm_message {
  white-space: pre-line;
}

/* ==============================
  Button Reset
============================== */

button {
  appearance: none;
  -webkit-appearance: none;

  margin: 0;
  padding: 0;

  border: 0;
  background: none;

  font: inherit;
  color: inherit;

  cursor: pointer;
}

/* ==============================
  Profile Select Modal
============================== */

#one_modal.profile_modal .one_modal_box {
  width: min(100% - 40px, 760px);
  padding: 28px 32px 32px;
  border-radius: 32px;
}

#one_modal.profile_modal .one_modal_message {
  padding: 0 !important;
  margin: 0 !important;
}

.profile_select_modal {
  padding: 0;
  margin: 0;
}

.profile_select_head {
  margin: 0 0 24px;
  padding-right: 54px;
}

.profile_select_head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}

.profile_select_head p {
  margin-top: 8px;
  font-size: 14px;
  color: #666666;
}

.profile_select_grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.profile_select_item {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 20px;
  background: #f4f6f8;
  overflow: hidden;
  font-size: 0;
}

.profile_select_item:hover {
  border-color: #e4d5a5;
}

.profile_select_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.profile_modal_close {
  position: absolute;
  top: 20px;
  right: 20px;

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

  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: #f4f6f8;

  font-size: 18px;
  color: #111111;
}

.profile_modal_close:hover {
  background: #e9edf0;
}

#one_modal.profile_modal .one_modal_close {
  display: none;
}

/* ==============================
  Tablet
============================== */

@media (max-width: 1199px) and (min-width: 768px) {

  .inner {
    width: min(100% - 32px, 1200px);
  }

  #one_modal .one_modal_box,
  #one_confirm .one_confirm_box {
    width: min(100% - 48px, 420px);
  }

}

/* ==============================
  Mobile
============================== */

@media (max-width: 767px) {

  .inner {
    width: min(100% - 32px, 1200px);
  }

  .pc_show {
    display: none;
  }

  .mo_show {
    display: block;
  }

  #one_toast {
    bottom: 20px;

    width: calc(100% - 32px);
    min-width: auto;
    max-width: none;
    padding: 15px 18px;

    border-radius: 14px;

    font-size: 13px;
  }

  #one_modal .one_modal_box,
  #one_confirm .one_confirm_box {
    width: calc(100% - 28px);
    padding: 28px 20px 22px;

    border-radius: 22px;
  }

  #one_modal .one_modal_message,
  #one_confirm .one_confirm_message {
    font-size: 15px;
  }

  #one_modal .one_modal_close {
    height: 46px;
    margin-top: 22px;

    border-radius: 12px;

    font-size: 14px;
  }

  #one_confirm .one_confirm_btns {
    margin-top: 22px;
  }

  #one_confirm .one_confirm_cancel,
  #one_confirm .one_confirm_ok {
    height: 46px;

    border-radius: 12px;

    font-size: 14px;
  }

  #one_modal.profile_modal .one_modal_box {
    width: calc(100% - 20px);
    height: 80%;
    padding: 24px 20px;
    border-radius: 24px;
    overflow-y: scroll;
    overflow-x: hidden;
  }

  .profile_select_head h2 {
    font-size: 24px;
  }

  .profile_select_head p {
    font-size: 13px;
  }

  .profile_select_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .profile_select_item {
    border-radius: 18px;
  }

}