#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(28, 43, 42, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(42, 77, 71, 0.2);
  padding: 20px 0;
  animation: cbSlideUp 0.4s ease-out;
}

@keyframes cbSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cb-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cb-text {
  flex: 1;
  min-width: 280px;
}

.cb-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #EFE9DA;
  margin: 0;
}

.cb-text a {
  color: #E8A593;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cb-text a:hover {
  color: #fff;
}

.cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cb-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cb-decline {
  background: rgba(255, 255, 255, 0.06);
  color: #EFE9DA;
  border: 1px solid rgba(204, 250, 246, 0.28);
}

.cb-decline:hover {
  color: #fff;
  border-color: rgba(204, 250, 246, 0.5);
}

.cb-essential {
  background: rgba(255, 255, 255, 0.1);
  color: #EFE9DA;
  border: 1px solid rgba(204, 250, 246, 0.2);
}

.cb-essential:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cb-accept {
  background: linear-gradient(180deg, #356B62 0%, #2A4D47 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(42, 77, 71, 0.3);
}

.cb-accept:hover {
  background: linear-gradient(180deg, #233F39 0%, #1C332D 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(42, 77, 71, 0.4);
}

@media (max-width: 640px) {
  /* Floating card instead of a full-width slab, so it covers less of a phone screen */
  #cookie-banner {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 12px 0;
    border-radius: 16px;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 12px 32px rgba(20, 18, 14, 0.28);
  }

  .cb-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 16px;
  }

  .cb-text p {
    font-size: 12px;
    line-height: 1.45;
  }

  .cb-actions {
    justify-content: stretch;
    gap: 8px;
  }

  .cb-btn {
    flex: 1;
    text-align: center;
    font-size: 12.5px;
    padding: 8px 8px;
    min-height: 38px;
    white-space: nowrap;
  }
}

/* Phones: the floating card is liquid glass (frosted cream), not a dark slab */
@media (max-width: 640px) {
  #cookie-banner {
    background: rgba(251, 247, 238, 0.55);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 18px 40px -16px rgba(20, 18, 14, 0.4), 0 2px 8px rgba(20, 18, 14, 0.08);
  }
  .cb-text p { color: #413C33; }
  .cb-text a { color: #2A4D47; }
  .cb-text a:hover { color: #14120E; }
  .cb-decline, .cb-essential {
    background: rgba(255, 255, 255, 0.5);
    color: #14120E;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
  .cb-decline:hover, .cb-essential:hover { color: #14120E; background: rgba(255, 255, 255, 0.7); }
  .cb-btn { min-height: 40px; }
}
