/* Cookie Consent styles - matches Novum Studio style (Urbanist, rounded, subtle shadow) */
:root {
  --cookie-bg: #ffffff;
  --cookie-text: #0f172a;
  /* slate-900 */
  --cookie-muted: #475569;
  /* slate-600 */
  --cookie-border: #e5e7eb;
  /* gray-200 */
  --cookie-primary: #0263ff;
  /* brand blue start */
  --cookie-primary-2: #0066ff;
  /* brand blue */
  --cookie-accent: #ff6625;
  /* brand orange */
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  max-width: none;
  background: var(--cookie-bg);
  color: var(--cookie-text);
  border-top: 1px solid var(--cookie-border);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  /* no rounded corners */
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  z-index: 10000;
  padding: 12px 16px;
  display: none;
  font-family: Urbanist, sans-serif;
  cursor: auto;
  /* ensure cursor visible over banner */
}

.cookie-consent.show {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16.5px 24px;
  box-shadow: 0 -1px 10px 0 #acabab4d;
}

/* ensure default cursor inside banner regardless of global cursor:none */
.cookie-consent,
.cookie-consent * {
  cursor: auto;
}

.cookie-consent__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-consent__col {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-consent__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #0b1220;
}

.cookie-consent__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cookie-muted);
  margin: 0;
}

.cookie-consent__categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cookie-chip {
  border: 1px solid var(--cookie-border);
  border-radius: 12px;
  padding: 10px 12px;
}

.cookie-chip__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.cookie-chip__title {
  font-weight: 600;
  font-size: 14px;
  color: #0b1220;
}

.cookie-chip__text {
  font-size: 12px;
  color: var(--cookie-muted);
}

/* Toggle */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 26px;
}

.cookie-toggle input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-toggle__track {
  display: inline-block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #c7d2fe;
  transition: background .2s ease;
  border: 1px solid var(--cookie-border);
  vertical-align: middle;
}

.cookie-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}

.cookie-toggle input:checked+.cookie-toggle__track {
  background: linear-gradient(90deg, var(--cookie-primary), var(--cookie-primary-2));
}

.cookie-toggle input:checked+.cookie-toggle__track+.cookie-toggle__thumb {
  transform: translateX(18px);
}

.cookie-toggle input:disabled+.cookie-toggle__track {
  background: #e5e7eb;
}

/* Buttons */
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-btn {
  border: 1px solid var(--cookie-border);
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--cookie-primary);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.cookie-btn--primary {
  color: #fff;
  border: none;
  background: #0263ff;
}

.cookie-btn--ghost {
  background: transparent;
  color: #0263ff;
  border-color: #0263ff
}

.cookie-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-links a {
  color: var(--cookie-primary);
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
}

.cookie-note {
  font-size: 14px;
  color: var(--cookie-muted);
}

.cookie-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #0b1220;
}

/* Details for learn more */
.cookie-details {
  margin-top: 6px;
}

.cookie-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--cookie-primary);
}

.cookie-details p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--cookie-muted);
}

/* Revoke button */
.cookie-revoke-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  background: #fff;
  color: var(--cookie-primary);
  border: 1px solid var(--cookie-border);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  font-weight: 700;
  font-size: 13px;
}


/* Default collapsed layout like Fig.3: only brief text + buttons; reveal settings on demand */
.cookie-consent__categories,
.cookie-details {
  display: none;
}

.cookie-consent.settings .cookie-consent__categories {
  display: grid;
}

.cookie-consent.settings .cookie-details {
  display: block;
}

/* Responsive */
@media (max-width: 767px) {
  .cookie-consent__row {
    flex-direction: column;
  }



  .cookie-consent__categories {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .cookie-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Mobile overrides to match mockup */
@media (max-width: 767px) {
  #cookie-consent {
    padding: 14px 16px;
    display: block;
  }

  .cookie-title {
    font-size: 20px;
  }

  .cookie-consent__row {
    margin-top: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cookie-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cookie-actions .cookie-btn {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 10px;
  }

  #cc-accept {
    order: 1;
  }

  #cc-allow-sel {
    order: 2;
  }

  #cc-reject {
    order: 3;
  }
}