ton-address-chip {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
}

ton-address-chip.ton-address-chip--block {
  display: block;
  width: 100%;
}

.ton-address-chip__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid rgba(91, 172, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(91, 172, 255, 0.08), rgba(91, 172, 255, 0.02));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 8px 24px rgba(91, 172, 255, 0.08);
  color: #22314d;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.ton-address-chip__button:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 172, 255, 0.38);
  background: linear-gradient(135deg, rgba(91, 172, 255, 0.12), rgba(91, 172, 255, 0.04));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 0 0 4px rgba(91, 172, 255, 0.08),
    0 8px 24px rgba(91, 172, 255, 0.1);
}

.ton-address-chip__button:focus-visible {
  outline: none;
  border-color: rgba(91, 172, 255, 0.48);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 0 0 4px rgba(91, 172, 255, 0.14),
    0 8px 24px rgba(91, 172, 255, 0.12);
}

.ton-address-chip--compact .ton-address-chip__button {
  padding: 8px 12px;
}

.ton-address-chip--copied .ton-address-chip__button {
  border-color: rgba(19, 186, 120, 0.38);
  background: linear-gradient(135deg, rgba(19, 186, 120, 0.12), rgba(19, 186, 120, 0.04));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 0 0 4px rgba(19, 186, 120, 0.08),
    0 8px 24px rgba(19, 186, 120, 0.1);
}

.ton-address-chip__label,
.ton-address-chip__measure {
  font-family: var(--lumo-font-family-monospace);
  font-size: 1rem;
  line-height: 1.42;
  letter-spacing: 0;
}

.ton-address-chip__label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ton-address-chip__measure {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  inset: auto;
}

/* Optional trailing affordance ("COPY"); rendered only when a hint is set. */
.ton-address-chip__hint {
  flex: 0 0 auto;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  opacity: 0.6;
}
