@use "../../../styles/mixins";

.codeCell {
    min-width: 140px;
}

.codeWrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--mantine-color-gray-0);
    border: 1px solid var(--mantine-color-gray-1);
    border-radius: 12px;
    transition: all 0.15s ease;
    
    &:hover {
        background: var(--mantine-color-gray-1);
        border-color: var(--mantine-color-gray-2);
        
        .copyButton {
            opacity: 1;
        }
    }
}

.codeText {
    color: var(--mantine-color-gray-7);
    font-weight: 500;
    letter-spacing: 0.25px;
    font-size: 0.85rem;
}

.copyButton {
    opacity: 0.6;
    transition: all 0.15s ease;
    padding: 4px 8px;
    height: auto;
    border-radius: 8px;
    font-size: 0.75rem;
    
    &:hover {
        background: var(--mantine-color-gray-2);
        opacity: 1;
    }
}

.statsCell {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 160px;
}

.statItem {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 8px;
    background: var(--mantine-color-gray-0);
    border: 1px solid var(--mantine-color-gray-1);
    transition: all 0.15s ease;
    width: 70px;
    flex: 1;
    
    &:hover {
        background: var(--mantine-color-gray-1);
        border-color: var(--mantine-color-gray-2);
    }
    
    &:first-child {
        .statIcon {
            color: var(--mantine-color-gray-5);
        }
        
        .statValue {
            color: var(--mantine-color-gray-8);
        }
    }
    
    &:last-child {
        .statIcon {
            color: var(--mantine-color-gray-5);
        }
        
        .statValue {
            color: var(--mantine-color-gray-8);
        }
    }
}

.statIcon {
    color: var(--mantine-color-gray-5);
    flex-shrink: 0;
}

.statValue {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--mantine-color-gray-8);
}

.statLabel {
    font-size: 0.65rem;
    color: var(--mantine-color-gray-5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

.affiliateInfo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.affiliateName {
    font-weight: 500;
    color: var(--mantine-color-gray-8);
    font-size: 0.9rem;
}

.affiliateEmail {
    color: var(--mantine-color-gray-5);
    font-size: 0.8rem;
}
