.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cookie-consent {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 0.75rem;
  z-index: 100;
  width: min(980px, calc(100% - 1rem));
  transform: translateX(-50%);
  padding: 0.65rem 0.85rem;
  background: rgba(15, 42, 107, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.28);
  align-items: center;
  justify-content: center;
}

.cookie-consent-inner {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.8rem;
}

.cookie-consent-text {
  color: #e2e8f0;
  font-size: 0.76rem;
  line-height: 1.4;
  font-weight: 600;
  flex: 1 1 420px;
  min-width: 0;
  text-align: left;
  margin: 0;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn-accept {
  background: var(--primary, #ea580c);
  color: #fff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-weight: 900;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-btn-accept:hover {
  filter: brightness(0.85);
}

.cookie-btn-reject {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.cookie-btn-reject:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cookie-link {
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-link:hover {
  color: #fff;
}

@media (max-width: 760px) {
  .cookie-consent {
    bottom: calc(0.35rem + env(safe-area-inset-bottom));
    width: min(760px, calc(100% - 0.55rem));
    padding: 0.42rem 0.5rem;
    border-radius: 16px;
  }

  .cookie-consent-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0.32rem;
  }

  .cookie-consent-text {
    flex: none;
    margin: 0;
    font-size: 0.64rem;
    line-height: 1.18;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0.3rem;
  }

  .cookie-consent-actions > * {
    min-width: 0;
    text-align: center;
  }

  .cookie-btn-accept,
  .cookie-btn-reject,
  .cookie-link {
    min-height: 32px;
    padding: 0.28rem 0.34rem;
    font-size: 0.62rem;
    white-space: nowrap;
  }
}

@media (max-width: 340px) {
  .cookie-consent {
    width: calc(100% - 0.35rem);
    padding: 0.35rem;
  }

  .cookie-consent-text {
    font-size: 0.61rem;
  }

  .cookie-btn-accept,
  .cookie-btn-reject,
  .cookie-link {
    min-height: 30px;
    padding: 0.24rem 0.25rem;
    font-size: 0.6rem;
  }
}
