.btce-site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 61px;
  margin: 0;
  padding: 8px clamp(16px, 3vw, 32px);
  border-top: 1px solid #e7ebef;
  color: #526577;
  font-size: 12px;
  line-height: 1.4;
  box-sizing: border-box;
}

.btce-footer-identity {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btce-footer-brand {
  color: #082747;
  font-weight: 500;
}

.btce-footer-location::before {
  content: "·";
  margin-right: 6px;
  color: #a1adba;
}

.btce-footer-links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 12px;
  line-height: 1.4;
  box-sizing: border-box;
}

.btce-footer-links a {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 4px;
  color: inherit;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  text-underline-offset: 3px;
  box-sizing: border-box;
}

.btce-footer-links a + a::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 1px;
  height: 12px;
  background: #e7ebef;
  transform: translateY(-50%);
}

.btce-footer-signature {
  justify-self: end;
  flex: 0 0 auto;
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid #e7ebef;
  color: #6e7c8b;
  font: inherit;
  white-space: nowrap;
}

.btce-footer-links a:hover {
  color: #082747;
  text-decoration: underline;
}

.btce-footer-links a:focus-visible,
.btce-cookie-dialog a:focus-visible,
.btce-cookie-dialog button:focus-visible {
  outline: 3px solid #ff6b08;
  outline-offset: 3px;
  border-radius: 5px;
}

.btce-cookie-dialog {
  width: min(560px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e7ebef;
  border-radius: 16px;
  background: #fff;
  color: #152c43;
  box-shadow: 0 20px 64px #08274733;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  box-sizing: border-box;
}

.btce-cookie-dialog::backdrop {
  background: #08274799;
}

.btce-cookie-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.btce-cookie-dialog__header h2 {
  margin: 4px 0 0;
  color: #082747;
  font-size: 22px;
  line-height: 1.3;
}

.btce-cookie-dialog__close {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  background: #f5f6f8;
  color: #082747;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.btce-cookie-dialog__close:hover {
  border-color: #082747;
  background: #eaf0f5;
}

.btce-cookie-dialog p {
  margin: 0 0 16px;
  color: #41576c;
}

.btce-cookie-dialog__status {
  padding: 10px 12px;
  border-left: 3px solid #ff6b08;
  border-radius: 4px;
  background: #fff5ec;
  color: #082747;
  font-weight: 600;
}

.btce-cookie-dialog__list {
  margin: 18px 0;
  padding-left: 22px;
}

.btce-cookie-dialog__list li + li {
  margin-top: 10px;
}

.btce-cookie-dialog__details {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #082747;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1023px) {
  .btce-site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .btce-footer-identity {
    flex-wrap: wrap;
    flex-shrink: 1;
    gap: 0 8px;
  }

  .btce-footer-signature {
    margin-left: auto;
  }

  .btce-footer-links {
    order: 1;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 0 8px;
  }

  .btce-footer-links a + a::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .btce-cookie-dialog {
    padding: 20px;
  }

  .btce-cookie-dialog__header {
    gap: 12px;
  }

  .btce-cookie-dialog__header h2 {
    font-size: 20px;
  }
}

@media print {
  .btce-site-footer,
  .btce-footer-links,
  .btce-cookie-dialog {
    display: none !important;
  }

  .btce-cookie-dialog::backdrop {
    background: transparent;
  }
}
