/* =========================================================
   Button Component
   color: white / orange / gray
   icon: none / left / right / down / plus
   size: lg(80) / md(60) / sm(50) / xs
   state: default / hover / pressed / disabled
========================================================= */

:root {
  --btn-orange: #ff6a21;
  --btn-orange-hover: #FF8132;
  --btn-orange-pressed: #FF6200;

  --btn-white: #ffffff;
  --btn-white-hover: #FF8132;
  --btn-white-pressed: #FF6200;

  --btn-gray: #dddddd;
  --btn-gray-text: #aaaaaa;

  --btn-border: #d8d8d8;
  --btn-text: #222222;
  --btn-text-hover: #fff;
  --btn-radius: 4px;

  --btn-transition: 0.18s ease;


}

button {

  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif !important;
}


/* 기본 버튼 */
.btn-basic {
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 50px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--btn-transition),
    border-color var(--btn-transition),
    color var(--btn-transition),
    opacity var(--btn-transition);

  appearance: none;
  box-sizing: border-box;

  justify-content: space-between;
}

.btn::before,
.btn::after {
  color: currentColor;
}

.text-center {
  justify-content: center;
}


/* ==============================
   Size
============================== */

.btn--lg {
  height: 80px;
  min-width: 285px;
  padding: 0 24px;
  gap: 50px;
}

.btn--md {
  height: 60px;
  min-width: 180px;
  padding: 0 30px;
}

.btn--sm {
  height: 50px;
  min-width: 140px;
  padding: 0 24px;
  font-size: 16px;
  gap: 50px;
}

.btn--xs {
  height: 40px;
  min-width: 100px;
  padding: 0 18px;
  font-size: 16px;
}

/* 정사각형 또는 작은 버튼용 */
.btn--square-lg {
  width: 80px;
  height: 80px;
  min-width: 80px;
  padding: 0;
  text-align: center;
}

.btn--square-md {
  width: 60px;
  height: 60px;
  min-width: 60px;
  padding: 0;
}

.btn--square-sm {
  width: 50px;
  height: 50px;
  min-width: 50px;
  padding: 0;
}

/* ==============================
   Color: White
============================== */

.btn--white {
  border-color: var(--btn-gray);
  background: #fff;
  color: var(--black2);
}

.btn--white:hover {
  background: #ff7a32;
  border-color: var(--org2);
  color: #fff;
}

.btn--white:active,
.btn--white.is-pressed {
  background: var(--org2);
  border-color: #E53A06;
  color: #fff;
}


/* ==============================
   Color: Orange
============================== */


.btn--orange {
  background: #ff6a21;
  border-color: #ff6a21;
  color: #fff;
}

.btn--orange:hover {
  background: #ff7a32;
  border-color: #ff7a32;
  color: #fff;
}

.btn--orange:active,
.btn--orange.is-pressed {
  background: #ff4f00;
  border-color: #ff4f00;
  color: #fff;
}





/* ==============================
   Color: Gray  
============================== */
.btn--gray {
  border-color: var(--line1);
  background: var(--gray7);
  color: var(--black2);
}

.btn--gray:hover {
  background: #ff7a32;
  border-color: var(--org2);
  color: #fff;
}

.btn--gray:active,
.btn--gray.is-pressed {
  background: var(--org2);
  border-color: #E53A06;
  color: #fff;
}




/* ==============================
   Color: Gray / Disabled
============================== */

.btn--disabled {
  background-color: var(--btn-gray);
  border-color: var(--btn-gray);
  color: var(--btn-gray-text);
  cursor: not-allowed;
  pointer-events: none;
}

.btn:disabled::before,
.btn:disabled::after,
.btn.is-disabled::before,
.btn.is-disabled::after {
  color: var(--btn-gray-text);
}


.btn:disabled,
.btn.is-disabled {
  background: #dddddd;
  border-color: #dddddd;
  color: #aaaaaa;
}

/* ==============================
   Icon
============================== */
.btn--icon-right::after {
  content: "→";
  color: currentColor;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;

}

.btn--icon-left::before {
  content: "←";
  color: currentColor;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.btn--icon-down::after {
  content: "↓";
  color: currentColor;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.btn--icon-plus::after {
  content: "+";
  color: currentColor;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.btn--icon-down::after {
  content: "⤓";
  color: currentColor;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.icon-expand,
.icon-download {
  font-size: 18px !important;
}

.icon-expand:hover,
.icon-download:hover {
  background-color: var(--org2);
}

.icon-expand:hover .thumb-img,
.icon-download:hover .thumb-img {
  filter: invert(1);
}


/* 아이콘만 있는 버튼 */
.btn--only-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  font-size: 0;
}

.btn--only-icon::before,
.btn--only-icon::after {
  font-size: 18px;
}

.btn-search
/* ==============================
   Full Width
============================== */

.btn--full {
  width: 100%;
}

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

@media (max-width: 767px) {
  .btn {
    min-width: auto !important;
    padding: 0 20px;
    font-size: 16px;
    justify-content: center;
  }

  .btn--lg,
  .btn--md,
  .btn--sm {
    height: 50px;
  }

  .btn--lg {
    min-width: auto;
    gap: 20px;
  }

  .btn--md {

    font-size: 14px;
    font-weight: 600;
  }

  .btn--mobile-full {
    width: 100%;
  }

  .btn--square-lg,
  .btn--square-md,
  .btn--square-sm {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
}