@charset 'utf-8'; /* ----------------------- common ----------------------- */
/* @import url("//news.chosun.com/dhtm/css/css_reset_2018.css"); */
@import url("/membership/common/common.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap");

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.coupon-history-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  flex: 1;
  min-height: calc(100vh - 555px);
}

.coupon-top-section,
.coupon-bottom-section {
  width: 100%;
  max-width: 892px;
  margin: 0 auto;
}

.coupon-top-section-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 40px 32px;
  border-radius: 12px;
  border: 2px solid var(--Color-Black);
  background: var(--Surface-Surface-10);
  box-shadow: 0px 4px 16px 0px rgba(34, 34, 34, 0.08);
  margin: 40px 0 16px;
}

.coupon-top-section-wrapper .icon {
  width: 32px;
  height: 32px;
}

.coupon-top-section-wrapper .icon-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.coupon-top-section-wrapper .title {
  color: var(--Color-Black);
  font-family: "Noto Sans KR";
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.1px;
  margin-left: 6px;
}

.coupon-top-section-wrapper .coupon-count {
  color: var(--Color-Black);
  font-family: "Noto Sans KR";
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: -0.12px;
  margin-left: 10px;
}

.notice-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.notice-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.notice-box {
  /* padding-top: 8px; */
  /* width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center; */
}

.notice {
  color: var(--Color-Grey-80);
  font-family: "Noto Sans KR";
  font-size: 14px;
  text-align: left;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.07px;
  word-break: keep-all;
}

.coupon-top-section .notice.align {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

/* .notice:after {
  content: "• 궁금하신 사항은 고객센터로 문의해주세요.";
} */

.notice.same::after {
  content: "";
}

.notice.margin-8 {
  margin-bottom: 8px;
}

.link-move-btn {
  min-width: 78px;
  max-width: 80px;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 3px 6px 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--Color-Grey-20);
  background: var(--Surface-Surface-30);
  margin-left: 6px;
  flex-shrink: 0;
}

.link-move-btn:hover {
  text-decoration: none;
  border: 1px solid var(--Color-Black);
}

.link-move-btn:hover svg path {
  fill: var(--Color-Black);
}

.link-move-btn:hover .text {
  color: var(--Color-Black);
}

.link-move-btn .text {
  color: var(--Color-Grey-80);
  font-family: "Noto Sans KR";
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.06px;
  margin-right: 2px;
}

.arrow-icon {
  margin-left: 2px;
}

.coupon-bottom-section {
  padding-top: 64px;
}

.coupon-bottom-section .coupon-tab {
  width: 100%;
  border-bottom: 1px solid var(--Color-Black);
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 24px;
}

.coupon-bottom-section .coupon-tab .menu {
  color: var(--Color-Grey-80);
  font-family: "Noto Sans KR";
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.08px;
  padding-bottom: 12px;
  border: none;
}

.coupon-bottom-section .coupon-tab .menu:not(:last-child) {
  margin-right: 20px;
}

.coupon-bottom-section .coupon-tab .menu.active {
  color: var(--Color-Black);
  font-weight: 700;
  border-bottom: 1px solid var(--Color-Black);
  padding-bottom: 11px;
}

.coupon-bottom-section .coupon-list-section {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  /* margin: -8px; */
}

.coupon-bottom-section .coupon-list-section.hidden {
  display: none;
}

.coupon-bottom-section .coupon-list-section .item {
  width: 211px;
  height: 251px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--Color-Grey-20);
  background: var(--Surface-Surface-30);
  box-shadow: 0px 6px 10px 0px rgba(34, 34, 34, 0.04);
}

.coupon-bottom-section .coupon-list-section .item.hover {
  cursor: pointer;
}

.coupon-bottom-section .coupon-list-section .item.hover:hover {
  border: 1px solid var(--Color-Black);
}

.coupon-bottom-section .coupon-list-section .item .top-img {
  position: relative;
  width: 100%;
  height: 118px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  /* background: url("https://images.unsplash.com/photo-1742505709415-76b15647ae64?q=80&w=2148&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
    0 0 no-repeat; */
  background-size: cover;
  box-sizing: border-box;
  display: inline-block;
  flex-shrink: 0;
}

.coupon-bottom-section .coupon-list-section .item .top-img.issued::after,
.coupon-bottom-section .coupon-list-section .item .top-img.expired::after {
  position: absolute;
  width: 100%;
  height: 118px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--ETC-White-Static);
  font-family: "Noto Sans KR";
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: -0.07px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.coupon-bottom-section .coupon-list-section .item .top-img.expired::after {
  content: "기간만료";
}

.coupon-bottom-section .coupon-list-section .item .top-img.issued::after {
  content: "사용완료";
}

.coupon-bottom-section .coupon-list-section .item .bottom-box {
  width: 100%;
  height: 133px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.coupon-bottom-section .coupon-list-section .item .bottom-box .title-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.coupon-bottom-section
  .coupon-list-section
  .item
  .bottom-box
  .title-section
  .title {
  color: var(--Color-Black);
  font-family: "Noto Sans KR";
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.08px;
  margin-bottom: 4px;
  word-break: keep-all;

  /* 2줄 말줄임 처리 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coupon-bottom-section
  .coupon-list-section
  .item
  .bottom-box
  .title-section
  .title.grey-80 {
  color: var(--Color-Grey-80);
}

.coupon-bottom-section
  .coupon-list-section
  .item
  .bottom-box
  .title-section
  .date {
  color: var(--Color-Grey-80);
  font-family: "Noto Sans KR";
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.07px;
}

.coupon-bottom-section .coupon-list-section .item .bottom-box .site-name {
  color: var(--Color-Grey-80);
  font-family: "Noto Sans KR";
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: -0.07px;
  text-decoration: none;
}

.coupon-modal-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.4);
}

.coupon-modal-contents {
  position: fixed;
  width: 480px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  border-radius: 16px;
  background: var(--Surface-Surface-10);
  padding-bottom: 40px;
}

.coupon-modal-contents .btn-box {
  display: flex;
  justify-content: flex-end;
  padding: 12px 12px 12px 0;
}

.coupon-modal-contents .bottom-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 40px;
}

.coupon-modal-contents .bottom-box .top-img {
  width: 150px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
}

.coupon-modal-contents .bottom-box .top-title {
  margin: 16px 0 24px;
  color: var(--Color-Black);
  text-align: center;
  font-family: "Noto Sans KR";
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.1px;
  word-break: keep-all;
}

.coupon-modal-contents .bottom-box .grey-section {
  width: 100%;
  padding: 20px;
  border-radius: 12px;
  background: var(--ETC-G10-High);
  margin-bottom: 16px;
}

.coupon-modal-contents .bottom-box .grey-section .box {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.coupon-modal-contents .bottom-box .grey-section .box:not(:last-child) {
  margin-bottom: 10px;
}

.coupon-modal-contents .bottom-box .grey-section .box .left-title {
  width: 80px;
  color: var(--Color-Grey-80);
  font-family: "Noto Sans KR";
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.07px;
  margin-right: 8px;
}

.coupon-modal-contents .bottom-box .grey-section .box .right-title,
.coupon-modal-contents .bottom-box .grey-section .box .right-title-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--Color-Black, #222);
  text-align: left;
  font-family: "Noto Sans KR";
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.08px;
}

.coupon-modal-contents .bottom-box .grey-section .box .right-title-link {
  cursor: pointer;
  text-decoration: none;
  /* border-bottom: 1px solid var(--Color-Black); */
  /* width: 16px;
  height: 16px; */
}

.coupon-modal-contents .bottom-box .grey-section .box .right-title-link:hover {
  border-bottom: 1px solid var(--Color-Black);
}

.coupon-modal-contents .bottom-box .grey-section .box .copy-btn {
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--Color-Grey-40);
  background: var(--Surface-Surface-30);
  color: var(--Color-Red);
  font-family: "Noto Sans KR";
  font-size: 12px;
  text-align: center;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: -0.06px;
  margin-left: 8px;
}

.more-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 32px;
  border-radius: 20px;
  border: 1px solid var(--Color-Grey-40);
  background: var(--Surface-Surface-30);
  margin: 24px auto 0;
}

.more-btn .text {
  color: var(--Color-Black);
  text-align: center;
  font-family: "Noto Sans KR";
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: -0.07px;
}
.coupon-modal-contents .btn-box .btn-mobile-title {
  display: none;
}

.coupon-modal-contents .btn-box .close-btn {
  border: none;
  width: 24px;
  height: 24px;
}

.tablet-hidden {
  display: none;
}

/* 태블릿 + 모바일 공통 */
@media screen and (max-width: 985px) {
  .coupon-bottom-section .coupon-list-section {
    grid-template-columns: repeat(1, 1fr);
    margin: 0;
    gap: 0;
  }

  .coupon-top-section-wrapper .icon-wrapper {
    margin-bottom: 4px;
  }

  .coupon-top-section-wrapper .icon {
    width: 24px;
    height: 24px;
  }

  .coupon-top-section-wrapper {
    padding: 20px 24px;
    flex-direction: column;
    margin: 24px 0 16px 0;
  }

  .coupon-top-section-wrapper .title {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.08px;
    margin-left: 2px;
  }

  .coupon-top-section-wrapper .coupon-count {
    font-size: 26px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -0.13px;
    margin-left: 0;
  }

  .coupon-bottom-section .coupon-list-section .item {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--Color-Grey-20);
    margin: 0;
    padding-bottom: 16px;
    background-color: transparent;
  }

  .coupon-bottom-section .coupon-tab {
    margin-bottom: 16px;
  }

  .coupon-bottom-section .coupon-list-section .item:not(:first-child) {
    padding-top: 16px;
  }

  .coupon-bottom-section .coupon-list-section .item .top-img {
    border-radius: 8px;
    width: 96px;
    height: 96px;
    border: 1px solid var(--Color-Grey-20);
  }

  .coupon-bottom-section .coupon-list-section .item .top-img::after {
    width: 96px;
    height: 96px;
    border-radius: 8px;
  }

  .coupon-bottom-section .coupon-list-section .item .bottom-box {
    height: auto;
    padding: 0 0 0 16px;
  }

  .coupon-bottom-section .coupon-list-section .item .bottom-box .site-name {
    display: none;
  }

  .more-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 32px;
    border-radius: 20px;
    border: 1px solid var(--Color-Grey-40);
    background: var(--Surface-Surface-30);
    margin: 16px auto 0;
  }

  .coupon-bottom-section {
    padding-top: 48px;
  }

  .tablet-hidden {
    display: block;
  }

  /* .notice:after {
    content: "• 궁금하신 사항은 문의해주세요.";
  } */

  .coupon-bottom-section .coupon-list-section .item .top-img.issued::after,
  .coupon-bottom-section .coupon-list-section .item .top-img.expired::after {
    position: absolute;
    width: 96px;
    height: 96px;
    top: 50%;
    left: 50%;
  }
}

/* 태블릿 해상도만 */
@media only screen and (min-width: 690px) and (max-width: 985px) {
  .coupon-top-section,
  .coupon-bottom-section {
    max-width: 642px;
  }
}

/* 모바일 해상도만 */
@media screen and (max-width: 689px) {
  .coupon-top-section,
  .coupon-bottom-section {
    max-width: none;
    width: calc(100% - 32px);
  }

  .coupon-modal-contents .btn-box {
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--Color-Grey-40);
    background: var(--Surface-Surface-10);
    padding: 10.5px 16px;
    margin-bottom: 24px;
  }

  .coupon-modal-contents .btn-box .btn-mobile-title {
    display: block;
    color: var(--Color-Black);
    text-align: center;
    font-family: "Noto Sans KR";
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    letter-spacing: -0.09px;
  }

  .coupon-modal-contents {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
  }

  .coupon-modal-contents .bottom-box {
    padding: 0 16px;
  }

  .coupon-modal-contents .bottom-box .grey-section .box {
    flex-direction: column;
    align-items: flex-start;
  }

  .coupon-modal-contents .bottom-box .grey-section .box .left-title {
    margin-right: 0;
    margin-bottom: 6px;
  }

  .coupon-modal-contents .bottom-box .grey-section .box:not(:first-child) {
    padding-top: 12px;
  }

  .coupon-modal-contents .bottom-box .grey-section .box:not(:last-child) {
    padding-bottom: 12px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--Color-Grey-20);
  }

  .notice-box.mobile {
    flex-direction: column;
    align-items: flex-start;
  }

  .coupon-top-section .notice.align {
    display: inline-block;
  }

  .link-move-btn.margin-4 {
    margin-top: 4px;
  }

  .fake-div {
    width: 24px;
    height: 24px;
  }

  .coupon-modal-contents .btn-box .close-btn svg path {
    fill: var(--Color-Black);
  }
}

/* 다크모드 */
@media (prefers-color-scheme: dark) {
}
