/**
 * RSX Framework
 * Copyright 2015 Bell Canada
 * 
 * Tags that indicate association.
 * Reference: http://rsxdeployment.azurewebsites.net/docs/components.html#tags
 */

.rsx-tag {
    display: inline-block;
    position: relative;
    margin-left: 19px;
    padding: 7px 19px 7px 15px;
    background-color: #00549a;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    border: 0;
}

    .rsx-tag:after {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        right: 100%;
        width: 0;
        height: 0;
        border-top: 17px solid transparent;
        border-bottom: 17px solid transparent;
        border-right: 17px solid #00549a;
    }

.rsx-tag-inside-right {
    display: inline-block;
    position: relative;
    padding: 10px 27px 5px 15px;
    background-color: #00549a;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    border: 0;
}

    .rsx-tag-inside-right:after {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 0;
        border-top: 16px solid transparent;
        border-bottom: 16px solid transparent;
        border-right: 11px solid white;
    }

a.rsx-tag, a.rsx-flag, a.rsx-flag-small {
    cursor: pointer;
}

    a.rsx-tag:link,
    a.rsx-tag:visited,
    a.rsx-tag:hover,
    a.rsx-tag:active,
    a.rsx-flag:link,
    a.rsx-flag:visited,
    a.rsx-flag:hover,
    a.rsx-flag:active {
        color: #fff;
        text-decoration: none;
    }

/* dark */
.rsx-tag_dark, .rsx-flag_dark {
    background-color: #003778;
}

    .rsx-tag_dark:after {
        border-right: 15px solid #003778;
    }
    .rsx-tag_dark_bg:after {
        border-right: 15px solid #00549a;
    }

/* grey */
.rsx-tag_grey, .rsx-flag_grey {
    background-color: #e1e1e1;
    color: #111;
}

    .rsx-tag_grey:after {
        border-right: 15px solid #e1e1e1;
    }

a.rsx-tag.rsx-tag_grey:link,
a.rsx-tag.rsx-tag_grey:visited,
a.rsx-tag.rsx-tag_grey:hover,
a.rsx-tag.rsx-tag_grey:active {
    color: #111;
}


/* white */
.rsx-tag_white, .rsx-flag_white, .rsx-active.rsx-flag, .rsx-active.rsx-flag-small {
    background-color: #fff;
    color: #003778;
}

    .rsx-tag_white:after {
        border-right: 15px solid #fff;
    }
    .rsx-flag_white:after, .rsx-active.rsx-flag:after {
        border-right: 15px solid #00549a;
    }
    .rsx-active.rsx-flag-small:after {
        border-right: 15px solid #00549a;
    }

a.rsx-tag.rsx-tag_white:link,
a.rsx-tag.rsx-tag_white:visited,
a.rsx-tag.rsx-tag_white:hover,
a.rsx-tag.rsx-tag_white:active {
    color: #003778;
}

@media (max-width: 519px) {
    .rsx-tag  {
        display: block;
    }
}

.rsx-flag, .rsx-flag-small {
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 4px 40px 4px 10px;
    background-color: #00549a;
    color: white;
}
.rsx-flag-small {
    font-size:12px !important;
}

    .rsx-flag:after{
        content: '';
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        border: 14px solid transparent;
        border-right-color: white;
        border-left-width: 0;
}

    .rsx-flag-small:after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        border: 11px solid transparent;
        border-right-color: rgb(237, 237, 237);
        border-left-width: 0;
}
