.Button {
    display: inline-block;
    margin-bottom: 0;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: $tall-line-height;
    border-radius: 2px;
    user-select: none;
    color: $color-text-white;

    &:active {
        // TODO: color variable
        box-shadow: inset 0 1px 2px rgba(38, 57, 71, 0.2);
    }

    &:disabled {
        cursor: not-allowed;
        filter: alpha(opacity=65);
        opacity: 0.65;
    }
}

.SmallButton {
    padding: 2px 10px;
}

.MediumButton {
    padding: 6px 12px;
}

.LargeButton {
    padding: 15px 20px;
}

.PrimaryButton {
    background-color: var(--primary-color);
    color: $color-text-white;
    font-weight: bold;

    &:hover:not([disabled]) {
        background-color: var(--secondary-color);
    }
}

// This should only be used in preprint branding as we move away from using custom CSS
// Please don't rely on this class for new brands
.DarkText {
    color: $color-text-black;
}

.SecondaryButton {
    background-color: $color-bg-white;
    border: 1px solid $color-border-gray-light;
    color: $color-text-black;

    &:hover:not([disabled]) {
        border: 1px solid $color-bg-gray-blue;
        background-color: $color-bg-gray-blue-light;
    }
}

.CreateButton {
    background-color: darken($brand-success, 10%);
    color: $color-text-white;

    &:hover:not([disabled]) {
        background-color: darken($brand-success, 25%);
    }
}

.DefaultButton {
    color: $color-text-black;
}

.DestroyButton {
    background-color: $brand-danger;
    color: $color-text-white;

    &:hover:not([disabled]) {
        background-color: darken($brand-danger, 15%);
    }
}

// Composed by ../file-embed-menu/styles.scss
// Composed by ../file-actions-menu/styles.scss
.FakeLink {
    background: none;
    border: transparent;
    display: inline;
    color: $color-link-dark;

    &:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }
}
