﻿/* Icon with material icons */
.buttonIcon {
    font-family: 'Material Icons';
}

/********************************************** 
partButtons
**********************************************/

/* fundementals */
.partButton {
    font-family: inherit;
    background-color: transparent;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    outline: 0;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    border: none;
    max-width: 100%;
    vertical-align: top;
}

/* label */
.buttonLabel {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 1;
    font-weight: 600;
}

/* icon */
.buttonIcon {
    z-index: 1;
}

.buttonIcon + .buttonLabel {
    margin-left: 6px;
}

.buttonIcon svg {
    fill: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 16px;
    max-width: 16px;
}

/* configuration */
.partButton {
    line-height: 1.3em;
    height: 36px;
    font-size: 16px;
    margin-bottom: 30px;
    transition: box-shadow .15s ease-in-out /* :focus */, transform .15s /* active & selected */; 
}

/* primary button */
.partButton, .formV2 .partButton, .formLogin .partButton {
    background-color: #f28f2b;
    color: #fff;
    border-radius: 3px;
    padding: 0px 15px;
}

.partButton.solid.blue {
    background-color: #3d6e93;
}

.partButton.underline {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    color: #f28f2b;
    border-bottom: solid 3px #f28f2b;
}

.partButton.outline {
    background-color: transparent;
    color: #f28f2b;
    border: solid 3px #f28f2b;
    transition: 0.3s;
}

.partButton.outline:hover {
    background-color: #f28f2b;
    color: #fff;
}

/* hover */
.partButton:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transition: background-color .3s ease-in-out;
}

.partButton:hover:after {
    background-color: #3d6e93;
}

.partButton.solid.blue:hover:after {
    background-color: #f28f2b;
}

/* responsive / mobile */
@media screen and (max-width: 1024px) {
    .partButton {
        font-size: 14px;
        padding-left: 10px; padding-right: 10px;
    }
    
    /* disable deskto hover effect */
    .partButton:after {
        display: none;
    }

    /* enable mobile hover effect */
    .partButton:before {
        content: '';
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        pointer-events: none;
        background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
        background-repeat: no-repeat;
        background-position: 50%;
        transform: scale(10, 10);
        opacity: 0;
        transition: transform .5s, opacity 1s;
    }
    
    .partButton:active:before {
        transform: scale(0, 0);
        opacity: .3;
        transition: 0s;
    }
}

/* focus */
.partButton:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,.1);
}

/* active */
.partButton:active {
    transform: translateY(2px);
}

/********************************************** 
Logic states
**********************************************/

/* selected */
.partButton.selected {
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,.1);
    transform: scale(1.05);
}

/* disabled */
.partButton.disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* loading */
.partButton.loading {
    pointer-events: none;
}

.partButton.loading:after {
    animation-delay: 1.5s;
    animation: loadingBar 1s infinite;
    background: rgba(0, 0, 0, 0.3);
    content: '';
    display: block;
    height: 5px;
    left: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: 1rem;
}

@keyframes loadingBar {0% {left: 0; width: 0; } 50% {left: 0; width: 100%; } 100% {left: 100%; width: 0;}}