.ek-cookie-banner[hidden],
.ek-cookie-settings[hidden] {
  display: none !important;
}

.ek-cookie-banner {
  position: fixed;
  z-index: 900;
  inset-inline: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1060px;
  margin-inline: auto;
  padding: 18px 22px;
  color: #172925;
  background: #fff;
  border: 1px solid #d6dfd9;
  border-radius: 16px;
  box-shadow: 0 12px 45px #17292533;
  box-sizing: border-box;
}

.ek-cookie-copy h2 {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.2;
}

.ek-cookie-copy p,
.ek-cookie-copy a {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.ek-cookie-copy a,
.ek-privacy-document a {
  color: #245444;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ek-cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.ek-cookie-actions button {
  min-height: 44px;
  padding: 8px 14px;
  color: #172925;
  background: #fff;
  border: 1px solid #81958a;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.ek-cookie-actions button[data-ek-cookie-dismiss] {
  background: #fff329;
  border-color: #fff329;
}

.ek-cookie-actions button:focus-visible,
.ek-cookie-settings:focus-visible {
  outline: 2px solid #28634c;
  outline-offset: 3px;
}

.footer .ek-cookie-settings,
.ek-privacy-document .ek-cookie-settings {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ek-privacy-document {
  max-width: 850px;
}

.ek-privacy-document h2 {
  margin: 26px 0 9px;
}

.ek-privacy-document li {
  margin-bottom: 12px;
}

.ek-privacy-date {
  color: #51665e;
}

.wpcf7 form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.wpcf7 form .wpcf7-acceptance label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}

.wpcf7 form .wpcf7-acceptance label input[type="checkbox"] {
  appearance: auto;
  display: inline-block;
  position: static;
  clip: auto;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 2px 0 0;
  padding: 0;
  opacity: 1;
  accent-color: #245444;
}

.wpcf7 form .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 13px;
  line-height: 1.4;
}

.wpcf7 form .wpcf7-acceptance .wpcf7-list-item-label a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  .ek-cookie-banner {
    inset-inline: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .ek-cookie-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ek-cookie-actions button {
    padding-inline: 6px;
    font-size: 13px;
  }
}
