.cookie-banner {
  position: fixed;
  z-index: 10000;
  right: 18px;
  bottom: 18px;
  width: min(460px, calc(100% - 36px));
  padding: 20px;
  color: #182230;
  background: #fff;
  border: 1px solid #c7d0dc;
  border-top: 4px solid #1f7a6b;
  box-shadow: 0 16px 38px rgba(24, 34, 48, .22);
}

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

.cookie-banner h2,
.cookie-preferences h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.cookie-banner p,
.cookie-preferences p {
  margin: 0 0 16px;
  color: #536173;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner a {
  color: #1769aa;
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-actions button,
.cookie-settings {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #8794a5;
  border-radius: 4px;
  color: #182230;
  background: #fff;
  font: 700 14px/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.cookie-actions .cookie-accept {
  color: #fff;
  border-color: #176b5e;
  background: #176b5e;
}

.cookie-actions button:hover,
.cookie-actions button:focus-visible,
.cookie-settings:hover,
.cookie-settings:focus-visible {
  outline: 2px solid #f0a202;
  outline-offset: 2px;
}

.cookie-settings {
  position: fixed;
  z-index: 9998;
  left: 12px;
  bottom: 12px;
  min-height: 34px;
  padding: 7px 10px;
  box-shadow: 0 4px 14px rgba(24, 34, 48, .18);
}

.cookie-preferences {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 24, 32, .62);
}

.cookie-preferences-panel {
  width: min(500px, 100%);
  padding: 22px;
  color: #182230;
  background: #fff;
  border-top: 4px solid #1f7a6b;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid #d5dce5;
}

.cookie-option strong,
.cookie-option small {
  display: block;
}

.cookie-option small {
  margin-top: 4px;
  color: #667085;
  line-height: 1.4;
}

.cookie-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: #176b5e;
}

@media (max-width: 560px) {
  .cookie-banner {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 16px;
  }

  .cookie-actions {
    display: grid;
  }

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