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

.eco-cookie-banner {
  position: fixed;
  z-index: 1050;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(39rem, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid #d6dfe8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 26px rgb(38 54 76 / 18%);
  color: #293e57;
  text-align: left;
}

.eco-cookie-banner h2 {
  margin: 0 0 6px;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1.3;
}

.eco-cookie-banner p {
  margin: 0 0 12px;
  color: #35465b;
  font-size: .94rem;
  line-height: 1.45;
}

.eco-cookie-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 0 0 12px;
  padding: 4px 12px 0;
  border: 1px solid #d6dfe8;
  border-radius: 8px;
}

.eco-cookie-options legend {
  margin: 0;
  padding: 0 5px;
  color: inherit;
  font-size: .85rem;
}

.eco-cookie-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 0;
  color: inherit;
}

.eco-cookie-options input {
  margin: 0;
  accent-color: #293e57;
}

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

.eco-cookie-banner button,
.eco-cookie-controls button {
  min-height: 44px;
  margin: 0;
  line-height: 1.2;
  font-size: .9rem;
  letter-spacing: normal;
  text-transform: none;
}

.eco-cookie-banner button {
  padding: 8px 12px;
  border: 1px solid #293e57;
  border-radius: 8px;
  background: #fff;
  color: #293e57;
  font-weight: 650;
  white-space: normal;
}

.eco-cookie-banner button[data-cookie-action="accept"] {
  background: #293e57;
  color: #fff;
}

.eco-cookie-banner button[data-cookie-action="options"],
.eco-cookie-banner button[data-cookie-action="close"] {
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eco-cookie-banner button:focus-visible,
.eco-cookie-controls button:focus-visible {
  outline: 2px solid #265590;
  outline-offset: 2px;
}

.eco-cookie-privacy {
  display: inline-block;
  min-height: 32px;
  padding-block: 6px 2px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: .85rem;
}

.eco-cookie-controls {
  text-align: center;
}

.eco-cookie-controls button {
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .eco-cookie-banner {
    padding: 15px;
  }
  .eco-cookie-banner button {
    padding-inline: 5px;
  }
}
