@charset "utf-8";
/* ==========================================================================
   page.css - 페이지별 스타일
   [01] 인트로   index.html
   [02] 참여방법 guide.html
   [03] 맵       map.html
   [04] AR 스캔  scan.html
   [05] 설문     survey.html
   [06] 선물상자 gift.html
   [07] 쿠폰     coupon.html
   [08] 쿠폰함   coupons.html
   ========================================================================== */


/* ==========================================================================
   [01] 인트로 - index.html
   ========================================================================== */
.intro {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 배경 원본(750x1624)이 폭 대비 아주 세로로 길어서, 화면 비율이 그보다 낮은(짧은) 기기에서는
     cover가 세로를 잘라낸다. bottom 기준이면 위쪽부터 잘려 "AR STAMP TOUR" 글자가 통째로
     날아가므로, top 기준으로 바꿔 글자가 항상 보이게 하고 대신 하단 장식이 잘리게 한다. */
  background: url("/images/intro-scene.png") no-repeat center top / cover;
}


/* ==========================================================================
   [02] 참여방법 - guide.html
   ========================================================================== */
.guide__ttl { width: 178px; margin: 6px auto 16px; }

.guide__card {
  padding: 20px 18px; 
  background: url(/images/guide_bg.png) center top no-repeat;
  background-size: contain;
}

.steps { display: flex; flex-direction: column; }

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-5);
}
/*.step:last-child { border-bottom: 0; }*/

.step__body { flex: 1 1 auto; min-width: 0; overflow: hidden; }

.step__no {
  display: inline-block;
  padding: 3px 10px 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.step__txt {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray-2);
}
.step__txt b { color: var(--gray-1); font-weight: 600; }

.step__ico { flex: 0 0 auto; width: 54px; height: 54px; }

/* 개인정보 동의 */
.agree { 
  margin-top: 18px;

  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-7);
 }

.agree__doc {
  max-height: 90px;
  overflow-y: auto;
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--gray-6);
  font-size: 11px;
  line-height: 1.65;
  color: var(--gray-2);
  text-align: left;
}
.agree__doc strong { display: block; margin-top: 8px; color: var(--gray-1); font-weight: 600; }
.agree__doc strong:first-child { margin-top: 0; }

.guide__phone { margin-top: 22px; }

/* 연락처 : 국가번호 선택 + 번호 입력 */
.phone { display: flex; align-items: center; gap: 6px; }
.phone .field__input { flex: 1 1 auto; width: auto; min-width: 0; }

.phone__country { position: relative; flex: 0 0 auto; }

.phone__country-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 9px;
  background: var(--gray-6);
  border: 1px solid var(--gray-4);
  border-radius: 5px;
  color: var(--gray-1);
  font-size: 14px;
  white-space: nowrap;
}
.phone__country-btn::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 4px solid transparent;
  border-top-color: var(--gray-3);
  border-bottom: 0;
}
.phone__country-btn[aria-expanded="true"] { background: #E4F7C4; }
.phone__country-btn[aria-expanded="true"]::after { transform: rotate(180deg); }

.phone__flag { font-size: 17px; line-height: 1; }
.phone__dial { font-size: 13px; color: var(--gray-2); }

/* 목록 패널 : 하단 [입력완료] 버튼에 가리지 않도록 입력창 위쪽으로 펼침 */
.phone__country-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  width: min(300px, calc(100vw - 2 * var(--gutter) - 24px));
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--gray-4);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
}
.phone__country-panel[hidden] { display: none; }

.phone__country-search {
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  background: var(--gray-6);
  border: 1px solid var(--gray-4);
  border-radius: 5px;
  color: var(--gray-1);
  font-size: 16px;  /* 16px 미만이면 iOS 에서 입력 시 화면이 확대됨 */
  -webkit-appearance: none;
  appearance: none;
}
.phone__country-search::placeholder { color: var(--gray-3); font-size: 13px; }
.phone__country-search:focus { outline: 0; background: #E4F7C4; }

/* 목록 스크롤 : 약 6개 항목 높이 */
.phone__country-list {
  position: relative;  /* 선택 항목 offsetTop 기준 */
  max-height: 216px;
  margin-top: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.phone__country-list::-webkit-scrollbar { width: 6px; }
.phone__country-list::-webkit-scrollbar-thumb { background: var(--gray-4); border-radius: 3px; }

.phone__country-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.phone__country-item:active,
.phone__country-item:hover { background: var(--gray-5); }
.phone__country-item.is-selected { background: #E4F7C4; font-weight: 600; }
.phone__country-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone__country-item .phone__dial { flex: 0 0 auto; }

.phone__country-empty { padding: 14px 0 8px; font-size: 12px; color: var(--gray-3); text-align: center; }
.phone__country-empty[hidden] { display: none; }


/* ==========================================================================
   [03] 맵 - map.html
   ========================================================================== */
.map__ttl { width: 100%; max-width: 322px; margin: 4px auto 12px; }

/* 픽셀 프레임 : Layer 1(map-frame.png) 안에 STORE MAP 라벨과 스토어맵을 넣습니다.
   프레임 원본(335x400)이 화면 폭과 거의 1:1 이라 background-size:100% 100% 로도 왜곡이 없습니다. */
.map__frame {
  position: relative;
  margin-top: 100px;
  padding: 18px 16px 16px;
  background: url("/images/map-frame.png") no-repeat center top;
  background-size: 100% 100%;
}

/* STORE MAP 라벨 : 프레임 상단 중앙에 얹힘 */
.map__label { display: block; width: auto; max-width: 132px; margin: 0 auto 12px; }

.map__stage {
  position: relative;
  padding: 0;
  line-height: 0;
}
.map__stage img { width: 100%; }

/* 층 표시 배지(1F/2F) : 각 층 도면 바로 아래 중앙에 고정 표시(디자인 시안 기준). 클릭 대상 아님.
   ".map__stage img { width:100% }" 보다 우선하도록 img를 같이 명시해 우선순위를 올린다.
   1F 배지는 1F 도면과 2F 도면 사이의 좁은 틈(약 8%p)에 들어가야 해서, 처음에 14%로 뒀더니
   세로로 넘쳐 2F 도면과 겹쳐 가려지는 문제가 있었다 — 그 틈에 맞게 7%로 축소. */
.map__stage img.map__floor-badge {
  position: absolute;
  width: 11%;
  height: auto;
  transform: translate(-50%, 0);
  pointer-events: none;
}

/* 핀 : 지도 위 마커 표시(관리자 마커 에디터와 동일한 물방울 모양). 좌표(x/y percent)는 핀의 뾰족한 끝이 닿는 지점입니다. */
.hotspot {
  position: absolute;
  width: 40px; height: 40px;
  transform: translate(-50%, -100%);
  background: transparent;
  transition: transform 0.14s;
}
.hotspot:active { transform: translate(-50%, -100%) scale(0.9); }

.hotspot__pin {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #fff;
  border: 3px solid var(--ink);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.hotspot__pin-img {
  width: 76%; height: 76%;
  border-radius: 50%;
  object-fit: cover;
  transform: rotate(45deg);
}
.hotspot__pin-fallback {
  transform: rotate(45deg);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  animation: hsPulse 2.2s ease-out infinite;
}
@keyframes hsPulse {
  0%   { opacity: .9; transform: scale(0.86); }
  70%  { opacity: 0;  transform: scale(1.5); }
  100% { opacity: 0;  transform: scale(1.5); }
}

.hotspot__done {
  position: absolute;
  right: -4px; top: -4px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--ink);
  z-index: 1;
}
.hotspot__done svg { width: 10px; height: 10px; color: var(--ink); }

.hotspot.is-done::after { display: none; }
.hotspot.is-done .hotspot__done { display: flex; }

/* 체험존 등 고정 마커 : 브랜드 마커와 동일하게 레이더 펄스 + 탭 시 설명 팝업.
   is-done(완료 표시)만 안 붙음 — 지도에선 개별 완료 상태를 표시하지 않음.
   핀 배지 테두리를 형광색(#b7ff2a)으로 구분(펄스 링은 --green 자체가 이미 이 색이라 그대로 둠). */
.hotspot--static { cursor: pointer; }
.hotspot--static .hotspot__pin { border-color: #b7ff2a; }

/* Info 마커 : 설명(description)이 없는 고정 마커. 물방울/테두리/펄스 없이 이미지를 그대로 보이고 탭 동작 없음. */
.hotspot--info { width: 40px; height: 50px; cursor: default; pointer-events: none; }
.hotspot--info::after { display: none; }
.hotspot--info .hotspot__pin {
  transform: none; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible;
}
.hotspot--info .hotspot__pin-img { width: 100%; height: 100%; border-radius: 0; object-fit: contain; transform: none; }


/* ==========================================================================
   [04] AR 스캔 - scan.html
   ========================================================================== */
.scan { position: absolute; inset: 0; z-index: 1; background: #1E1E1E; }

.scan__video,
.scan__fallback {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.scan__fallback {
  display: none;
  background: linear-gradient(160deg, #4A4A4A 0%, #262626 100%);
}
.scan.is-fallback .scan__fallback { display: block; }
.scan.is-fallback .scan__video { display: none; }

/* 상단 슬롯 패널 */
.scan__top {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 14px; right: 14px;
  z-index: 5;
  padding: 16px 10px 14px;
  border-radius: 14px;
  background: rgba(60, 60, 60, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-align: center;
}

.scan__top p {
  margin-bottom: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--white);
}

.slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.slot {
  position: relative;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #9A9A9A;
  /* 체크 뱃지가 원 밖으로 살짝 나오므로 overflow 는 자르지 않습니다 */
}
.slot img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 4px;
}
.slot__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
}

.slot__lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.42);
}
.slot__lock svg { width: 22px; height: 22px; color: var(--white); }

/* 수집 완료 체크 : 시안대로 원의 우측 상단에 붙습니다 */
.slot__done {
  position: absolute;
  top: -3px; right: -3px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.slot__done i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.slot__done svg { width: 10px; height: 10px; color: var(--ink); }

.slot.is-done {
  background: var(--white);
  box-shadow: 0 0 0 3px var(--green);
}
.slot.is-done img { box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.slot.is-done .slot__lock { display: none; }
.slot.is-done .slot__done { display: flex; }

/* 스캔 프레임 */
.scan__frame {
  position: absolute;
  left: 38px; right: 30px;
  top: 46%;
  height: 265px;
  z-index: 4;
  transform: translateY(-50%);
}

.scan__frame i {
  position: absolute;
  width: 42px; height: 42px;
  border: 5px solid var(--white);
}
.scan__frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.scan__frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.scan__frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.scan__frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* 중앙 십자선 */
.scan__frame b {
  position: absolute;
  left: 50%; top: 50%;
  width: 3px; height: 26px;
  margin: -13px 0 0 -1.5px;
  background: var(--white);
}
.scan__frame b::after {
  content: "";
  position: absolute;
  left: -11.5px; top: 11.5px;
  width: 26px; height: 3px;
  background: var(--white);
}

.scan.is-scanning .scan__frame i,
.scan.is-scanning .scan__frame b,
.scan.is-scanning .scan__frame b::after { background: var(--green); border-color: var(--green); }

/* 하단 안내 */
.scan__guide {
  position: absolute;
  left: 50%;
  top: calc(46% + 145px); /* 스캔 프레임(중심 46%, 높이 265px) 바로 아래 — 프레임 밖 */
  z-index: 8; /* 장바구니(6)·pickfx(7)보다 위 — 겹치면 문구가 장바구니를 덮는다 */
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(35, 35, 35, 0.9);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}
.scan__guide svg { width: 15px; height: 15px; }

/* MAP 버튼 */
.scan__map {
  position: absolute;
  right: 22px;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.scan__map svg { width: 20px; height: 20px; }


/* --------------------------------------------------------------------------
   장바구니 아이콘 : 카메라 화면 하단에 항상 고정 표시되며, 드래그로 담기의 목표 지점입니다.
   -------------------------------------------------------------------------- */
.scan__cart {
  position: absolute;
  left: 50%; bottom: -40px; /* 아래쪽이 살짝 잘리도록 내림 */
  z-index: 6;
  width: 190px; height: 190px;
  margin-left: -95px;
  pointer-events: none;
}
.scan__cart-img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4));
}
.scan__cart.is-bump { animation: cartBump .36s ease; }

@keyframes cartBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.22); }
  65%  { transform: scale(.94); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   스캔 성공 연출 : 대표상품 이미지를 손가락(마우스)으로 잡아 위 장바구니로 끌어다 놓으면
   쏙 빨려들어가며 수집됩니다. 위치 계산/이동은 scan.js 가 transform 으로 직접 제어합니다.
   -------------------------------------------------------------------------- */
.pickfx {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: none;
  pointer-events: none;
}
.pickfx.is-show { display: block; }

.pickfx__item {
  position: absolute;
  left: 50%; top: 42%;
  width: 168px;
  object-fit: contain;
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .4));
  transform: translate(-50%, -50%);
}
.pickfx__item.is-dragging {
  cursor: grabbing;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5));
}

/* 브랜드 팝업 */
.bmodal__ttl { width: 74%; margin: 0 auto 12px; }

.bmodal__name {  
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.bmodal__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-2);
}

.bmodal__pd {
  --px: 8px;
  width: 78%;
  background: var(--white);
  margin: 18px auto 4px;
  clip-path: polygon(
    var(--px) 0, calc(100% - var(--px)) 0,
    100% var(--px), 100% calc(100% - var(--px)),
    calc(100% - var(--px)) 100%, var(--px) 100%,
    0 calc(100% - var(--px)), 0 var(--px)
  );
}

/* 수집완료 팝업 */
.dmodal__ttl { width: 62%; margin: 0 auto 14px; }
.dmodal__txt { font-size: 14px; font-weight: 600; line-height: 1.6; }
.dmodal__char { display: block; width: 88%; margin: 6px auto 0; }


/* ==========================================================================
   [05] 설문 - survey.html
   ========================================================================== */
.survey__ttl { width: 100%; max-width: 322px; margin: 4px auto 12px; }

.survey__card {
  margin-top: 18px;
  padding: 22px 20px;
  text-align: left;
  /* 시안과 동일하게 카드 안에서만 스크롤됩니다 */
  max-height: calc(var(--vh) * 44);
  min-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 미수집 상태로 들어왔을 때의 안내 */
.survey__notice {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #FFD9A0;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

.qs { padding: 18px 0; border-bottom: 1px solid var(--gray-5); }
.qs:first-child { padding-top: 0; }
.qs:last-child { border-bottom: 0; padding-bottom: 0; }

.chips--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.chips--grid .chip { min-width: 0; padding: 0 6px; }

.qs__q {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-1);
}


/* ==========================================================================
   [06] 선물상자 - gift.html
   ========================================================================== */
.gift__ttl { width: 100%; max-width: 280px; margin: 4px auto 0; }

.gift__card {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  aspect-ratio: 331 / 380;
}

.gift__box {
  width: 48%;
  cursor: pointer;
  animation: giftIdle 2.4s ease-in-out infinite;
}
@keyframes giftIdle {
  0%, 58%, 100% { transform: rotate(0) translateY(0); }
  64% { transform: rotate(-5deg) translateY(-6px); }
  72% { transform: rotate(5deg)  translateY(-6px); }
  80% { transform: rotate(-3deg) translateY(-2px); }
  88% { transform: rotate(3deg)  translateY(0); }
}

.gift__box.is-open { animation: giftOpen 0.65s cubic-bezier(.3,1.5,.5,1) forwards; }
@keyframes giftOpen {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.16) translateY(-14px); }
  100% { transform: scale(0.85); opacity: 0; }
}

.gift__hint { margin-top: 14px; }


/* ==========================================================================
   [07] 쿠폰 - coupon.html
   ========================================================================== */
.coupon { 
  /*padding: 22px 20px 24px; */
  padding: 30px;
  text-align: center; 
}

/* 상단 금액권 */
.cp-voucher {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 128px;
  background: var(--green);
  text-align: left;
}

.cp-voucher__main { flex: 1 1 auto; padding: 18px 18px 0; }
.cp-voucher__stub {
  flex: 0 0 62px;
  border-left: 2px dashed rgba(0, 0, 0, 0.35);
}

.cp-voucher__brand { font-size: 11.5px; font-weight: 700; color: var(--gray-1); }
.cp-voucher__amt   { margin-top: 8px; font-size: 34px; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); }
.cp-voucher__note  { margin-top: 8px; font-size: 10px; font-weight: 700; color: var(--gray-1); }

/* 실물 상품형 쿠폰 이미지 */
.cp-photo { width: 62%; margin: 0 auto; }

.cp__name   { margin-top: 18px; font-size: 20px; font-weight: 900; color: var(--gray-1); }
.cp__date   { margin-top: 8px; font-size: 13px; color: var(--gray-3); }

.cp__code { margin-top: 18px; }

.barcode {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 54px;
}
.barcode i { width: 2px; height: 100%; background: #111; }
.barcode i.w2 { width: 5px; }
.barcode i.w3 { width: 7px; }

.cp__num {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray-2);
}

/* 유의사항 */
.cp-notice {
  /*margin-top: 14px;*/
  border-top: 1px dashed var(--gray-4);
  padding: 18px 20px;
  text-align: left;
}
.cp-notice__ttl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-1);
}
.cp-notice__ttl svg { width: 15px; height: 15px; }
.cp-notice ul { margin-top: 12px; }
.cp-notice li {
  position: relative;
  padding-left: 12px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--gray-2);
}
.cp-notice li::before { content: "–"; position: absolute; left: 0; }

/* 사용완료 오버레이 */
.cp-used {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 24%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
}
.cp-used svg { width: 44px; height: 44px; }
.cp-used b { margin-top: 12px; font-size: 22px; font-weight: 900; }
.cp-used span { margin-top: 6px; font-size: 14px; }

.cp-wrap { position: relative; }
.cp-wrap.is-used .cp-used { display: flex; }


/* ==========================================================================
   [08] 쿠폰함 - coupons.html
   ========================================================================== */
.cbox { padding: 22px 0 0; min-height: 420px; }

.cbox__ttl {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-5);
  font-size: 18px;
  font-weight: 900;
  color: var(--gray-1);
  text-align: center;
}

.cbox__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px;
}

.cbox__tab {
  min-width: 108px;
  height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-1);
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.14s;
}
.cbox__tab.is-on { background: var(--ink); color: var(--white); }

.cbox__list { padding: 0 0 24px; }

.citem {
  display: flex;
  align-items: center;
  gap: 12px;  
  padding: 14px 20px;
  background: var(--gray-6);
  border-top: 1px dashed var(--gray-4);
}
.citem:first-child { border-top: 0; }

.citem__thumb {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  border: 1px solid var(--gray-5);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}
.citem__thumb img { width: 100%; height: 100%; object-fit: contain; }

.citem__body { flex: 1 1 auto; min-width: 0; }
.citem__brand { display: block; font-size: 15px; font-weight: 600; color: var(--gray-1); }
.citem__name  { display: block; margin-top: 3px; font-size: 12.5px; color: var(--gray-2); }
.citem__date  { display: block; margin-top: 6px; font-size: 11.5px; color: var(--gray-3); }

.citem__state {
  flex: 0 0 auto;
  align-self: center;
  padding: 0px 15px;
  border: 1px solid var(--gray-1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-2);
}
.citem.is-used .citem__thumb img { filter: grayscale(1) opacity(0.7); }
.citem.is-used .citem__state { border: 1px solid var(--ink); background: var(--ink); color: var(--white); }

.cbox__empty {
  padding: 70px 20px;
  font-size: 13.5px;
  color: var(--gray-3);
  text-align: center;
}
