.container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(22, 27, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--mantine-radius-md);
    font-family: var(--mantine-font-family-monospace);
    font-size: var(--mantine-font-size-sm);
    color: var(--mantine-color-gray-3);
    cursor: pointer;
    transition: border-color 150ms ease;
}

.container.small {
    gap: 8px;
    padding: 8px 12px;
    font-size: var(--mantine-font-size-xs);
    border-radius: var(--mantine-radius-sm);
}

.container:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.codeWrapper {
    position: relative;
    flex: 1;
    min-width: 0;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.container.small .codeWrapper {
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.code {
    overflow-x: auto;
    white-space: nowrap;
    user-select: none;
    scrollbar-width: none;
}

.code::-webkit-scrollbar {
    display: none;
}

.copyButton {
    position: relative;
    flex-shrink: 0;
    opacity: 0.6;
    z-index: 2;
    transition:
        opacity 150ms ease,
        color 150ms ease;
}

.container:hover .copyButton {
    opacity: 1;
}

.copyButton[data-copied='true'] {
    opacity: 1;
    color: var(--mantine-color-teal-5);
}
