.cookie-consent-banner,
.cookie-consent-panel,
.cookie-consent-preferences {
  font-family: "Open Sans", Arial, sans-serif;
  color: #1f2933;
  box-sizing: border-box;
}

.cookie-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #cfd7df;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  padding: 18px;
}

.cookie-consent-banner h2,
.cookie-consent-panel h2 {
  margin: 0 0 8px 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.cookie-consent-banner p,
.cookie-consent-panel p {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cookie-consent-button {
  border: 1px solid #9aa6b2;
  background: #ffffff;
  color: #1f2933;
  min-height: 40px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent-button:focus,
.cookie-consent-preferences:focus {
  outline: 3px solid #7cc7ff;
  outline-offset: 2px;
}

.cookie-consent-button-primary {
  border-color: #126b33;
  background: #16813d;
  color: #ffffff;
}

.cookie-consent-button-secondary {
  border-color: #35506a;
  background: #35506a;
  color: #ffffff;
}

.cookie-consent-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #354052;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cookie-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.55);
  padding: 16px;
}

.cookie-consent-panel {
  width: min(760px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #ffffff;
  border: 1px solid #cfd7df;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
  padding: 20px;
}

.cookie-consent-category {
  border: 1px solid #d8dee6;
  padding: 12px;
  margin: 10px 0;
}

.cookie-consent-category label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  cursor: pointer;
}

.cookie-consent-category input {
  margin-top: 3px;
}

.cookie-consent-category strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-consent-category span {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #52606d;
}

.cookie-consent-preferences {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 99998;
  border: 1px solid #35506a;
  background: #ffffff;
  color: #1f2933;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.cookie-consent-link {
  color: #0b63a5;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .cookie-consent-banner {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 14px;
  }

  .cookie-consent-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-button {
    width: 100%;
  }

  .cookie-consent-preferences {
    left: 8px;
    bottom: 8px;
    max-width: calc(100vw - 16px);
  }
}
