.copy-text-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
}

.copy-text-wrap--with-suffix {
    flex-wrap: wrap;
}

.copy-text-chip {
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color, #dee2e6) !important;
    color: inherit;
    line-height: 1.25;
    font-size: 0.8125rem;
    padding: 0.2rem 0.45rem;
}

.copy-text-chip:hover {
    background: var(--bs-secondary-bg, #e9ecef);
    border-color: var(--bs-primary-border-subtle, #9ec5fe) !important;
}

.copy-text-chip--copied {
    border-color: var(--bs-success-border-subtle, #a3cfbb) !important;
    background: var(--bs-success-bg-subtle, #d1e7dd);
}

.copy-text-chip--inline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
}

.copy-text-chip--block {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.copy-text-wrap--with-suffix .copy-text-chip--block {
    flex: 0 1 auto;
    max-width: 100%;
}

.copy-text-chip__value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-text-chip--block .copy-text-chip__value {
    white-space: normal;
    word-break: break-all;
}

.copy-text-chip__action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.copy-text-chip__icon {
    width: 0.95rem;
    height: 0.95rem;
}

.copy-text-chip__icon--copy {
    opacity: 0.55;
}

.copy-text-chip:hover .copy-text-chip__icon--copy {
    opacity: 0.85;
}

.copy-text-chip__icon--done {
    display: none;
    color: var(--bs-success, #198754);
}

.copy-text-chip--copied .copy-text-chip__icon--copy {
    display: none;
}

.copy-text-chip--copied .copy-text-chip__icon--done {
    display: inline;
}

.copy-text-suffix {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.75rem;
    line-height: 1.25;
}
