.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10050;
  display: flex;
  justify-content: center;
}

.cookie-consent.hidden {
  display: none;
}

.cookie-consent-panel {
  width: min(100%, 720px);
  border: 1px solid #d8e2f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px rgba(20, 34, 56, 0.2);
  padding: 16px;
}

.cookie-consent-title {
  margin: 0 0 8px;
  font-size: 18px;
  color: #1f2f49;
}

.cookie-consent-text {
  margin: 0 0 12px;
  color: #4a5d7a;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-consent-controls {
  display: grid;
  gap: 8px;
}

.cookie-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  background: #f8fbff;
  color: #1f3555;
  font-size: 13px;
}

.cookie-check-copy {
  display: grid;
  gap: 4px;
}

.cookie-check-title {
  font-weight: 700;
}

.cookie-check-help {
  color: #5d708d;
  font-size: 12px;
  line-height: 1.45;
}

.cookie-consent-meta {
  margin: 12px 2px 0;
  color: #4a5d7a;
  font-size: 12px;
  line-height: 1.5;
}

.cookie-consent-link {
  color: #1f69d7;
  text-underline-offset: 2px;
}

.cookie-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.cookie-consent-actions button {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #d4ddeb;
  background: #fff;
  color: #2b4264;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent-actions .cookie-primary {
  border-color: #1f69d7;
  background: #1f69d7;
  color: #fff;
}

#cookie-settings-open {
  position: fixed;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 10040;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid #d5deed;
  background: rgba(255, 255, 255, 0.96);
  color: #2f486e;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(24, 39, 63, 0.14);
  cursor: pointer;
}

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

  .cookie-consent-panel {
    padding: 14px;
    border-radius: 16px;
  }

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

  .cookie-consent-actions button {
    flex: 1 1 100%;
  }
}
