﻿/* /assets/css/footer.css */

/*
  紐⑹쟻
  - ?곹뭹?곸꽭 ???뱀젙 ?섏씠吏?먯꽌 ?명꽣 濡쒓퀬媛 ?먮낯 ?ш린濡?而ㅼ????꾩긽 諛⑹?
  - 紐⑤컮?쇱뿉??'?뚯썝?쒗깮/?ъ씤??媛?대뱶??궧' ?띿뒪?멸? 湲???⑥쐞濡??몃줈 以꾨컮轅??섎뒗 ?꾩긽 諛⑹?
  - 紐⑤뱺 ?섏씠吏?먯꽌 ?숈씪???명꽣 ?덉씠?꾩썐/??댄룷 ?좎?
*/

.site-footer{
  margin-top: 44px;
  border-top: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,0));
}

.ftr-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(160px, 1fr));
  gap: 18px;
  align-items: start;
}

.ftr-col{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* 釉뚮옖???곸뿭 */
.ftr-brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

.ftr-logo{
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}

.ftr-brand-text{
  min-width: 0;
}

.ftr-brand-text strong{
  font-size: 14px;
  letter-spacing: .2px;
}

/* 而щ읆 ??댄? */
.ftr-title{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: 2px;
  white-space: nowrap;
  word-break: keep-all;
}

/* 留곹겕 */
.site-footer a{
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  word-break: keep-all;
}

.site-footer a:hover{
  color: var(--text);
  text-decoration: underline;
}

.ftr-exchange-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ftr-exchange-logo{
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 16px;
}

.ftr-bottom{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--pad) 18px;
  border-top: 1px solid var(--line2);
  color: var(--muted);
  font-size: 12px;
}

/*
  諛섏쓳??  - 紐⑤컮?쇱뿉??而щ읆 ??씠 ?덈Т 醫곸븘??湲???⑥쐞濡?以꾨컮轅??섎뒗 ?꾩긽??留됯린 ?꾪빐
    2??1?대줈 ?꾪솚
*/
@media (max-width: 860px){
  .ftr-inner{
    grid-template-columns: 1fr 1fr;
  }
  .ftr-brand{
    grid-column: 1 / -1;
  }
}

@media (max-width: 460px){
  .ftr-inner{
    grid-template-columns: 1fr;
  }
  .ftr-brand{
    grid-column: auto;
  }
  /* 留ㅼ슦 ?묒? ?붾㈃?먯꽌 媛濡??ㅽ겕濡ㅼ씠 ?앷린吏 ?딄쾶 */
  .site-footer a,
  .ftr-title{
    white-space: normal;
  }
}



.site-footer{
  padding-bottom: var(--safe-bottom, 0px);
}

@media (max-width: 860px){
  .site-footer a{
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

/* ── 고객 채팅 버튼 (footer) ───────────────────────────────────── */
.ftr-chat-btn{
  appearance: none;
  background: none;
  border: 1px solid var(--line2, #e2e8f0);
  border-radius: 8px;
  color: var(--muted, #64748b);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 10px;
  text-align: left;
  position: relative;
  line-height: 1.35;
}
.ftr-chat-btn:hover{ color: var(--text, #1e293b); border-color: var(--text, #1e293b); }
.ftr-chat-btn.has-badge::after{
  content: attr(data-badge);
  position: absolute;
  top: -7px;
  right: -7px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ── 플로팅 채팅 위젯 ──────────────────────────────────────────── */
.sc-widget{
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  z-index: 9999;
}
.sc-widget.hidden{ display: none; }
.sc-hdr{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 16px 16px 0 0;
  background: #2563eb;
  color: #fff;
}
.sc-title{ font-size: 13px; font-weight: 700; flex: 1; }
.sc-status{ font-size: 11px; white-space: nowrap; }
.sc-close{
  appearance: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  padding: 0;
  line-height: 1;
}
.sc-msgs{
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
  max-height: 280px;
}
.sc-msg{
  display: flex;
  flex-direction: column;
  max-width: 82%;
}
.sc-msg--user{ align-self: flex-end; align-items: flex-end; }
.sc-msg--admin{ align-self: flex-start; align-items: flex-start; }
.sc-msg--bot{ align-self: flex-start; align-items: flex-start; }
.sc-msg-text{
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.sc-msg--user .sc-msg-text{ background: #2563eb; color: #fff; }
.sc-msg--admin .sc-msg-text{ background: #f1f5f9; color: #1e293b; }
.sc-msg--bot .sc-msg-text{ background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.sc-msg-label{ font-size: 10px; color: #16a34a; margin-bottom: 2px; font-weight: 600; }
.sc-msg-time{ font-size: 10px; color: #94a3b8; margin-top: 2px; }
.sc-form{
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 16px 16px;
}
.sc-input{
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
}
.sc-input:focus{ border-color: #2563eb; }
.sc-send{
  appearance: none;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
}
.sc-login-req{
  padding: 20px 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
}

/* 관리자 채팅 세션 목록 */
.sc-session-item{
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 4px;
}
.sc-session-item:hover{ background: #f1f5f9; }
.sc-session-item.is-active{ background: #dbeafe; }
.sc-session-name{
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sc-session-preview{
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
.sc-admin-badge{
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
}

@media (max-width: 460px){
  .sc-widget{
    right: 8px;
    width: calc(100vw - 16px);
    bottom: 60px;
  }
}

