.button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-full);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        opacity 0.3s ease,
        color 0.3s ease;
}

.button:hover {
    opacity: 0.85;
}

.emphasis {
    background-color: var(--color-bg-fill-primary);
    color: var(--color-text-primary-inverted);
}

.emphasis-invert {
    background-color: var(--color-bg-fill-brand-inverse);
    color: var(--color-text-primary);
}

.muted {
    background-color: var(--color-bg-fill-alpha-black-10);
    color: var(--color-text-primary);
}

.muted-invert {
    background-color: var(--color-bg-fill-alpha-white-20);
    color: var(--color-text-primary-inverted);
}

.ghost {
    background-color: transparent;
    color: var(--color-text-primary);
}

.xs {
    max-width: 24px;
    min-width: 24px;
    min-height: 24px;
}

.sm {
    max-width: 32px;
    min-width: 32px;
    min-height: 32px;
}

.md {
    max-width: 40px;
    min-width: 40px;
    min-height: 40px;
}

.lg {
    max-width: 48px;
    min-width: 48px;
    min-height: 48px;
}

.button:disabled {
    text-decoration: none;
    cursor: not-allowed;
    opacity: 0.5;
}

.iconWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    & > * {
        width: 100%;
        height: 100%;
    }
}

.lg .iconWrap {
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    max-height: 24px;
}

.md .iconWrap {
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    height: 20px;
    max-height: 20px;
}

.sm .iconWrap {
    width: 16px;
    min-width: 16px;
    max-width: 16px;
    height: 16px;
    max-height: 16px;
}

.xs .iconWrap {
    width: 14px;
    min-width: 14px;
    max-width: 14px;
    height: 14px;
    max-height: 14px;
}
