/* COTNAS Cookie Consent - Parrot Terminal Style */

.cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  display: none;
  max-width: 980px;
  margin: 0 auto;
  color: #d7ffe5;
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  border: 1px solid rgba(0, 255, 136, 0.45);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(8, 20, 24, 0.98), rgba(5, 7, 16, 0.98)),
    #05070f;
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.08),
    0 0 32px rgba(0, 255, 136, 0.18),
    0 28px 90px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.cookie-consent.is-visible {
  display: block;
}

.cookie-terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #07120f, #091a20);
  border-bottom: 1px solid rgba(0, 255, 136, 0.28);
}

.cookie-terminal-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.cookie-terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
}

.cookie-terminal-dot.red {
  background: #ff5f56;
}

.cookie-terminal-dot.yellow {
  background: #ffbd2e;
}

.cookie-terminal-dot.green {
  background: #27c93f;
}

.cookie-terminal-title {
  color: #8affc1;
  font-size: 0.84rem;
  white-space: nowrap;
  opacity: 0.95;
}

.cookie-terminal-body {
  padding: 18px 18px 16px;
  background:
    linear-gradient(rgba(255,255,255,0.018) 50%, rgba(0,0,0,0.04) 50%),
    radial-gradient(circle at top right, rgba(0, 255, 180, 0.08), transparent 34%),
    #05070f;
  background-size: 100% 4px, auto, auto;
}

.cookie-line {
  margin: 0 0 8px;
  color: #ccffdd;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-prompt {
  color: #00ff88;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.35);
}

.cookie-path {
  color: #27d9ff;
  font-weight: 700;
}

.cookie-command {
  color: #ffffff;
}

.cookie-output {
  color: #a8f7c8;
}

.cookie-warning {
  color: #ffe08a;
}

.cookie-consent a {
  color: #35d6ff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(53, 214, 255, 0.55);
}

.cookie-consent a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cookie-btn {
  appearance: none;
  border: 1px solid rgba(0, 255, 136, 0.5);
  border-radius: 9px;
  padding: 10px 14px;
  cursor: pointer;
  color: #d7ffe5;
  background: rgba(0, 255, 136, 0.07);
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: 0.18s ease;
  box-shadow: inset 0 0 18px rgba(0, 255, 136, 0.04);
}

.cookie-btn::before {
  content: "$ ";
  color: #00ff88;
}

.cookie-btn:hover {
  color: #05130b;
  background: #00ff88;
  border-color: #00ff88;
  box-shadow:
    0 0 18px rgba(0, 255, 136, 0.36),
    inset 0 0 18px rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.cookie-btn-primary {
  color: #03130b;
  border-color: #00ff88;
  background: linear-gradient(135deg, #00ff88, #27d9ff);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.22);
}

.cookie-btn-danger {
  border-color: rgba(255, 95, 86, 0.75);
  background: rgba(255, 95, 86, 0.08);
  color: #ffd1cd;
}

.cookie-btn-danger::before {
  color: #ff5f56;
}

.cookie-btn-danger:hover {
  background: #ff5f56;
  border-color: #ff5f56;
  color: #150605;
}

.cookie-panel {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(39, 217, 255, 0.25);
  box-shadow: inset 0 0 18px rgba(39, 217, 255, 0.04);
}

.cookie-panel.is-open {
  display: block;
}

.cookie-panel-title {
  margin: 0 0 12px;
  color: #27d9ff;
  font-weight: 800;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0, 255, 136, 0.18);
}

.cookie-option:last-child {
  border-bottom: 0;
}

.cookie-option strong {
  display: block;
  color: #eafff1;
  margin-bottom: 5px;
}

.cookie-option small {
  display: block;
  color: #92d6b2;
  line-height: 1.45;
}

.cookie-switch {
  width: 48px;
  height: 24px;
  accent-color: #00ff88;
  cursor: pointer;
}

.cookie-switch:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-blink {
  animation: cookieBlink 1s steps(2, start) infinite;
}

@keyframes cookieBlink {
  0%, 45% {
    opacity: 1;
  }
  46%, 100% {
    opacity: 0;
  }
}

@media (max-width: 700px) {
  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-terminal-title {
    font-size: 0.72rem;
  }

  .cookie-terminal-body {
    padding: 15px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: left;
  }

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