/* margin */
.m-0 {
  margin: 0 !important;
}

.m-8-0 {
  margin: 8px 0 !important;
}

.m-20-0 {
  margin: 20px 0 !important;
}

.m-24-16 {
  margin: 24px 16px !important;
}

.m-0-20 {
  margin: 0 20px !important;
}

.m-t-4 {
  margin-top: 4px !important;
}

.m-t-8 {
  margin-top: 8px !important;
}

.m-t-20 {
  margin-top: 20px !important;
}

.m-t-24 {
  margin-top: 24px !important;
}

.m-t-40 {
  margin-top: 40px !important;
}

.m-t-1rem {
  margin-top: 1rem !important;
}

.m-t-2rem {
  margin-top: 2rem !important;
}

.m-t-3rem {
  margin-top: 3rem !important;
}

.m-t-4rem {
  margin-top: 4rem !important;
}

.m-b-0 {
  margin-bottom: 0 !important;
}

.m-b-4 {
  margin-bottom: 4px !important;
}

.m-b-8 {
  margin-bottom: 8px !important;
}

.m-b-12 {
  margin-bottom: 12px !important;
}

.m-b-16 {
  margin-bottom: 16px !important;
}

.m-b-20 {
  margin-bottom: 20px !important;
}

.m-b-24 {
  margin-bottom: 24px !important;
}

.m-b-28 {
  margin-bottom: 28px !important;
}

.m-b-1rem {
  margin-bottom: 1rem !important;
}

.m-b-2rem {
  margin-bottom: 2rem !important;
}

.m-b-3rem {
  margin-bottom: 3rem !important;
}

.m-b-5rem {
  margin-bottom: 5rem !important;
}

.m-l-4 {
  margin-left: 4px;
}

.m-l-8 {
  margin-left: 8px;
}

.m-l-20 {
  margin-left: 20px;
}

.m-r-4 {
  margin-right: 4px;
}

.m-r-8 {
  margin-right: 8px;
}

/* padding */
.p-0 {
  padding: 0 !important;
}

.p-20 {
  padding: 20px;
}

.p-32 {
  padding: 32px;
}

.p-8-0 {
  padding: 8px 0 !important;
}

.p-12-0 {
  padding: 12px 0 !important;
}

.p-24-0 {
  padding: 24px 0 !important;
}

.p-20-10 {
  padding: 20px 10px !important;
}

.p-24-16 {
  padding: 24px 16px !important;
}

.p-32-20 {
  padding: 32px 20px !important;
}

.p-0-16 {
  padding: 0 16px !important;
}

.p-0-20 {
  padding: 0 20px !important;
}

.p-t-20 {
  padding-top: 20px !important;
}

.p-t-24 {
  padding-top: 24px !important;
}

.p-b-20 {
  padding-bottom: 20px !important;
}

.p-b-24 {
  padding-bottom: 24px !important;
}

.p-b-68 {
  padding-bottom: 68px !important;
}

.p-b-1rem {
  padding-bottom: 1rem !important;
}

.p-b-3rem {
  padding-bottom: 3rem !important;
}

.p-b-5rem {
  padding-bottom: 5rem !important;
}

.p-l-16 {
  padding-left: 16px;
}

/* flex */
.flex {
  display: flex;
  flex-direction: column !important;
}

.row {
  display: flex;
  flex-direction: row !important;
}

.flex-center {
  display: flex;
  justify-content: center;
}

.center {
  justify-content: center;
  align-items: center;
}

.start {
  justify-content: flex-start;
  align-items: center;
}

.rowstart {
  justify-content: center;
  align-items: flex-start;
}

.between {
  justify-content: space-between;
  align-items: center;
}

.around {
  justify-content: space-around;
  align-items: center;
}

.end {
  justify-content: flex-end;
  align-items: center;
}

.rowend {
  justify-content: center;
  align-items: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-shrink {
  flex-shrink: 0;
}

.flex1 {
  flex: 1;
}

.g-0 {
  gap: 0px !important;
}

.g-2 {
  gap: 2px !important;
}

.g-4 {
  gap: 4px !important;
}

.g-6 {
  gap: 6px !important;
}

.g-8 {
  gap: 8px !important;
}

.g-10 {
  gap: 10px !important;
}

.g-12 {
  gap: 12px !important;
}

.g-16 {
  gap: 16px !important;
}

.g-20 {
  gap: 20px !important;
}

.g-24 {
  gap: 24px !important;
}

/* grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 16px;
}

.grid05 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
}

.grid05 .shop_list {
  margin-bottom: 8px;
}

.grid.st img {
  height: 240px;
}

.grid.st .st_wrap {
  border: 1px solid #EFEFEF;
  border-radius: 4px;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* text */
.t-12 {
  font-size: .75rem !important;
}

.t-tiny {
  font-size: 0.875rem !important;
}

.t-xsmall {
  font-size: .9375rem !important;
}

.t-small {
  font-size: 1rem !important;
}

.t-xmedium {
  font-size: 1.15rem !important;
}

.t-medium {
  font-size: 1.25rem !important;
}

.t-large {
  font-size: 1.5rem !important;
}

.t-thin {
  font-weight: 200 !important;
}

.t-normal {
  font-weight: 400 !important;
}

.t-bold {
  font-weight: 600 !important;
}

.t-extra {
  font-weight: 800 !important;
}

.t-left {
  text-align: left !important;
}

.t-center {
  text-align: center !important;
}

.t-right {
  text-align: right !important;
}

.t-underline {
  text-decoration: underline;
}

.ls-dot li {
  list-style: disc;
  list-style-position: inside;
}

.ls-none {
  list-style: none !important;
}

.lh-1_3 {
  line-height: 1.3;
}

.lh-1_4 {
  line-height: 1.4;
}

.lh-1_5 {
  line-height: 1.5;
}

.hidden, .none {
  display: none !important;
}

.req {
  height: 16px;
  line-height: normal;
  color: #EA6062;
}

.c-main {
  color: var(--color--point);
}

.c-white {
  color: white !important;
}

.c-black {
  color: #333;
}

.c-gray {
  color: #878B8D !important;
}

.color-gray-light {
  color: #c2c2c2;
}

.c-lgray {
  color: #ffffff82 !important
}

.color-dark {
  color: #50585f;
}

.c-navy {
  color: #004E86;
}

.b-gray {
  background: #f4f4f4;
}

.w-fit {
  width: fit-content !important;
}

.w100 {
  width: 100% !important;
}

.w50 {
  width: 50% !important;
}

.w30 {
  width: 30% !important;
}

.max-w-800 {
  max-width: 800px;
}

.h-auto {
  height: auto !important;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.visible {
  overflow: visible !important;
}

/* line */
.line {
  position: relative;
}

.line::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background: #e9e9ec;
}

.line.p16::after {
  width: calc(100% + 32px);
  left: -16px;
}

.line.h0_5px::after {
  transform: scaleY(.5);
}

.line.h6px::after {
  height: 6px;
}

.line.h8px::after {
  height: 8px;
}

.line.top::after {
  top: 0;
}

.line.bottom::after {
  bottom: 0;
}

.bar {
  position: relative;
  margin-left: 5px;
  padding-left: 6px;
}

.bar::before {
  content: '';
  width: 1px;
  height: 12px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background-color: #999;
}

/* button */
.btn_wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.btn_wrap.fixed {
  position: fixed;
  max-width: none;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  background: #fff;
  box-sizing: border-box;
  z-index: 1;
}

.btn_wrap.fixed::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleY(.5);
  background: #DADDE0;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32%;
  max-width: 800px;
  height: 46px;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.btn.point {
  color: #fff;
  background: var(--color--point);
}

.btn.sub {
  color: #fff;
  background: var(--color--sub);
}

.btn.border {
  color: #333;
  background: #fff;
  border: 1px solid #E8E8E8;
}

.btn.border_point {
  color: var(--color--point);
  background: #fff;
  border: 1px solid var(--color--point);
}

.btn.login {
  background: var(--color--point);
}

.btn.kakao {
  color: #333;
  background: #fee500;
}

.btn.naver_fill {
  background: #03C75A;
}

button:disabled {
  background: #c9c9c9 !important;
  pointer-events: none;
}

/* box */
.box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
}

.box.gray {
  background: #f5f5f5;
}

.box.border {
  border: 1px solid #E8E8E8;
}

.box.border.on {
  border: 1px solid var(--color--point);
}

/* form */
.form {
  width: 100%;
  margin-bottom: 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

.form .inform {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #e9e9ec;
  border-radius: 4px;
  font-size: .75rem;
  line-height: 18px;
}

.form label, .form .tos_title p {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: .875rem;
  font-weight: 700;
}

.form select, .form input:not(.option-group input, [type="checkbox"]), .form input[type="number"], .form input[type="date"], .form input[type="time"] {
  min-width: 120px;
  /* max-width: 400px; */
  height: 40px;
  /* margin-bottom: 20px; */
}

.form .tos_checkbox {
  display: flex;
  align-items: flex-start;
}

.form .tos_checkbox label {
  margin-left: 4px;
  font-weight: normal;
}

.form .coupon {
  display: flex;
  gap: 4px;
}

.form .coupon .btn {
  height: 40px;
}

.form .note {
  font-size: .75rem;
  line-height: 30px;
}

input:not(.option-group input, [type="checkbox"]), input[type="number"], input[type="date"], input[type="month"], input[type="time"], select, textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  box-sizing: border-box;
}

.form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid #e9e9ec;
  border-radius: 2px;
  appearance: none;
}

.form input[type="checkbox"]:checked {
  accent-color: var(--color--point);
  appearance: auto;
}

textarea {
  height: 100px;
  padding: 16px !important;
}

textarea::placeholder {
  font-size: 13px;
  line-height: 20px;
  color: #A6A6A6;
}

textarea.h200 {
  height: 200px !important;
}

textarea.h300 {
  height: 300px !important;
}

input:disabled, select:disabled {
  background: #eee !important;
}

.form .message_container {
  position: relative;
}

.form .message_container textarea {
  height: 200px;
}

.form .char_counter {
  position: absolute;
  right: 8px;
  bottom: 16px;
  font-size: .75rem;
  color: #939396;
}

.form select {
  background: #fff;
  border: 1px solid #ddd;
  outline: none;
}

.form textarea {
  resize: none;
  height: 80px;
}

.form>.form-box {
  margin-top: 20px;
}

.form table {
  width: 100%;
}

.form tr {
  display: block;
  margin-bottom: 16px;
}

.form th, .form td {
  display: block;
  text-align: left;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 2px;
  appearance: none;
}

input[type="checkbox"]:checked {
  accent-color: var(--color--point);
}

input[type=radio] {
  accent-color: var(--color--point);
}

.pw-info {
  font-size: 12px;
  color: #555;
  margin-top: 8px;
}

/* 말줄임 1줄 */
.ellipse_one {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
}

/* 말줄임 2줄 */
.ellipse_two {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  line-height: 1rem;
}

.scroll_x {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  overflow-x: scroll !important;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

.scroll_x::-webkit-scrollbar {
  display: none;
}

.scroll_x li * {
  white-space: normal;
}

.emptyBox {
  height: calc(100dvh - 165px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.image-upload {
  width: calc(100vw / 3 - 20px);
  height: calc(100vw / 3 - 20px);
  border: 1px dashed #ccc;
  border-radius: 10px;
  object-fit: cover;
}

.x-scroll {
  overflow-x: auto;
  white-space: nowrap;
}

.x-scroll::-webkit-scrollbar {
  display: none;
}

.toggle_wrap {
  font-size: .875rem;
}

.toggle_wrap.on .toggle_con {
  display: flex;
}

.toggle_wrap .toggle_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.toggle_wrap .toggle_header .toggle_title {
  font-weight: 600;
}

.toggle_wrap .toggle_con {
  display: none;
  flex-direction: column;
  gap: 12px;
  color: #969696;
}

.badge {
  display: inline-block;
  width: fit-content;
  height: auto;
  padding: 0 4px;
  color: #fff !important;
  font-size: .625rem;
  border-radius: 3px;
  line-height: 16px;
  flex-shrink: 0;
}

.badge.dDay {
  padding: 3px 6px;
  font-size: .75rem !important;
  font-weight: 200 !important;
  border-radius: 12px !important;
}

.badge.point {
  background-color: var(--color--point);
}

.badge.red {
  background-color: #fa393c;
}

.badge.blue {
  background-color: #91d9ff;
}

.badge.plum {
  background-color: #d7bfff;
}

.badge.mint {
  background-color: #89dbbd;
}

.badge.yellow {
  background-color: #ffd391;
}