/* Плашка контракта + кнопка X. Дизайн-токены взяты у донора:
   Roboto Mono, uppercase, accent #EDFF66, text #DFDFF2, чёрный фон. */
.caBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.9rem 1.6rem;
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(223, 223, 242, 0.14);
  font-family: "Roboto Mono", "Helvetica Neue", monospace;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: #dfdff2;
}

.caBar__label {
  color: rgba(223, 223, 242, 0.55);
  white-space: nowrap;
}

.caBar__value {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  max-width: min(62vw, 60rem);
  padding: 0.6rem 1rem;
  border: 1px solid rgba(223, 223, 242, 0.18);
  border-radius: 999px;
  background: rgba(223, 223, 242, 0.04);
  color: #edff66;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.caBar__value:hover {
  border-color: #edff66;
  background: rgba(237, 255, 102, 0.08);
}

.caBar__value.is-soon {
  color: rgba(223, 223, 242, 0.7);
  cursor: default;
}

.caBar__value.is-soon:hover {
  border-color: rgba(223, 223, 242, 0.18);
  background: rgba(223, 223, 242, 0.04);
}

.caBar__copy {
  font-size: 1rem;
  color: rgba(223, 223, 242, 0.45);
}

.caBar__x {
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  flex: 0 0 auto;
  border: 1px solid rgba(223, 223, 242, 0.18);
  border-radius: 999px;
  color: #dfdff2;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.caBar__x:hover {
  border-color: #edff66;
  background: #edff66;
  color: #000;
}

.caBar__x svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.caBar__x[hidden] {
  display: none;
}

@media only screen and (max-width: 768px) {
  .caBar {
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }
  .caBar__label {
    display: none;
  }
  .caBar__value {
    max-width: 68vw;
  }
  .caBar__x {
    width: 3rem;
    height: 3rem;
  }
}
