.cookie-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  background: rgba(27, 31, 34, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  padding: 1.25rem 1.5rem;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.cookie-consent--visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent--hiding {
  transform: translateY(100%);
  opacity: 0;
}

.cookie-consent__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cookie-consent__text {
  flex: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
}

.cookie-consent__text a {
  color: #ffffff;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-consent__btn {
  min-height: 44px;
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  cursor: pointer;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-consent__btn:focus-visible,
.cookie-settings-trigger:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.cookie-consent__btn--primary {
    color: #1b1f22;
  border-color: #ffffff;
}

.cookie-consent__btn--primary:hover {
  background: rgba(255, 255, 255, 0.85);
}

.cookie-consent__btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-consent__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.cookie-settings-trigger {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 300;
}

.cookie-settings-trigger--floating {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  background: rgba(27, 31, 34, 0.9);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 0.3s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-settings-trigger--floating:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(27, 31, 34, 0.98);
}

body.cookie-banner-open .cookie-settings-trigger--floating {
  display: none;
}

.cookie-settings-trigger--footer {
  cursor: pointer;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
  color: inherit;
  font-size: inherit;
}

@media screen and (max-width: 736px) {
  .cookie-consent__inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent__actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-consent__btn {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .cookie-consent {
    padding: 1rem;
  }

  .cookie-consent__text {
    font-size: 0.85rem;
  }
}

@media print {
  .cookie-consent,
  .cookie-settings-trigger {
    display: none !important;
  }
}