@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
/* The following line is used to measure usage of this code. You can remove it if you want. */
@import url("https://px.animaapp.com/66ce99b67de33fa4664dc9d1.66ce99b77de33fa4664dc9d4.HTJG1Hn.hcp.png");

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

* {
  box-sizing: border-box;
}
body {
  /* height: 100vh; */
}
.body__content {
  align-items: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 536px;
  position: relative;
  padding: 16px;
  top: 56px;
  margin-bottom: 128px;
}

.header {
  border-bottom-style: solid;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  /* position: relative; */
  position: fixed;
  width: 100%;
  height: 48px;
  background-color: var(--black);
  justify-content: center;
  z-index: 10;
}
.header__text {
  align-content: center;
  color: var(--white);
  position: absolute;
  font-size: 1.25rem;
  pointer-events: none;
  height: 48px;
  right: 8px;
}

.menu-btn {
  align-content: center;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  height: 56px;
  width: 56px;
  position: absolute;
  padding: 0 16px;
}
.menu {
  position: absolute;
  top: 47px;
  left: 0px;
  background-color: var(--black);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 16px 0;
  width: 40%;
  overflow: hidden;
  z-index: 1000;
  display: grid;
  transition: height 0.3s;
  max-width: 288px;
}

.menu a {
  padding: 12px 16px;
  text-decoration: none;
  color: var(--white);
  display: grid;
  font-size: 1rem;
}

/* 메뉴 항목의 호버 스타일 */
.menu a:hover {
  background-color: #d4d4d4;
  color: var(--black);
}

.menu__list {
  position: relative;
  width: 142px;
  background-color: var(--white);

  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.menu__language {
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  height: 40px;
  border: 1px solid var(--gray-light);
}
.menu__language:hover {
  background-color: var(--mine-shaft);
  color: var(--white);
}

.button__item {
  display: grid;
  align-content: center;
  align-items: center;
  border: 1px solid;
  border-color: var(--gray-light);
  border-radius: 40px;
  justify-content: center;
  position: relative;
  box-shadow: var(--gray-shadow) 2px 6px 3px;
  color: var(--white);
  font-size: 1rem;
  text-align: center;
  width: 100%;
  height: 40px;
  min-height: 40px;
  cursor: pointer;
}
.button__item.mypage {
  width: 40%;
  justify-self: center;
}
.button__item--white {
  background-color: var(--white);
  color: var(--mine-shaft);
}
.button__item--black {
  background-color: var(--black);
}
.button__item--red {
  background-color: var(--red);
}
.button__item--blue {
  background-color: var(--blue);
}
.button__item--green {
  background-color: var(--green);
}
.button__item--yellow {
  background-color: var(--yellow);
}
.button__item--pink {
  background-color: var(--pink);
}
/* 쿠폰 등록 내역 테이블 스타일 */
.history {
  font-family: Arial, sans-serif;
  justify-self: center;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 560px;
}

.history--mypage {
  height: 600px;
}

.history__table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--black);
}
.history__head {
  border-bottom: 2px solid #333;
}
.history__tr {
  background-color: var(--gray-light);
  height: 40px;
}
.history__text {
  padding: 8px;
  text-align: center;
  font-size: 0.75rem;
  align-content: center;
}
.history__subject {
  background-color: var(--gray-light);
}

.history__list {
  border-bottom: 1px solid var(--black);
  height: 40px;
}
.history__list--light {
  border-top: 1px solid var(--gray-light);
  height: 40px;
}
.history__delete {
  background-color: var(--red);
}
/* pagination */
.pagination {
  display: flex;
  /* gap: 5px; */
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.pagination a {
  padding: 8px 12px;
  text-decoration: none;
  color: #007bff;
  /* border: 1px solid #ddd; */
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination a:hover {
  background-color: #e9ecef;
}

.pagination .active {
  background-color: #007bff;
  color: white;
  border: 1px solid #007bff;
}
.current-page {
  background-color: #007bff;
  color: white;
  border: 1px solid #007bff;
  margin: 8px;
}

.button__group {
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 80%;
  margin: 8px;
}
.button__group.popup {
  width: 100%;
}
.button__group button {
  flex: 1;
  width: auto;
}
.text__subtitle {
  text-align: center;
  margin: 8px;
  font-size: 1.5rem;
}
.text__normal {
  text-align: center;
  margin: 16px;
  max-width: 320px;
  font-size: 1rem;
  line-height: 1.5;
}
.text__long {
  align-self: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
  margin-bottom: 8px;
}
.input__container {
  display: grid;
  width: 80%;
  margin: 16px;
}
.text__label {
  margin-bottom: 5px;
  font-size: 1rem;
  color: var(--black);
}

.input__coupon {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  margin: 0 auto;
  display: block;
}
.pointer {
  cursor: pointer;
}
.arrow-disabled {
  pointer-events: none;
  /* color: #5c5c5c; */
  opacity: 0;
}
.text__mypage {
  text-align: center;
  margin: 16px;
}
.text__mypage--email {
  font-size: 1.25rem;
}
.text__mypage--history {
  font-size: 1.5rem;
}

/* 등록 팝업 오버레이 */
.popup__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup__frame {
  background: var(--white);
  padding: 20px;
  border: 4px solid var(--black);
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1010;
  display: flex;
  flex-direction: column;
}

.select__coupon {
  width: 100%;
  height: 32px;
}

.popup__dropdown {
  display: grid;
  margin-bottom: 16px;
}
.spacer--16 {
  height: 16px;
  min-height: 16px;
  width: 1px;
}
.spacer--80 {
  height: 80px;
  min-height: 80px;
  width: 1px;
}

/* Infield Top Aligned Form label */
.ifta-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.ifta-wrapper input,
.ifta-wrapper textarea {
  width: 100%;
  padding: 24px 12px 8px;
  font-size: 1rem;
  /* border: 1px solid #ccc; */
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  background-color: var(--white);
}

.ifta-wrapper label {
  position: absolute;
  top: 6px;
  left: 12px;
  font-size: 0.8rem;
  color: var(--gray);
  pointer-events: none;
  transition: all 0.2s ease-out;
}

/* 포커스나 값이 있으면 강조 */
/* .ifta-wrapper input:focus + label, */
.ifta-wrapper input:not(:placeholder-shown) + label,
.ifta-wrapper input:valid + label,
/* .ifta-wrapper textarea:focus + label, */
.ifta-wrapper textarea:not(:placeholder-shown) + label,
.ifta-wrapper textarea:valid + label {
  color: var(--blue);
}

/* 빨간색 경고 클래스 */
label.input-error {
  color: var(--red);
  /* transition: color 0.5s ease; */
}

.color--blue {
  color: var(--blue);
}
#confirmText:disabled {
  background-color: var(--gray);
  cursor: not-allowed;
}
.transfer__nickname {
  font-size: 1rem;
  display: flex;
  gap: 8px;
  margin: 0 8px 16px 8px;
}
.transfer__select {
  font-size: 1rem;
  margin: 0 8px 16px 8px;
  height: 32px;
}
.transfer__select:disabled {
  background-color: var(--white);
  color: var(--black);
  font-weight: 600;
}

.transfer__option {
  font-size: 1rem;
}
.transfer__message {
  font-size: 1rem;
  margin: 0 8px 16px 8px;
  text-align: center;
}

.history__setting-row td {
  background-color: var(--gray-lightest);
  padding: 8px;
  border-top: 1px solid var(--gray-light);
}
.setting__container {
  padding: 8px 8px;
  display: flex;
  justify-content: space-between;
  background-color: var(--gray-lightest);
}
.setting__toggle {
  font-size: 0.9rem;
  padding: 4px 10px;
  cursor: pointer;
  border: 1px solid var(--gray);
  border-radius: 8px;
  background-color: var(--white);
  color: var(--black);
}
/* .setting__toggle.active {
background-color: var(--black);
color: var(--white);
} */
.setting__input-div {
  display: flex;
  flex-direction: column;
  width: 70%;
  gap: 8px;
}
.setting__button-div {
  display: flex;
  align-items: end;
  gap: 8px;
}
.setting__input--url {
  font-size: 1rem;
}
.setting__button--url {
  width: 32px;
  height: 32px;
  object-fit: contain;
  cursor: pointer;
}

.footer {
      position: fixed;
    display: flex
;
    background-color: var(--black);
    bottom: 0;
    left: 0;
    width: 100%;
  padding: 12px 16px;
  text-align: center;
}
.footer__nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.footer__link {
  text-decoration: none;
  color: var(--white);
}
.footer__divider {
  opacity: 0.6;
}

.toast {
  pointer-events: none;
  /* visibility: hidden; */
  min-width: 200px;
  margin-left: -100px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 12px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  right: 50%;
  bottom: 60px;
  font-size: 14px;
  opacity: 0;  
  line-height: 1.5;
  transition: opacity 0.5s, bottom 0.5s;
}
.toast.show {
  /* visibility: visible; */
  opacity: 1;
  bottom: 80px;
}

.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}
