.cookie-banner,
.cookie-settings {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3000;
  background: rgba(255,255,255,0.98);
  color: #333;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
  padding: 22px;
  max-width: 980px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cookie-banner[hidden],
.cookie-settings[hidden],
.cookie-preferences-button[hidden] {
  display: none;
}

.cookie-banner h2,
.cookie-settings h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: #2f8f22;
}

.cookie-banner p,
.cookie-settings p {
  margin: 0 0 14px;
  line-height: 1.5;
  color: #444;
}

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

.cookie-button {
  border: 2px solid #2bd415;
  background: #fff;
  color: #2f8f22;
  border-radius: 40px;
  padding: 11px 20px;
  font-weight: 700;
  cursor: pointer;
  min-width: 150px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cookie-button:hover,
.cookie-button:focus {
  background: #eaf8e8;
}

.cookie-button.primary,
.cookie-button.reject {
  background: #2bd415;
  color: #fff;
}

.cookie-button.primary:hover,
.cookie-button.primary:focus,
.cookie-button.reject:hover,
.cookie-button.reject:focus {
  background: #25a512;
  border-color: #25a512;
}

.cookie-options {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.cookie-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fafafa;
}

.cookie-option input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

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

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

.cookie-preferences-button {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 2999;
  border: 0;
  border-radius: 40px;
  background: #2f8f22;
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.cookie-embed-placeholder {
  min-height: 260px;
  border: 1px solid #d8e8d4;
  border-radius: 12px;
  background: #f6fbf4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #444;
  box-sizing: border-box;
}

.cookie-embed-placeholder[hidden] {
  display: none;
}

.cookie-embed-placeholder p {
  margin: 0 0 14px;
  line-height: 1.5;
}

.cookie-embed-placeholder button {
  border: 0;
  border-radius: 40px;
  background: #2bd415;
  color: #fff;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .cookie-banner,
  .cookie-settings {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
    max-height: 58vh;
    overflow-y: auto;
  }

  .cookie-banner h2,
  .cookie-settings h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .cookie-banner p,
  .cookie-settings p,
  .cookie-settings label {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .cookie-actions {
    gap: 8px;
    margin-top: 12px;
  }

  .cookie-button {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
  }
}
