/* base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  outline: none;
}

html,
body {
  width: 100%;
}

html {
  height: 100%;
  min-height: 100vh;
  overflow-y: scroll;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    sans-serif;
  text-transform: capitalize;
  font-size: 15px;
  font-weight: 500;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.35;
  letter-spacing: -0.7px;
  padding: 0;
  margin: 0;
  height: 100%;
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  font-size: 100%;
}

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
textarea,
p,
blockquote,
th,
td,
input,
select,
textarea,
button,
a,
span,
em,
hr {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  letter-spacing: inherit;
}

strong {
  font-weight: 800;
}

input,
select,
textarea,
button,
label {
  font-size: 100%;
  vertical-align: middle;
  cursor: pointer;
}

/* *,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
} */

hr {
  padding: 0;
  margin: 0;
  outline: 0;
  border: 0;
}

/************************************************************/
/**** input,select,textarea *********************************/

/*디자인*/
input,
select,
textarea {
  border-radius: 5px;
  color: var(--gray-800);
  border: 1px solid var(--gray-300);
  font-weight: 600;
  width: 100%;
  font-size: 16px;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    sans-serif;
}

/*스타일*/
input,
select {
  height: 56px;
  padding: 0 16px;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.3s ease;
  cursor: pointer;
  overflow: visible;
}

textarea {
  height: 150px;

  width: 100%;
  padding: 10px 16px;
  overflow: visible;
  text-align: left;
  vertical-align: middle;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  resize: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: 0;
  box-shadow: none;
}

::-webkit-input-placeholder,
textarea::placeholder {
  font-size: 14px;
  color: var(--gray-600);

  font-weight: 500;
  vertical-align: middle;
  letter-spacing: 0;
  font-weight: 400;
}

input:focus,
textarea:focus {
  color: var(--gray-800);
  border: 1px solid var(--gray-900);
  font-weight: 600;
}

/** 드롭다운 **/
.custom-select {
  position: relative;
  display: inline-block;
  width: 100%;
  font-family: inherit;
  user-select: none;

  .cs-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px !important;
    padding: 10px 14px;
    border-radius: 5px;
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.18s ease, box-shadow 0.12s ease;

    &:focus {
      outline: none;
      border-color: var(--gray-300);
    }

    .cs-value {
      color: var(--gray-900);
      font-size: 15px;
    }

    .cs-arrow {
      width: 16px;
      height: 16px;
      display: inline-block;
      background: url("../images/arrow-down.svg") no-repeat center;
      background-size: 16px 16px;
      transition: transform 0.22s ease, filter 0.22s ease;
      filter: var(--filter-gray-500);
      pointer-events: none;
    }
  }

  &[data-open="true"] .cs-arrow {
    transform: rotate(180deg);
    filter: var(--filter-gray-900);
  }

  .cs-list {
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 2px;
    padding: 6px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 5px;
    max-height: 180px;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    z-index: 40;

    & > li {
      padding: 15px 12px;
      border-radius: 4px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 15px;
      font-weight: 500;
      color: var(--gray-900);
      white-space: nowrap;
      transition: background 0.12s ease, color 0.12s ease;

      &:hover,
      &:focus {
        background: var(--gray-150);
        outline: none;
      }

      &[aria-selected="true"] {
        background: var(--primary);
        color: var(--white);
      }
    }
  }

  /* 모바일 터치 시 리스트 간격 보정 */
  @media (pointer: coarse) {
    .cs-list {
      max-height: 320px;
    }

    .cs-list li {
      padding: 14px 16px;
    }
  }
}

/***********************************/
fieldset,
img,
iframe {
  border: 0 none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}

em,
address {
  font-style: normal;
}

a {
  text-decoration: none;
  background-color: transparent;
  vertical-align: middle;
  -webkit-text-decoration-skip: objects;
  color: inherit;
  word-break: break-word;
  cursor: pointer;
}

a:hover,
a:active,
a:focus {
  text-decoration: none;
}

menu,
li {
  list-style: none;
}

button {
  font-weight: 600;
  border-radius: 6px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  letter-spacing: -0.5px;
  text-align: center;
  text-decoration: none;
  border: none;
  background: transparent;
}

button,
input {
  overflow: visible;
}

caption {
  width: 0;
  height: 0;
  font-size: 0;

  overflow: hidden;
  visibility: hidden;
}

i,
em,
address {
  font-style: normal;
}

label {
  cursor: pointer;
}

table {
  width: 100%;
  border-spacing: 0;
  border-collapse: 0;
  color: inherit;
  table-layout: fixed;
}

table td {
  word-wrap: break-word;
}

.hidden-scrollbar {
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hidden-scrollbar::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

/*체크박스*/
input[type="checkbox"] {
  display: none !important;

  + .checkBox {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;

    > span {
      display: inline-block;
      background: url("../images/checkbox-off.svg") no-repeat center;
      background-size: 100%;
      width: 24px !important;
      height: 24px !important;
      cursor: pointer;
    }

    .alltxt {
      width: 100%;
      font-size: 15px;
      font-weight: 600;
      color: var(--gray-700);
    }

    .btn-more-arrow {
      margin-left: auto;
      white-space: nowrap;
      font-weight: 500;
      font-size: 13px;
      display: flex;
      color: var(--gray-700);
    }
  }

  &:checked + .checkBox > span {
    background: url("../images/checkbox-on.svg") no-repeat center;
    background-size: 100% auto;
  }
}

/*스몰체크*/
.small-check {
  input[type="checkbox"] {
    display: none !important;

    + .checkBox {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;

      > span {
        display: inline-block;
        background: url("../images/ico-check.svg") no-repeat center;
        background-size: 100%;
        width: 16px !important;
        height: 16px !important;
        cursor: pointer;
        filter: var(--filter-gray-200);
      }

      .txt {
        font-size: 15px;
        color: var(--gray-700);

        .im {
          color: var(--secondary-tiffanyBlue);
          font-size: 12px;
        }
      }

      .btn-more-arrow {
        margin-left: auto;
        white-space: nowrap;
        font-size: 13px;
        display: flex;
        color: var(--gray-500);
        letter-spacing: -0.7px;
      }
    }

    &:checked + .checkBox > span {
      filter: var(--filter-gray-900);
    }
  }
}

select {
  border: 1px solid var(--gray200);
  background: var(--white);
  height: 52px;
  padding: 0 3px 0 14px;
  border-radius: 4px;
  cursor: pointer;
  background: url("../svg/arrow-down.svg") no-repeat right 14px center;
  background-size: 16px 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  outline: 0;
  box-shadow: none;
}

select::-ms-expand {
  display: none;
}

input[type="radio"] {
  display: none !important;

  & + .rdo-label {
    &:last-child {
      font-weight: 500;
    }

    span {
      display: inline-block;
      background: url("../images/radio-box-off.svg") no-repeat center;
      background-size: 100%;
      width: 26px;
      height: 26px;
      margin: -3px 8px 0 0;
      vertical-align: middle;
      cursor: pointer;
    }
  }

  &:checked + .rdo-label {
    span {
      background: url("../images/radio-box-on.svg") no-repeat center;
      background-size: 100%;
    }
  }
}

.radio-new {
  &::after {
    content: "";
    display: table;
    clear: both;
  }

  & input[type="radio"] {
    display: none;
  }

  & input[type="radio"] + label {
    display: inline-block;
    cursor: pointer;
    width: 100%;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    /*margin-right:10px;*/
  }

  & input[type="radio"] + label {
    color: var(--color300);
    background: 1px solid var(--gray-800);
    border-radius: 6px;
    border: 1px solid var(--gray-800);
  }

  & input[type="radio"]:checked + label {
    border: 1px solid var(--secondary-400, #e8ff59);
    background: var(--secondary-900, #2d330a);
    color: var(--secondary-500);
  }
}

.radio-new.gender {
  display: flex;
  gap: 6px;
}

/* 드롭다운,셀렉트 박스 */
.dropdown-menu {
  width: 100%;
  height: 48px !important;
  padding: 0 22px 0 10px;
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 500;
  font-family: inherit;
  background: url(../images/arrow-down-gray.svg) no-repeat 94% 50%/20px auto;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: var(--gray-400);
  border: 1px solid var(--gray-800);
  background-color: var(--gray-900);
  border-radius: 5px;
  outline: none !important;

  & option {
    font-weight: 500;
    background: var(--gray-800);
    padding: 3px 0;
    color: var(--white);
  }

  &::-ms-expand {
    display: none;
  }

  @media all and (max-width: 768px) {
    height: 42px;
  }
}

/*기본토글*/
.toggleWrap {
  display: inline-block;
}

.toggleWrap input {
  display: none;
}

.toggleWrap .toggle-Switch {
  width: 38px;
  height: 22px;
  display: block;
  position: relative;
  border-radius: 30px;
  background-color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s ease-in;
}

.toggleWrap .toggle-Switch .toggle-Button {
  width: 16px;
  height: 16px;
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--white);
  transition: all 0.2s ease-in;
}

.toggleWrap input:checked + .toggle-Switch {
  background: var(--primary);
}

/* 버튼 이동 */
.toggleWrap input:checked + .toggle-Switch .toggle-Button {
  left: calc(100% - 20px);
}

/********************************/
.width-auto {
  width: auto !important;
}
.fit-content {
  width: fit-content !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.d-flex {
  display: flex;
}

.justify-start {
  justify-content: flex-start !important;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.flex-row {
  flex-direction: row !important;
}

.flex-column {
  display: flex;
  flex-direction: column !important;
}

.d-flex-none {
  display: block !important;
}

.d-none {
  display: none !important;
}

.relative {
  position: relative !important;
}

.white {
  color: var(--white) !important;
}

.secondary-500 {
  color: var(--secondary-500);
}

/****** *******/
.plr-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.plr-25 {
  padding-left: 25px !important;
  padding-right: 25px !important;
}

.mt-0 {
  margin-top: 0px !important;
}

.mt-40 {
  margin-top: 40px !important;
}

.mt-20 {
  margin-top: 20px !important;
}

.mt-50 {
  margin-top: 50px !important;
}

.mb-10 {
  margin-bottom: 10px;
}

.pt-0 {
  padding-top: 0 !important;
}

.border-bottom-unset {
  border-bottom: unset !important;
}

.row-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

/*** end *********************************/

.pageTopWrap {
  display: flex;
  position: fixed;
  bottom: 80px;
  width: 100%;
  z-index: 2;
}

.pageTopWrap .btn-top {
  background: var(--gray700);
  width: 60px;
  height: 60px;
  border-radius: var(--radius100);
  margin-left: auto;
  margin-right: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pageTopWrap .btn-top img {
  filter: invert(95%) sepia(38%) saturate(2%) hue-rotate(214deg)
    brightness(108%) contrast(101%);
  height: 20px;
}

:root {
  --white: #fff;
  --black: #000;

  --primary: #d73227;
  --primary-gr: linear-gradient(138deg, #ffb300 0%, #e64f13 95.36%);
  --secondary-orange: #ff6d1e;
  --secondary-red: #d62a1e;
  --secondary-yellow: #fbc02d;
  --secondary-tiffanyBlue: #0abbb5;
  --secondary-blue: #7e7ef6;
  --secondary-dark: #09080d;
  --secondary-dark-blue: #151530;

  --gray-900: #1f1f25;
  --gray-800: #33333d;
  --gray-700: #5f616d;
  --gray-600: #868793;
  --gray-500: #979aa3;
  --gray-400: #b6b7be;
  --gray-300: #d9dbe0;
  --gray-200: #e7e9eb;
  --gray-150: #f1f3f8;
  --gray-100: #f7f7f8;
  --gray-50: #efeff0;

  --primary-gradient: linear-gradient(270deg, #ff9720 0%, #ff6d1e 100%);

  --filter-secondary-red: invert(27%) sepia(84%) saturate(2539%)
    hue-rotate(347deg) brightness(83%) contrast(102%);

  --filter-white: invert(97%) sepia(97%) saturate(2%) hue-rotate(82deg)
    brightness(103%) contrast(100%);
  --filter-black: invert(0%) sepia(100%) saturate(0%) hue-rotate(21deg)
    brightness(97%) contrast(103%);

  --filter-gray-900: invert(8%) sepia(7%) saturate(1453%) hue-rotate(202deg)
    brightness(96%) contrast(102%);
  --filter-gray-800: invert(14%) sepia(4%) saturate(1430%) hue-rotate(202deg)
    brightness(93%) contrast(100%);
  --filter-gray-700: invert(32%) sepia(4%) saturate(606%) hue-rotate(202deg)
    brightness(91%) contrast(89%);
  --filter-gray-600: invert(50%) sepia(4%) saturate(360%) hue-rotate(202deg)
    brightness(90%) contrast(85%);
  --filter-gray-500: invert(57%) sepia(4%) saturate(311%) hue-rotate(202deg)
    brightness(92%) contrast(85%);
  --filter-gray-400: invert(70%) sepia(4%) saturate(228%) hue-rotate(202deg)
    brightness(95%) contrast(85%);
  --filter-gray-300: invert(85%) sepia(2%) saturate(170%) hue-rotate(202deg)
    brightness(98%) contrast(85%);
  --filter-gray-200: invert(91%) sepia(2%) saturate(100%) hue-rotate(202deg)
    brightness(100%) contrast(85%);
  --filter-gray-150: invert(95%) sepia(1%) saturate(50%) hue-rotate(202deg)
    brightness(101%) contrast(85%);
  --filter-gray-100: invert(97%) sepia(0%) saturate(0%) hue-rotate(202deg)
    brightness(102%) contrast(85%);
  --filter-gray-50: invert(94%) sepia(1%) saturate(57%) hue-rotate(202deg)
    brightness(102%) contrast(85%);
  --rgb-white: 255, 255, 255;
  --rgb-black: 0, 0, 0;
  --rgb-secondary-red: 214, 42, 30;
}

/** 버튼 **/

.bottom-fix-wrap {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgb(var(--rgb-white), 70%);
  padding: 16px 20px;

  /* 위로 떠보이지 않도록 */
  z-index: 10;
}

.bwRow-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 35px 0 0;
  margin: 0 auto;

  .fit {
    width: 200px !important;
  }

  & > button {
    width: 100%;
  }
}

.button-colum-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100px !important;
  white-space: nowrap;
}

/* 버튼 사이즈 */
.bs-xl {
  height: 68px;
  font-size: 20px;
  padding: 0 30px;
  width: 100%;
  @media all and (max-width: 768px) {
    height: 56px;
    font-size: 16px;
  }
}

.bs-md {
  height: 46px;
  font-size: 16px;
  padding: 0 20px;

  @media all and (max-width: 768px) {
    height: 36px;
    font-size: 15px;
    padding: 0 16px;
  }
}

.bs-sm {
  height: 32px;
  font-size: 13px;
  padding: 0 12px;
  font-weight: 400;
  border-radius: 3px !important;
}

.bs-xsm {
  height: 24px;
  font-size: 12px;
  padding: 0 8px;
  border-radius: 3px !important;
}

/* 버튼 색상 */
.bc-primary {
  background: var(--primary);
  color: var(--white);

  &:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
  }

  /* &:hover {
    background: var(--gray-800);
  } */
}

.bc-primary-line {
  border: 1px solid var(--primary);
  background: var(--white);
  color: var(--primary);
}

.bc-black {
  background: var(--black);
  color: var(--white);
}

.bc-black-line {
  border: 1px solid var(--black);
  color: var(--black);
  background: var(--white);
}

.bc-gray-900 {
  background: var(--gray-900);
  color: var(--gray-300);
}

.bc-gray-600 {
  background: var(--gray-600);
  color: var(--gray-100);
}

.bc-gray-500 {
  background: var(--gray-500);
  color: var(--gray-100);
}

.bc-gray-300 {
  background: var(--gray-300);
  color: var(--gray-900);
}

.bc-gray-300-line {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.bc-gray-150 {
  background: var(--gray-150);
  color: var(--gray-800);
}
