.emae-consent-banner {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd9dc;
  border-radius: 12px;
  bottom: 0.75rem;
  box-shadow: 0 12px 34px rgba(12, 31, 40, 0.16);
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr) auto;
  left: max(0.75rem, calc((100vw - 1040px) / 2));
  max-width: min(1040px, calc(100vw - 1.5rem));
  padding: 0.8rem 1rem;
  position: fixed;
  right: max(0.75rem, calc((100vw - 1040px) / 2));
  z-index: 99990;
}
.emae-consent-banner[hidden],
.emae-consent-dialog[hidden] {
  display: none;
}

.emae-consent-banner h2,
.emae-consent-dialog h2,
.emae-consent-category h3 {
  color: #0c1f28;
  margin: 0;
}

.emae-consent-banner h2 {
  font-size: 1.05rem;
  line-height: 1.25;
}

.emae-consent-banner p {
  color: #40545c;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0.2rem 0 0;
  max-width: 62rem;
}

.emae-consent-banner a,
.emae-consent-dialog a {
  color: #006f76;
  font-weight: 700;
}

.emae-consent-banner a {
  font-size: inherit;
  text-decoration: underline;
}

.emae-consent-actions,
.emae-consent-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.emae-consent-button {
  background: #ffffff;
  border: 2px solid #006f76;
  border-radius: 7px;
  color: #0c1f28;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 2.55rem;
  min-width: 6.6rem;
  padding: 0.5rem 0.8rem;
}

.emae-consent-button:hover,
.emae-consent-button:focus-visible {
  background: #eaf4f4;
  outline: 3px solid rgba(0, 111, 118, 0.22);
  outline-offset: 2px;
}

.emae-consent-dialog {
  inset: 0;
  position: fixed;
  z-index: 99999;
}

.emae-consent-dialog__backdrop {
  background: rgba(12, 31, 40, 0.64);
  inset: 0;
  position: absolute;
}

.emae-consent-dialog__panel {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(12, 31, 40, 0.28);
  left: 50%;
  max-height: calc(100vh - 2rem);
  max-width: min(42rem, calc(100vw - 2rem));
  overflow-y: auto;
  padding: clamp(1.35rem, 4vw, 2.25rem);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.emae-consent-dialog__close {
  align-items: center;
  background: #eef4f5;
  border: 0;
  border-radius: 50%;
  color: #0c1f28;
  cursor: pointer;
  display: flex;
  font-size: 1.4rem;
  height: 2.4rem;
  justify-content: center;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.4rem;
}

.emae-consent-eyebrow {
  color: #007f86;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.emae-consent-category {
  align-items: center;
  border-top: 1px solid #dce5e7;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 1rem;
  padding-top: 1rem;
}

.emae-consent-category h3 {
  font-size: 1rem;
}

.emae-consent-category p,
.emae-consent-dialog__links {
  color: #53666d;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0.25rem 0 0;
}

.emae-consent-toggle {
  align-items: center;
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 0.5rem;
}

.emae-consent-toggle input {
  accent-color: #007f86;
  height: 1.2rem;
  width: 1.2rem;
}

.emae-consent-dialog__links {
  margin-block: 1.25rem;
}

body.emae-consent-open {
  overflow: hidden;
}

.emae-cookie-settings-link {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

@media (max-width: 800px) {
  .emae-consent-banner {
    grid-template-columns: 1fr;
  }

  .emae-consent-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .emae-consent-dialog__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .emae-consent-actions .emae-consent-button {
    min-width: 0;
    padding-inline: 0.35rem;
  }

  .emae-consent-dialog__actions .emae-consent-button {
    width: 100%;
  }

  .emae-consent-category {
    align-items: start;
    grid-template-columns: 1fr;
  }
}
