/* ============================================================
   Chat Channel Modal — 1:1 온라인 상담 (해외 고객 대상)
   PC: LINE / WhatsApp / Instagram QR 3-up
   Mobile: 대형 핸드오프 버튼 3개
   ============================================================ */

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 16, 14, 0.45);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc-modal[aria-hidden="false"] {
  display: flex;
  opacity: 1;
}

.cc-modal__panel {
  position: relative;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 56px 56px 48px;
  box-sizing: border-box;
  box-shadow: 0 32px 80px -24px rgba(20, 16, 14, 0.35);
  transform: translateY(24px) scale(0.985);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  color: #2a2521;
}

.cc-modal[aria-hidden="false"] .cc-modal__panel {
  transform: translateY(0) scale(1);
}

.cc-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ece2d4;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2a2521;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cc-modal__close:hover {
  background: #2a2521;
  color: #ffffff;
  border-color: #2a2521;
}

.cc-modal__header {
  text-align: center;
  margin-bottom: 36px;
}

.cc-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: #aa8e7d;
  text-transform: uppercase;
}

.cc-modal__eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #aa8e7d;
  opacity: 0.7;
}

.cc-modal__heading {
  margin: 0 0 12px;
  font-family: 'Cormorant Infant', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #2a2521;
}

.cc-modal__heading em {
  font-style: italic;
  color: #aa8e7d;
  font-weight: 400;
}

.cc-modal__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #5d5247;
  font-weight: 300;
}

.cc-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Desktop QR card ─────────────────────────────────────── */

.cc-card {
  position: relative;
  background: #f6f5f0;
  border-radius: 6px;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background 0.3s ease;
  border: 1px solid transparent;
}

.cc-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: 0 20px 40px -22px rgba(20, 16, 14, 0.28);
  border-color: #ece2d4;
}

.cc-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: 'Cormorant Infant', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #aa8e7d;
}

.cc-card__brand svg {
  width: 18px;
  height: 18px;
}

.cc-card__qr {
  width: 180px;
  height: 180px;
  background: #ffffff;
  border-radius: 4px;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px #ece2d4;
}

.cc-card__qr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.cc-card__handle {
  margin: 0 0 4px;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #2a2521;
  letter-spacing: -0.01em;
}

.cc-card__hint {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: #8d7e6e;
  letter-spacing: 0;
}

/* ── Mobile direct-launch buttons ─────────────────────────── */

.cc-link {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #f6f5f0;
  border-radius: 6px;
  text-decoration: none;
  color: #2a2521;
  border: 1px solid #ece2d4;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cc-link:hover {
  background: #ffffff;
  border-color: #2a2521;
  transform: translateY(-2px);
}

.cc-link__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #2a2521;
}

.cc-link--line .cc-link__icon { background: #06C755; }
.cc-link--whatsapp .cc-link__icon { background: #25D366; }
.cc-link--instagram .cc-link__icon { background: linear-gradient(135deg, #FEDA77, #F58529 30%, #DD2A7B 60%, #8134AF 80%, #515BD4); }

.cc-link__icon svg {
  width: 22px;
  height: 22px;
}

.cc-link__text {
  flex: 1 1 auto;
  min-width: 0;
}

.cc-link__title {
  display: block;
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #2a2521;
  letter-spacing: -0.01em;
}

.cc-link__handle {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: #8d7e6e;
  letter-spacing: 0;
}

.cc-link__arrow {
  flex: 0 0 auto;
  color: #aa8e7d;
  transition: transform 0.3s ease, color 0.3s ease;
}

.cc-link:hover .cc-link__arrow {
  transform: translateX(4px);
  color: #2a2521;
}

/* ── Footer note ─────────────────────────────────────────── */

.cc-modal__note {
  margin: 32px 0 0;
  text-align: center;
  font-size: 12px;
  color: #8d7e6e;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 720px) {
  .cc-modal__panel {
    padding: 40px 24px 32px;
    max-height: 92vh;
    border-radius: 6px;
  }
  .cc-modal__header {
    margin-bottom: 28px;
  }
  /* Mobile: hide QR cards, show direct links */
  .cc-modal__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cc-card { display: none; }
  .cc-link { display: flex; }
}
