/**
 * X-NEO Cookie Consent Banner Styles
 */
.xneo-cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9998;
  background: #0C0E14;
  color: #f8fafc;
  box-shadow: 0 -10px 40px rgba(0,0,0,.3);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2,.8,.25,1);
  border-top: 2px solid #0068B3;
}
.xneo-cookie-banner--open { transform: translateY(0); }

.xneo-cookie__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}
@media (min-width: 960px) {
  .xneo-cookie__content {
    grid-template-columns: 1fr auto;
    padding: 20px 32px;
  }
}

.xneo-cookie__title {
  font-family: var(--font-display, sans-serif);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}
.xneo-cookie__desc {
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0;
}
.xneo-cookie__desc a {
  color: #7db8ec;
  text-decoration: underline;
}

.xneo-cookie__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 599px) {
  .xneo-cookie__actions { justify-content: stretch; }
  .xneo-cookie__actions .xneo-cookie__btn { flex: 1; min-width: 0; }
}

.xneo-cookie__btn {
  padding: 10px 18px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  font-family: inherit;
}
.xneo-cookie__btn--ghost {
  background: transparent;
  color: #cbd5e1;
  border-color: rgba(255,255,255,.2);
}
.xneo-cookie__btn--ghost:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.xneo-cookie__btn--primary {
  background: linear-gradient(135deg, #0068B3, #1a3554);
  color: #fff;
  border-color: transparent;
}
.xneo-cookie__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,104,179,.4);
}
.xneo-cookie__btn:focus-visible {
  outline: 2px solid #7db8ec;
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════════ */
/* 상세 선택 모달                                                       */
/* ══════════════════════════════════════════════════════════════════ */
.xneo-cookie-detail {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.xneo-cookie-detail--open {
  opacity: 1;
  pointer-events: auto;
}

.xneo-cookie-detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12,23,41,.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.xneo-cookie-detail__card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: #fff;
  color: #0C0E14;
  border-radius: 16px;
  padding: 28px 24px 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.xneo-cookie-detail__card h3 {
  font-family: var(--font-display, sans-serif);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #0C0E14;
}
.xneo-cookie-detail__desc {
  font-size: 13px;
  line-height: 1.55;
  color: #64748B;
  margin: 0 0 20px;
}

.xneo-cookie-cat {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.xneo-cookie-cat:hover {
  border-color: #0068B3;
  background: #f0f9ff;
}
.xneo-cookie-cat input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #0068B3;
  margin-top: 1px;
  flex-shrink: 0;
}
.xneo-cookie-cat input:disabled { opacity: .5; }
.xneo-cookie-cat strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0C0E14;
  margin-bottom: 2px;
}
.xneo-cookie-cat small {
  display: block;
  font-size: 12px;
  color: #64748B;
  line-height: 1.4;
}

.xneo-cookie-detail__dnt {
  font-size: 12px;
  color: #92400e;
  background: #fff7e6;
  border-left: 3px solid #f5a623;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 12px 0;
}

.xneo-cookie-detail__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

/* 다크 모드 */
@media (prefers-color-scheme: dark) {
  .xneo-cookie-detail__card { background: #1a2638; color: #f8fafc; }
  .xneo-cookie-detail__card h3 { color: #f8fafc; }
  .xneo-cookie-detail__desc { color: #cbd5e1; }
  .xneo-cookie-cat { background: #2c3a52; border-color: #3b4a66; }
  .xneo-cookie-cat:hover { background: #344058; }
  .xneo-cookie-cat strong { color: #f8fafc; }
  .xneo-cookie-cat small { color: #94a3b8; }
  .xneo-cookie-detail__actions { border-color: #3b4a66; }
}

/* 모바일 */
@media (max-width: 480px) {
  .xneo-cookie__content { padding: 16px 18px; }
  .xneo-cookie__title { font-size: 15px; }
  .xneo-cookie__desc { font-size: 12.5px; }
  .xneo-cookie-detail__card { padding: 22px 18px 18px; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .xneo-cookie-banner, .xneo-cookie-detail, .xneo-cookie-detail__card { transition: none; }
}
