.er-cookie-modal-open {
  overflow: hidden;
}

.er-cookie-banner[hidden],
.er-cookie-modal[hidden],
.er-cookie-manage-btn[hidden] {
  display: none !important;
}

.er-cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: #112036;
  color: #f3f7ff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.er-cookie-banner__text {
  margin: 0;
  max-width: 780px;
  font-size: 14px;
  line-height: 1.5;
}

.er-cookie-banner__text a {
  color: #8ad4ff;
  text-decoration: underline;
}

.er-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.er-cookie-banner .er-cookie-banner__actions .er-cookie-btn--ghost{
  color: #fff;
}

.er-cookie-modal__dialog .er-cookie-banner__actions .er-cookie-btn--ghost{
color: #002395;
}
.er-cookie-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.er-cookie-btn--primary {
  border-color: #002395;
  background: #002395;
  color: #fff;
}

.er-cookie-btn--ghost {
  border-color: #8aa2bf;
  background: transparent;
  color: #002395;
}

.er-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.er-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.6);
}

.er-cookie-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  border-radius: 14px;
  background: #ffffff;
  color: #0f1622;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

.er-cookie-modal__dialog h2 {
  margin: 0 0 8px;
}

.er-cookie-modal__dialog p {
  margin: 0 0 16px;
  color: #3a4253;
}

.er-cookie-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #eef2f7;
  color: #111827;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.er-cookie-categories {
  display: grid;
  gap: 10px;
}

.er-cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d8e0eb;
  border-radius: 10px;
  background: #f8fafd;
}

.er-cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #002395
}

.er-cookie-category__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.er-cookie-category__text small {
  color: #5d697d;
}

.er-cookie-modal__actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.er-cookie-manage-btn {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2050;
  border: 1px solid #c7d3e1;
  border-radius: 999px;
  padding: 8px 14px;
  background: #ffffff;
  color: #172030;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.footer-cookie-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

@media (max-width: 700px) {
  .er-cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .er-cookie-manage-btn {
    left: 12px;
    bottom: 12px;
  }
}
