/**
 * RSX Framework
 * Copyright 2015 Bell Canada
 * 
 * Modal widget.
 * Reference: http://rsxdeployment.azurewebsites.net/docs/widgets.html#widgets-drop-menu
 */

body.rsx-modal-open {
    overflow: hidden;
}

.rsx-modal-group-wrap {
    position: fixed;
    z-index: 1120;
    opacity: 0;
    transition: opacity .5s cubic-bezier(.55,0,.1,1);
    overflow-x: hidden;
    overflow-y: auto;
    background-color: rgba(0,0,0,.8);
    -webkit-overflow-scrolling: touch;
}

body.rsx-modal-open .rsx-modal-group-wrap {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 1;
}

.rsx-modal-group {
    position: relative;
    width: 100vw;
}

.rsx-modal {
    position: absolute;
    z-index: 1050;
    top: 0;
    left: 0;
    -webkit-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    transform: translateY(-100%);
    opacity: 0;
    transition: -webkit-transform .5s cubic-bezier(.55,0,.1,1), opacity .2s linear;
    transition: transform .5s cubic-bezier(.55,0,.1,1), opacity .2s linear;
    display: none;
}

.rsx-modal .rsx-modal-content.container  {
    display: none; /*otherwise IE10 shows scrollbar*/
    margin-bottom: 0;
}

.rsx-modal.rsx-active {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
    display:block;
}

.rsx-modal.rsx-active .rsx-modal-content.container {
    display: block; 
}

.rsx-modal_blue,
.rsx-modal_blue a,
.rsx-modal_blue h1,
.rsx-modal_blue .rsx-h1,
.rsx-modal_blue h2,
.rsx-modal_blue .rsx-h2,
.rsx-modal_blue h3,
.rsx-modal_blue .rsx-h3,
.rsx-modal_blue h4,
.rsx-modal_blue .rsx-h4,
.rsx-modal_blue h5,
.rsx-modal_blue .rsx-h5,
.rsx-modal_blue h6,
.rsx-modal_blue .rsx-h6 {
    color: #fff;
}


@media (max-width: 519px) {   
    .rsx-modal {
        right: 0;
    }

    .rsx-modal .container {
        min-height: 100vh;
        margin: 0;
    }

     .rsx-modal .containermodalwindow3 {
        min-height: 83vh;
        margin: 0;
    }
}

/*iOS Safari overflow scrolling bug fix, media query is used to minimize its scope to iPhones*/ 
@media only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 519px) {
    .rsx-modal-group {
        height: calc(100% + 1px);
    }
}


@media (min-width: 520px) {
    .rsx-modal {
        left: 50%;
        -webkit-transform: translateX(-50%) translateY(-110%);
        -ms-transform: translateX(-50%) translateY(-110%);
        transform: translateX(-50%) translateY(-110%);
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .rsx-modal.rsx-active {
        -webkit-transform: translateX(-50%) translateY(0);
        -ms-transform: translateX(-50%) translateY(0);
        transform: translateX(-50%) translateY(0);
        outline:none;
    }

    .rsx-modal-content {
        border-radius: 10px;
    }

        .rsx-modal-content .rsx-modal-header {
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
        }
}


@media (min-width: 520px) and (max-width: 999px) {
    .rsx-modal_fullscreen-sm {
        -webkit-transform: translateY(-110%);
            -ms-transform: translateY(-110%);
                transform: translateY(-110%);
    }

    .rsx-modal_fullscreen-sm.rsx-active {
        right: 0;
        left: 0;
        -webkit-transform: translateY(0);
            -ms-transform: translateY(0);
                transform: translateY(0);
        padding: 0;
    }

    .rsx-modal_fullscreen-sm .rsx-modal-content.container {
        min-height: 100vh;
    }

    .rsx-modal_fullscreen-sm.rsx-active .rsx-modal-content.container {
        width: auto;
    }
}


/* header */
.rsx-modal-header {
    background-color: #e1e1e1;
}

.rsx-modal_blue .rsx-modal-header {
    background-color: #00458a;
}

.rsx-modal-header > [class^="col-"],
.rsx-modal-header > [class*=" col-"] {
    padding: 20px 50px 20px 20px;
}

.rsx-modal-close {
    position: absolute;
    top: 50%;
    right: 0;
    padding: 20px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    line-height: 1;
    border: 0;
    outline: 0;
    background: none;
    font-size: 20px;
    color: #00458a;
}

.rsx-modal-close:focus {
    text-decoration: none;
}
.rsx-modal-close:hover {
    text-decoration: none;
}

.rsx-modal-close > .rsx-icon:not(.rsx-icon-close):before {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    display: block;
    top: 0;
}

.rsx-modal-inner-backdrop {
    background: #000;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: .5;
    z-index: 1000;
}

/* contents */
.rsx-modal-content {
    background-color: #fff;
}

.rsx-modal_blue .rsx-modal-content {
    background-color: #00549a;
}




/* Sizes */
.rsx-modal.rsx-modal_small .rsx-modal-content.container {
    max-width: 600px;
}

.rsx-modal.rsx-modal_medium .rsx-modal-content.container {
    max-width: 800px;
}

/* Max Item Reached Modal CSS*/
.rsx-max-nb-item-modal {
    /*top: 120px;
    margin-top: 0;
    transition: none;*/
}

@media (max-width: 519px) {
    .rsx-max-nb-item-modal.rsx-modal .container{
        min-height: initial;
    }

    .rsx-max-nb-item-modal .rsx-modal-body{
        padding-top: 30px;
        /*padding-bottom: 180px;*/
    }

    #maximumNumberOfItems .rsx-modal-header > .col-xs-12 {
        padding: 17px 50px 36px 20px;
    }

    #maximumNumberOfItems h2.rsx-modal-heading {
        font-size: 20px;
        font-family: sans-serif;
    }

    #maximumNumberOfItems .rsx-modal-close {
        right: -5px;
        font-size: 28px;
    }

    #maximumNumberOfItems .rsx-notification {
        padding-left: 0;
        text-align: center;
    }

    #maximumNumberOfItems .rsx-notification span.rsx-icon {
        position: relative;
        display: inline-block;
        width: 37px;
        height: 37px;
    }

    #maximumNumberOfItems .rsx-notification label {
        display: block;
    }
}

@media (min-width: 520px) and (max-width: 639px) {

    .rsx-max-nb-item-modal .rsx-modal-body{
        padding-top: 30px;
        padding-bottom: 140px;
    }
}

@media (min-width: 640px) {
.rsx-max-nb-item-modal .rsx-modal-body{
        padding-top: 30px;
        padding-bottom: 110px;
    }
}

/*styles for modalwindow3*/

@media (min-width:320px) and (max-width:736px) {   
    .rsx-modalwindow3 {
        position: fixed;
        top: 5px;
        width: calc(100vw - 5px);
        height: calc(100vh - 5px);
        z-index: 99999;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.bellAthletesConnect_Renewal .rsx-screen,
.bellAthletesConnect_Renewal .rsx-modal-group-wrap {
    display: none;
}