.fab {
    width: 56px;
    height: 56px;
    position: fixed;
    left: 32px;
    bottom: 40px;
    z-index: 1999997;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

@media (max-width:1428px) {
    .fab {
        left: auto;
        right: 24px;
        bottom: 24px;
    }
}

.fab * {
	box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.fab-icon {
    width: 56px;
    height: 56px;
    background: #064aa7 url("/pi/sites/fab/images/icon-mobile.svg") no-repeat;
    background-size: 24px auto;
    background-position: 50%;
    border-radius: 50%;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, .1);
    position: absolute;
    cursor: pointer;
    display: none;
}

.show-fab-icon:not(.show-fab-modal) .fab-icon {
    display: block;
}

.fab-icon:hover:after {
    margin: 0 0 0 28px;
    padding: 0 20px 0 0;
    content: "Free Medscape App";
    white-space: nowrap;
    font-family: 'Nunito Sans', sans-serif;
	font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    background: #064aa7;
    border-radius: 0 28px 28px 0;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, .1);
    width: 208px;
    height: 56px;
    position: relative;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    animation: .35s fab-slide forwards;
    z-index: -1;
}

@media (max-width:1428px) {
    .fab-icon:hover:after {
        display: none;
    }
}

.fab-modal {
    margin: 0 auto;
    background: #f2f4f5;
    min-height: 20vh;
    width: 668px;
    border-radius: 7px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6000497;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    display: none;
}

.fab-modal.active,
.show-fab-modal .fab-modal {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
}

@media (max-width:767px) {

    .fab-modal.active,
    .show-fab-modal .fab-modal {
        width: 92vw;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}

.fab-modal .close-layer {
    background: url("/pi/sites/fab/images/icon-close.svg") no-repeat;
    background-size: 16px auto;
    width: 16px;
    height: 16px;
    position: absolute;
    top: 16px;
    right: 16px;
    cursor: pointer;
}

@media (max-width:767px) {
    .fab-modal .close-layer {
        top: 8px;
        right: 8px;
    }
}

.fab-modal .fab-cta {
    padding: 56px 32px 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

@media (max-width:767px) {
    .fab-modal .fab-cta {
        padding: 32px 16px 0;
        -ms-flex: 0;
        flex: 0;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}

.fab-modal .fab-driver {
    padding: 0 60px 16px;
    text-align: center;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: justify;
    justify-content: space-between;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

@media (max-width:767px) {
    .fab-modal .fab-driver {
        padding: 0 24px 16px;
        text-align: left;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}

.fab-modal .fab-driver p {
    margin: 0;
    padding: 40px 0 25px;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width:767px) {
    .fab-modal .fab-driver p {
        margin: 0 0 26px;
        padding: 0 0 0 36px;
        min-height: 24px;
        vertical-align: center;
    }
}

.fab-modal .fab-driver .driver-benefits {
    margin: 0 0 22px;
    padding: 0;
    font-size: 1.5rem;
    font-family: 'Nunito Sans', sans-serif;
	font-weight: 700;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
}

@media (max-width:767px) {
    .fab-modal .fab-driver .driver-benefits {
        padding: 0 25px;
        text-align: center;
    }
}

.fab-modal .fab-driver .driver-offline {
    background: url("/pi/sites/fab/images/icon-wifi-off.svg") no-repeat;
    background-size: 24px auto;
    background-position: 50% 0;
    -ms-flex: 0 0 150px;
    flex: 0 0 150px;
}

.fab-modal .fab-driver .driver-navigation {
    background: url("/pi/sites/fab/images/icon-compass.svg") no-repeat;
    background-size: 24px auto;
    background-position: 50% 0;
    -ms-flex: 0 0 150px;
    flex: 0 0 150px;
}

.fab-modal .fab-driver .driver-drugs {
    background: url("/pi/sites/fab/images/icon-interaction-checker.svg") no-repeat;
    background-size: 24px auto;
    background-position: 50% 0;
    -ms-flex: 0 0 150px;
    flex: 0 0 150px;
}

@media (max-width:767px) {
    .fab-modal .fab-driver .driver-drugs,
    .fab-modal .fab-driver .driver-navigation,
    .fab-modal .fab-driver .driver-offline {
        background-position: 0;
        -ms-flex: 1 1 100%;
        flex: 1 1 100%;
    }
}

.fab-modal .promo-img {
    background: #063c8c url("/pi/sites/fab/images/fab-promo-image-anonymous.png") no-repeat;
    background-size: 391px 201px;
    width: 391px;
    height: 201px;
    object-fit: cover;
    border-radius: 5px 0 0 5px;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .1);
    -ms-flex: 0 0 391px;
    flex: 0 0 391px;
}

@media (max-width:767px) {
    .fab-modal .promo-img {
        background: #063c8c url("/pi/sites/fab/images/fab-promo-image-anonymous.png") no-repeat;
        background-size: 311px auto;
        width: 100%;
        background-position: bottom;
        height: 160px;
        border-radius: 5px 5px 0 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    }
}

.fab-modal .promo-img span {
    font-size: 0;
}

.fab-modal .qr-codes {
    margin: 0 0 32px;
    padding: 18px 16px;
    background: #fff;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .1);
    display: -ms-flexbox;
    display: flex;
    -ms-flex: 0 0 213px;
    flex: 0 0 213px;
    -ms-flex-direction: column;
    flex-direction: column;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.fab-modal .qr-codes span {
    font-size: 0;
}

@media (max-width:767px) {
    .fab-modal .qr-codes {
        margin: 0 0 24px;
        padding: 16px;
        height: auto;
        border-top: 1px solid #e7ebed;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .1);
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        -ms-flex-direction: row;
        flex-direction: row;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
}

.fab-modal .qr-app-store {
    margin: 0 0 18px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

@media (max-width:767px) {
    .fab-modal .qr-app-store {
        margin: 0;
        -ms-flex: 0 0 132px;
        flex: 0 0 132px;
    }
}

.fab-modal .qr-app-store .qr {
    background: url("/pi/sites/fab/images/qr-app-store.png") no-repeat;
    background-size: 64px auto;
    width: 64px;
    height: 64px;
    display: -ms-inline-flexbox;
    display: inline-flex;
    cursor: pointer;
}

@media (max-width:767px) {
    .fab-modal .qr-app-store .qr {
        display: none;
    }
}

.fab-modal .qr-app-store .dl {
    margin-left: 8px;
    background: url("/pi/sites/fab/images/app-store.svg") no-repeat;
    background-size: 100px auto;
    width: 100px;
    height: 26px;
    font-size: 0;
    display: -ms-inline-flexbox;
    display: inline-flex;
}

@media (max-width:767px) {
    .fab-modal .qr-app-store .dl {
        margin: 0;
        background: url("/pi/sites/fab/images/app-store-black-bg.svg") no-repeat;
        background-size: 132px auto;
        width: 132px;
        height: 38px;
    }
}

.fab-modal .qr-google-play {
    padding: 18px 0 0;
    border-top: 1px solid #a2b0ba;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

@media (max-width:767px) {
    .fab-modal .qr-google-play {
        padding: 0;
        border: 0;
        -ms-flex: 0 0 132px;
        flex: 0 0 132px;
    }
}

.fab-modal .qr-google-play .qr {
    background: url("/pi/sites/fab/images/qr-google-play.png") no-repeat;
    background-size: 64px auto;
    width: 64px;
    height: 64px;
    display: -ms-inline-flexbox;
    display: inline-flex;
    cursor: pointer;
}

@media (max-width:767px) {
    .fab-modal .qr-google-play .qr {
        display: none;
    }
}

.fab-modal .qr-google-play .dl {
    margin-left: 8px;
    background: url("/pi/sites/fab/images/google-play.svg") no-repeat;
    background-size: 100px auto;
    width: 100px;
    height: 24px;
    font-size: 0;
    display: -ms-inline-flexbox;
    display: inline-flex;
}

@media (max-width:767px) {
    .fab-modal .qr-google-play .dl {
        margin: 0;
        background: url("/pi/sites/fab/images/google-play-black-bg.svg") no-repeat;
        background-size: 132px auto;
        width: 132px;
        height: 38px;
    }
}

.layer-blackout {
    width: 100%;
    position: fixed;
    z-index: 6000496;
    margin: 0 auto;
    min-height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #000;
    opacity: .3;
    -moz-opacity: .3;
    filter: alpha(opacity=30);
    transition: all .35s ease-in-out;
    display: none;
}

.layer-blackout.active,
.show-fab-modal .layer-blackout {
    display: block;
}

body.show-fab-modal {
    overflow: hidden;
    height: 100vh;
}

@keyframes fab-slide {
    0% {
        width: 0;
    }

    to {
        width: 208px;
    }
}

