/* 8UP Media · Cookie consent (LogiDrink-style) */
.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.cookie-consent.open { opacity: 1; pointer-events: auto; }
.cc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
}
.cc-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-body, 'Inter', sans-serif);
}
.cookie-consent.open .cc-card { transform: none; }
.cc-card-wide { max-width: 580px; }
.cc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-pale, #FFF0E6);
  color: var(--orange, #FF6500);
  margin: 0 0 16px;
}
.cc-title {
  font-family: var(--font-display, 'Jost', sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--black, #0A0A0A);
  letter-spacing: -0.02em;
}
.cc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cc-head .cc-title { margin: 0; }
.cc-back {
  background: none;
  border: 1px solid var(--border, #E8E8E8);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text, #1A1A1A);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cc-back:hover { background: var(--bg-soft, #FAFAF9); }
.cc-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted, #444);
  margin: 0 0 22px;
}
.cc-text-sm { font-size: 0.85rem; margin-bottom: 18px; }
.cc-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border, #E8E8E8);
}
.cc-row { display: flex; align-items: flex-start; gap: 16px; }
.cc-row-text { flex: 1; min-width: 0; }
.cc-row-title { font-weight: 600; font-size: 0.92rem; color: var(--text, #1A1A1A); margin-bottom: 4px; }
.cc-row-desc { font-size: 0.82rem; color: var(--text-muted, #666); line-height: 1.55; }
.cc-lock {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--orange, #FF6500);
  background: var(--orange-pale, #FFF0E6);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.cc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-slider {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cc-slider:before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.cc-switch input:checked + .cc-slider { background: var(--orange, #FF6500); }
.cc-switch input:checked + .cc-slider:before { transform: translateX(20px); }
.cc-switch.locked .cc-slider { opacity: 0.55; cursor: not-allowed; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--border, #E8E8E8);
  transition: background 0.15s ease, border-color 0.15s ease;
  line-height: 1.2;
}
.cc-btn-ghost { background: #fff; color: var(--text, #1A1A1A); }
.cc-btn-ghost:hover { background: var(--bg-soft, #FAFAF9); }
.cc-btn-primary { background: var(--orange, #FF6500); color: #fff; border-color: var(--orange, #FF6500); }
.cc-btn-primary:hover { background: var(--orange-dark, #D95400); border-color: var(--orange-dark, #D95400); }
.cc-foot { margin: 16px 0 0; font-size: 0.78rem; color: #888; text-align: center; }
.cc-foot a { color: #888; text-decoration: none; }
.cc-foot a:hover { color: var(--orange, #FF6500); text-decoration: underline; }
@media (max-width: 600px) {
  .cookie-consent { padding: 0; align-items: flex-end; }
  .cc-card { padding: 24px 20px 28px; border-radius: 20px 20px 0 0; max-width: none; }
  .cc-actions { flex-direction: column; }
  .cc-btn { width: 100%; min-width: 0; }
}
