/* ============================================================
   CUBE APPARELS — CONSENT BANNER STYLES

   Brand colours from the Cube Apparels guideline: ink #22303E
   background, teal #008080 accent. White on the accent is 4.77:1
   (WCAG AA); the hover state darkens rather than lightens so it
   stays above 4.5:1.
   ============================================================ */

:root {
  --cc-bg:      #22303E;
  --cc-fg:      #eef1f4;
  --cc-muted:   #9aa6b2;
  --cc-accent:  #008080;
  --cc-accent-hover: #006d6d;
  --cc-line:    rgba(255, 255, 255, 0.14);
}

#cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  background: var(--cc-bg);
  color: var(--cc-fg);
  border-top: 1px solid var(--cc-line);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.28);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: cc-rise 0.28s ease-out;
}

@keyframes cc-rise {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #cookie-consent { animation: none; }
}

.cc-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.cc-copy { flex: 1 1 380px; min-width: 0; }

.cc-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cc-text {
  margin: 0;
  color: var(--cc-muted);
  max-width: 68ch;
}

.cc-text a {
  color: var(--cc-fg);
  text-underline-offset: 2px;
}

.cc-prefs {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0 2px;
  border-top: 1px solid var(--cc-line);
}

/* display:flex above would otherwise override the hidden attribute */
.cc-prefs[hidden] { display: none; }

.cc-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--cc-muted);
  cursor: pointer;
}

.cc-row--locked { cursor: default; opacity: 0.75; }
.cc-row strong  { color: var(--cc-fg); font-weight: 600; }

.cc-row input {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--cc-accent);
  flex: none;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.cc-btn {
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cc-btn:focus-visible {
  outline: 2px solid var(--cc-fg);
  outline-offset: 2px;
}

.cc-btn--ghost {
  background: transparent;
  color: var(--cc-fg);
  border-color: var(--cc-line);
}

.cc-btn--ghost:hover { background: rgba(255, 255, 255, 0.07); }

.cc-btn--solid {
  background: var(--cc-accent);
  color: #fff;
}

.cc-btn--solid:hover { background: var(--cc-accent-hover); }

@media (max-width: 640px) {
  .cc-inner  { padding: 16px; gap: 14px; }
  .cc-actions { width: 100%; }
  .cc-btn     { flex: 1 1 auto; text-align: center; }
}
