/* Cookie consent banner — bottom strip (P0).
   설계: docs/cookie_consent_design.md § 6.1.
   - 하단 고정, 폭 100%, z-index 모달보다 낮게(1040). 모달 위 가리지 않도록. */

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: #1f2937;          /* slate-800 */
  color: #f3f4f6;
  border-top: 1px solid #374151;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.5;
  animation: consent-banner-slide-up 220ms ease-out;
}

.consent-banner[hidden] { display: none; }

.consent-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.consent-banner__text {
  flex: 1 1 320px;
  min-width: 240px;
}

.consent-banner__link {
  color: #93c5fd;             /* blue-300 */
  text-decoration: underline;
  margin-left: 6px;
}
.consent-banner__link:hover { color: #bfdbfe; }

.consent-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.consent-banner__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.consent-banner__btn--reject {
  background: transparent;
  color: #f3f4f6;
  border-color: #6b7280;
}
.consent-banner__btn--reject:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #9ca3af;
}

.consent-banner__btn--accept {
  background: #3A7BFF;        /* 브랜드 royal blue (base.html 과 일치) */
  color: #fff;
  border-color: #3A7BFF;
}
.consent-banner__btn--accept:hover {
  background: #2f6ce6;
  border-color: #2f6ce6;
}

.consent-banner__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes consent-banner-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@media (max-width: 600px) {
  .consent-banner { padding: 12px 14px; }
  .consent-banner__actions { width: 100%; }
  .consent-banner__btn { flex: 1; }
}
