.eca-cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 9997;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
  pointer-events: none;
}

.eca-cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.eca-cookie-consent__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(1100px, 100%);
  padding: 18px;
  border: 1px solid rgba(209, 226, 242, 0.96);
  border-radius: 8px;
  color: #07233f;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 48px rgba(7, 32, 61, 0.2);
}

.eca-cookie-consent__close {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #52677f;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.eca-cookie-consent__close:hover,
.eca-cookie-consent__close:focus {
  border-color: #cbdbea;
  color: #004c99;
  background: #f4f8fc;
  outline: 0;
}

.eca-cookie-consent.is-managing .eca-cookie-consent__panel {
  grid-template-columns: minmax(0, 1fr);
}

.eca-cookie-consent__content {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.eca-cookie-consent__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #004c99;
}

.eca-cookie-consent__mark span {
  display: block;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-top-color: #f5a900;
  border-radius: 50%;
}

.eca-cookie-consent__copy {
  min-width: 0;
}

.eca-cookie-consent__eyebrow {
  margin: 0 0 3px;
  color: #00625f;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eca-cookie-consent h2 {
  margin: 0 0 7px;
  color: #004c99;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.eca-cookie-consent p {
  margin: 0;
  color: #263f59;
  font-size: 14px;
  line-height: 1.45;
}

.eca-cookie-consent__note {
  margin-top: 7px !important;
  color: #53687c !important;
  font-size: 12px !important;
}

.eca-cookie-consent__preferences {
  grid-column: 1 / -1;
  padding-top: 4px;
}

.eca-cookie-consent__category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.eca-cookie-consent__category {
  display: block;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7e5f3;
  border-radius: 8px;
  background: #f8fbfe;
}

.eca-cookie-consent__category-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
  color: #08264a;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.eca-cookie-consent__category input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #004c99;
}

.eca-cookie-consent__category-desc {
  display: block;
  color: #4c6075;
  font-size: 12px;
  line-height: 1.38;
}

.eca-cookie-consent__category.is-required {
  background: #eef6fd;
}

.eca-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-content: center;
  justify-content: flex-end;
  min-width: 296px;
}

.eca-cookie-consent.is-managing .eca-cookie-consent__actions {
  justify-content: flex-start;
}

.eca-cookie-consent__button,
.eca-cookie-consent__reopen {
  appearance: none;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid #cbdbea;
  border-radius: 6px;
  color: #004c99;
  background: #fff;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.eca-cookie-consent__button:hover,
.eca-cookie-consent__button:focus,
.eca-cookie-consent__reopen:hover,
.eca-cookie-consent__reopen:focus {
  border-color: #004c99;
  box-shadow: 0 8px 18px rgba(0, 76, 153, 0.18);
  outline: 0;
  transform: translateY(-1px);
}

.eca-cookie-consent__button--primary {
  border-color: #004c99;
  color: #fff;
  background: #004c99;
}

.eca-cookie-consent__button--primary:hover,
.eca-cookie-consent__button--primary:focus {
  color: #fff;
  background: #00625f;
}

.eca-cookie-consent__save[hidden],
.eca-cookie-consent[hidden],
.eca-cookie-consent__preferences[hidden],
.eca-cookie-consent__reopen[hidden] {
  display: none !important;
}

.eca-cookie-consent__reopen {
  position: fixed;
  left: 18px;
  right: auto;
  bottom: 18px;
  z-index: 9996;
  min-height: 36px;
  padding: 8px 12px;
  color: #fff;
  background: #004c99;
  box-shadow: 0 12px 24px rgba(7, 32, 61, 0.18);
}

@media (max-width: 900px) {
  .eca-cookie-consent__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .eca-cookie-consent__actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .eca-cookie-consent__category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .eca-cookie-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

.eca-cookie-consent__panel {
    max-height: calc(100vh - 20px);
    overflow: auto;
    padding: 14px;
    padding-right: 46px;
  }

  .eca-cookie-consent__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .eca-cookie-consent__mark {
    display: none;
  }

  .eca-cookie-consent__category-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .eca-cookie-consent__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .eca-cookie-consent__button {
    width: 100%;
  }

  .eca-cookie-consent__reopen {
    left: 10px;
    right: auto;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eca-cookie-consent,
  .eca-cookie-consent__button,
  .eca-cookie-consent__reopen {
    transition: none;
  }
}
