.cookie-banner,
.cookie-modal {
  position: fixed;
  z-index: 1000;
  color: #111827;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}

.cookie-banner {
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: none;
  max-width: 960px;
  margin-inline: auto;
  padding: 16px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
}

.cookie-banner.is-visible,
.cookie-modal.is-visible {
  display: block;
}

.cookie-banner-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.cookie-banner p,
.cookie-modal p {
  margin: 0;
  color: #5b6575;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-button {
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cookie-button.primary {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
}

.cookie-button:hover,
.cookie-button:focus {
  border-color: #1d4ed8;
}

.cookie-modal {
  inset: 0;
  display: none;
  background: rgba(17, 24, 39, 0.48);
}

.cookie-modal-panel {
  width: min(100% - 32px, 620px);
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow: auto;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.cookie-modal-header,
.cookie-modal-body,
.cookie-modal-footer {
  padding: 18px;
}

.cookie-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #d8dee8;
}

.cookie-modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.cookie-close {
  width: 36px;
  height: 36px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.cookie-option {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #f5f7fa;
}

.cookie-option label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-weight: 900;
}

.cookie-option input {
  width: 20px;
  height: 20px;
}

.cookie-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #d8dee8;
}

@media (max-width: 720px) {
  .cookie-banner-content {
    grid-template-columns: 1fr;
  }

  .cookie-actions,
  .cookie-modal-footer {
    justify-content: stretch;
  }

  .cookie-button {
    flex: 1 1 auto;
  }
}
