.faustov-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 120;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(calc(100vw - 32px), 760px);
  padding: 16px;
  color: #15372c;
  background: #f7fbf7;
  border: 1px solid rgba(35, 83, 65, 0.18);
  border-radius: 8px;
  transform: translateX(-50%);
}

.faustov-cookie-banner[hidden] {
  display: none;
}

.faustov-cookie-copy {
  min-width: 0;
}

.faustov-cookie-title {
  margin: 0 0 4px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0;
}

.faustov-cookie-text {
  margin: 0;
  max-width: 52ch;
  color: #4f665e;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
}

.faustov-cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.faustov-cookie-button {
  box-sizing: border-box;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(35, 83, 65, 0.2);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}

.faustov-cookie-button:focus-visible {
  outline: 3px solid rgba(43, 116, 88, 0.34);
  outline-offset: 2px;
}

.faustov-cookie-button-secondary {
  color: #234538;
  background: #ffffff;
}

.faustov-cookie-button-secondary:hover {
  background: #eef6f0;
}

.faustov-cookie-button-primary {
  color: #ffffff;
  background: #173f32;
  border-color: #173f32;
}

.faustov-cookie-button-primary:hover {
  background: #225443;
  border-color: #225443;
}

@media (max-width: 560px) {
  .faustov-cookie-banner {
    grid-template-columns: 1fr;
    gap: 14px;
    width: min(calc(100vw - 24px), 420px);
    bottom: 12px;
    padding: 14px;
  }

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

  .faustov-cookie-button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 10px;
  }
}
