.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 20px;
  background: #303030;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner__text {
  margin: 0;
}

.cookie-banner__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cookie-banner button,
.cookie-modal button {
  min-height: 32px;
  padding: 6px 18px;
  border: 0;
  border-radius: 0;
  background: #3fa64a;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.cookie-banner button:hover,
.cookie-modal button:hover {
  background: #348d3d;
}

.cookie-banner .reject-button,
.cookie-modal .reject-button {
  background: #3fa64a;
}

.cookie-banner .handle-button,
.cookie-modal .handle-button {
  background: #3fa64a;
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 1201;
  display: none;
  background: rgba(0, 0, 0, 0.45);
}

.cookie-overlay.is-visible {
  display: block;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1202;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-modal.is-visible {
  display: flex;
}

.cookie-modal__content {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  background: #fff;
  color: #222;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.cookie-modal__close {
  float: right;
  min-width: 32px;
  padding: 0;
  background: transparent;
  color: #333;
  font-size: 28px;
  line-height: 1;
}

.cookie-modal__close:hover {
  background: transparent;
  color: #00843d;
}

.cookie-modal h2 {
  margin: 0 42px 14px 0;
  font-size: 24px;
  line-height: 1.25;
}

.cookie-modal p {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
}

.cookie-category {
  margin: 0 0 18px;
  padding-top: 2px;
}

.cookie-category label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-weight: 600;
}

.cookie-category input {
  width: 16px;
  height: 16px;
  accent-color: #00843d;
}

.cookie-description {
  margin-top: 8px;
}

.cookie-settings-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

@media (max-width: 768px) {
  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 14px;
    font-size: 14px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner button {
    flex: 1 1 auto;
    min-width: 92px;
  }

  .cookie-modal {
    padding: 14px;
  }

  .cookie-modal__content {
    padding: 20px;
  }
}
