/* Global CMS button link styles
   Purpose:
   Make CMS links with data-as-button="true" display as buttons outside News & Events pages.
   Source:
   Based on the existing .newsShow-content button style, but made global.
*/

a[data-as-button="true"] {
    font-style: italic;
    font-weight: 800;
    font-size: 16px;
    line-height: 16px;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
    padding: 13px 20px;
    position: relative;
    outline: none;
    text-decoration: none;
    display: inline-block;
    z-index: 1;
    isolation: isolate;
}

a[data-as-button="true"]:hover {
    color: #FFFFFF;
    text-decoration: none;
}

a[data-as-button="true"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: skewX(-18deg);
    z-index: -1;
    opacity: 1;
    transition: all .5s;
    outline: none;
}

a[data-as-button="true"][data-as-button-theme="primary"]::before {
    background: rgba(255, 80, 0, 0.6);
}

a[data-as-button="true"][data-as-button-theme="primary"]:hover::before {
    background: rgba(255, 80, 0, 1);
}

a[data-as-button="true"][data-as-button-theme="secondary"]::before {
    background: rgba(0, 166, 221, 0.6);
}

a[data-as-button="true"][data-as-button-theme="secondary"]:hover::before {
    background: rgba(0, 166, 221, 1);
}

a[data-as-button="true"][data-as-button-theme="tertiary"]::before {
    background: rgba(48, 146, 7, 0.6);
}

a[data-as-button="true"][data-as-button-theme="tertiary"]:hover::before {
    background: rgba(48, 146, 7, 1);
}

a[data-as-button="true"][data-as-button-theme="accent"]::before {
    background: rgba(221, 0, 0, 0.6);
}

a[data-as-button="true"][data-as-button-theme="accent"]:hover::before {
    background: rgba(221, 0, 0, 1);
}
