@value _white, _dodgerBlue, _mineShaft, _emerald, _carnation, _iron, _alabaster from '../CommonCss/var-colors.css';
@value _px_0, _px_1, _px_3, _px_4, _px_7, _px_9, _px_12, _px_20, _px_30, _px_32, _per_50, _per_100, _inherit from '../CommonCss/var-units.css';
@value _zero_8_rem, _zero_6_rem, _one_rem from '../CommonCss/var-typography.css';

.common {
    justify-content: center;
    display: inline-flex;
    align-items: center;
    outline: 0;
    border-radius: _px_3;
    cursor: pointer;
    transition: .3s color ease-in-out;
}

.primary {
    background-color: _dodgerBlue;
    border: _px_1 solid _dodgerBlue;
    color: _white;
}

.secondary {
    background-color: _alabaster;
    border: _px_1 solid _iron;
    color: _mineShaft;
}

.success {
    background-color: _emerald;
    border: _px_1 solid _emerald;
    color: _white;
}

.danger {
    background-color: _carnation;
    border: _px_1 solid _carnation;
    color: _white;
}

.stretch {
    height: _per_100;
    width: _per_100;
    font-size: _inherit
}


/* size css */
.small {
    padding: _px_4 _px_7;
    font-size: _zero_6_rem
}

.medium {
    padding: _px_7 _px_12;
    font-size: _zero_8_rem
}

.large {
    padding: _px_9 _px_30;
    font-size: _one_rem
}

.auto {
    flex: 1;
}

/* shape css */
.circle {
    padding: _px_0;
    border-radius: _per_50;
    height: _px_32;
    width: _px_32
}

.square {
    border-radius: _px_0
}

.oval {
    border-radius: _px_20
}

/* disabled css */
.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none
}

.common> :not(:last-child) {
    margin: 0 _px_12 0 0
}

/* rtl */
html[dir="rtl"] .common>:not(:last-child) {
    margin: 0 0 0 _px_12
}

.strike {
    background-image: repeating-linear-gradient(120deg, var(--hc_button_strike_color) 0 1px, transparent 1px 8px);
}

.primaryStrike {
    --hc_button_strike_color: var(--button_primary_strike, rgba(255, 255, 255, 0.35));
}

.outlineStrike {
    --hc_button_strike_color: var(--button_primaryOutline_strike, rgba(10, 115, 235, 0.30));
}