.ez-cookie-banner[hidden] {
  display: none !important;
}

.ez-cookie-banner {
  position: fixed;
  z-index: 10000;
  bottom: 20px;
  left: 50%;
  display: grid;
  width: min(700px, calc(100vw - 32px));
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px 22px;
  transform: translateX(-50%);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 14px;
  background: #142b3a;
  box-shadow: 0 14px 36px rgb(5 17 25 / 32%);
  color: #f8fafb;
  font-family: "DM Sans", "Work Sans", Arial, sans-serif;
}

.ez-cookie-banner--has-floating-whatsapp {
  bottom: 92px;
}

.ez-cookie-banner__title {
  margin: 0 0 6px;
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.ez-cookie-banner__description {
  max-width: 62ch;
  margin: 0;
  color: #d7e0e5;
  font-size: 13px;
  line-height: 1.55;
}

.ez-cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 178px;
}

.ez-cookie-banner__button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ez-cookie-banner__button--accept {
  background: #f8fafb;
  color: #142b3a;
}

.ez-cookie-banner__button--reject {
  background: #f8fafb;
  color: #142b3a;
}

.ez-cookie-banner__button--accept:hover,
.ez-cookie-banner__button--reject:hover {
  background: #e5ecef;
}

.ez-cookie-preferences {
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78em;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ez-cookie-preferences:hover {
  text-decoration-thickness: 2px;
}

.form-footer .ez-cookie-preferences {
  margin-left: auto;
  color: inherit;
}

.ez-cookie-banner__button:focus-visible,
.ez-cookie-preferences:focus-visible {
  outline: 3px solid #8ee2cd;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .ez-cookie-banner {
    bottom: 12px;
    width: calc(100vw - 24px);
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .ez-cookie-banner--has-floating-whatsapp {
    bottom: 86px;
  }

  .ez-cookie-banner__title {
    font-size: 15px;
  }

  .ez-cookie-banner__description {
    font-size: 12px;
  }

  .ez-cookie-banner__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
  }

  .ez-cookie-banner__button {
    min-height: 44px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .form-footer .ez-cookie-preferences {
    flex-basis: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ez-cookie-banner__button {
    transition: none;
  }
}
