/*!****************************
 *                            *
 *  Smart Alert               *
 *                            *
 *  Code: Lukas Prvy          *
 *  Design: Pierre Borodin    *
 *                            *
 ******************************/


/* =====[ LIGHT THEME ]========================================================================== */

/* -----[ OVERLAY ]------------------------------------------------------------------------------ */

#smartAlert {
    background: rgba(255, 255, 255, 0.85);
    -pie-background: rgba(255, 255, 255, 0.85);
}

/* -----[ BOX ]---------------------------------------------------------------------------------- */

#smartAlertBox {
    margin: 15px;
    border: solid 1px #bbbbbe;
    min-width: 270px;
    max-width: 500px;
    font-family: sans-serif;
    font-size: 13px;
    background: #fff;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    box-shadow: 0 0 15px rgba(49, 58, 68, 0.2), 0 1px 1px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 0 15px rgba(49, 58, 68, 0.2), 0 1px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 0 15px rgba(49, 58, 68, 0.2), 0 1px 1px rgba(0, 0, 0, 0.1);
    -ms-box-shadow: 0 0 15px rgba(49, 58, 68, 0.2), 0 1px 1px rgba(0, 0, 0, 0.1);
    -o-box-shadow: 0 0 15px rgba(49, 58, 68, 0.2), 0 1px 1px rgba(0, 0, 0, 0.1);
}

#smartAlert[data-type="prompt"] #smartAlertBox {
    min-width: 310px;
}

#smartAlert[data-ie="8"] #smartAlertBox,
#smartAlert[data-ie="7"] #smartAlertBox {
    box-shadow: none;
}

/* -----[ HEADER ]------------------------------------------------------------------------------- */

#smartAlertHeader {
    border-bottom: solid 1px #bbbbbe;
    padding: 14px 41px 13px 17px;
    background-color: #f0f0f2;
    background-image: linear-gradient(#f9f9fa, #e8e9eb 99%, #e8e9eb);
    background-image: -webkit-linear-gradient(#f9f9fa, #e8e9eb 99%, #e8e9eb);
    background-image: -moz-linear-gradient(#f9f9fa, #e8e9eb 99%, #e8e9eb);
    background-image: -o-linear-gradient(#f9f9fa, #e8e9eb 99%, #e8e9eb);
    background-image: -ms-linear-gradient(#f9f9fa, #e8e9eb 99%, #e8e9eb);
    -pie-background: linear-gradient(#f9f9fa, #e8e9eb 99%, #e8e9eb);
    box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px #fff inset;
    -webkit-box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px #fff inset;
    -moz-box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px #fff inset;
    -ms-box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px #fff inset;
    -o-box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px #fff inset;
}

#smartAlertTitle {
    font-weight: bold;
    line-height: 13px;
    text-shadow: 0 -1px 1px #fff;
    color: #63737f;
}

#smartAlertClose {
    top: 13px;
    right: 14px;
    width: 13px;
    height: 13px;
    background: url(img/close.png);
}

@media only screen and (min-device-pixel-ratio: 2),
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (-moz-min-device-pixel-ratio: 2),
only screen and (-o-min-device-pixel-ratio: 2/1) {

    #smartAlertClose {
        background: url(x2/close.png);
        background-size: 100%, 100%;
        -webkit-background-size: 100%, 100%;
        -moz-background-size: 100%, 100%;
        -o-background-size: 100%, 100%;
    }

}

#smartAlert[data-webkit] #smartAlertHeader,
#smartAlert[data-opera] #smartAlertHeader {
    border-radius: 2px 2px 0 0;
}

/* -----[ ICONS ]-------------------------------------------------------------------------------- */

#smartAlertIcon {
    width: 67px;
}

#smartAlert[data-icon="info"] #smartAlertIcon {
    background-image: url(img/info.png);
}

#smartAlert[data-icon="confirm"] #smartAlertIcon {
    background-image: url(img/confirm.png);
}

#smartAlert[data-icon="warning"] #smartAlertIcon {
    background-image: url(img/warning.png);
}

#smartAlert[data-icon="error"] #smartAlertIcon {
    background-image: url(img/error.png);
}

#smartAlert[data-icon="prompt"] #smartAlertIcon {
    background-image: url(img/prompt.png);
}

@media only screen and (min-device-pixel-ratio: 2),
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (-moz-min-device-pixel-ratio: 2),
only screen and (-o-min-device-pixel-ratio: 2/1) {

    #smartAlertIcon {
        background-size: 35px, 35px;
        -webkit-background-size: 35px, 35px;
        -moz-background-size: 35px, 35px;
        -o-background-size: 35px, 35px;
    }

    #smartAlert[data-icon="info"] #smartAlertIcon {
        background-image: url(x2/info.png);
    }

    #smartAlert[data-icon="confirm"] #smartAlertIcon {
        background-image: url(x2/confirm.png);
    }

    #smartAlert[data-icon="warning"] #smartAlertIcon {
        background-image: url(x2/warning.png);
    }

    #smartAlert[data-icon="error"] #smartAlertIcon {
        background-image: url(x2/error.png);
    }

    #smartAlert[data-icon="prompt"] #smartAlertIcon {
        background-image: url(x2/prompt.png);
    }

}

/* -----[ CONTENT ]------------------------------------------------------------------------------ */

#smartAlertContent {
    padding: 26px 20px 26px 0;
    line-height: 20px;
    color: #63737f;
}

#smartAlert[data-icon="false"] #smartAlertContent {
    padding-left: 52px;
}

#smartAlert[data-type="prompt"] #smartAlertContent {
    padding: 16px 20px 16px 0;
}

#smartAlert[data-type="prompt"][data-icon="false"] #smartAlertContent {
    padding-left: 26px;
}

#smartAlertScrollArea {
    margin-right: 36px;
}

#smartAlertScrollBar {
    background: #e9e9e9 !important;
}

#smartAlertScrollDrag {
    background: #bbbbbe;
}

#smartAlertPrompt {
    border: 1px solid #bbbbbe;
    padding: 5px;
    margin: 10px 0;
    font-family: sans-serif;
    font-size: 13px;
    line-height: 13px;
    color: #848484;
    background: none;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -o-border-radius: 3px;
    -ms-border-radius: 3px;
    box-shadow: 0 1px 3px rgba(2, 3, 3, 0.12) inset;
    -webkit-box-shadow: 0 1px 3px rgba(2, 3, 3, 0.12) inset;
    -moz-box-shadow: 0 1px 3px rgba(2, 3, 3, 0.12) inset;
    -o-box-shadow: 0 1px 3px rgba(2, 3, 3, 0.12) inset;
    -ms-box-shadow: 0 1px 3px rgba(2, 3, 3, 0.12) inset;
}

/* -----[ BUTTONS ]------------------------------------------------------------------------------ */

#smartAlertButtons {
    border-top: 1px solid #d9d9d9;
    padding: 12px 13px 13px;
    background: #f7f7f8;
}

#smartAlert[data-webkit] #smartAlertButtons,
#smartAlert[data-opera] #smartAlertButtons,
#smartAlert[data-ie="8"] #smartAlertButtons,
#smartAlert[data-ie="7"] #smartAlertButtons {
    border-radius: 0 0 2px 2px;
}

.smartAlertButton {
    margin-left: 11px;
    border: solid 1px #c5c5c5;
    padding: 9px 22px 7px;
    min-width: 32px;
    font-weight: bold;
    line-height: 13px;
    color: #63737f;
    text-shadow: 0 -1px 1px #fff;
    background-color: #f1f2f3;
    background-image: linear-gradient(#f8f9f9 1%, #eaebed);
    background-image: -webkit-linear-gradient(#f8f9f9 1%, #eaebed);
    background-image: -moz-linear-gradient(#f8f9f9 1%, #eaebed);
    background-image: -o-linear-gradient(#f8f9f9 1%, #eaebed);
    background-image: -ms-linear-gradient(#f8f9f9 1%, #eaebed);
    -pie-background: linear-gradient(#f8f9f9 1%, #eaebed);
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px rgba(255, 255, 255, 0.2) inset;
    -webkit-box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px rgba(255, 255, 255, 0.2) inset;
    -moz-box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px rgba(255, 255, 255, 0.2) inset;
    -ms-box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px rgba(255, 255, 255, 0.2) inset;
    -o-box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px rgba(255, 255, 255, 0.2) inset;

}

.smartAlertButton:hover {
    border: solid 1px #b6b6c2;
    background-color: #e4e4e5;
    background-image: linear-gradient(#f3f3f3, #d6d5d8);
    background-image: -webkit-linear-gradient(#f3f3f3, #d6d5d8);
    background-image: -moz-linear-gradient(#f3f3f3, #d6d5d8);
    background-image: -o-linear-gradient(#f3f3f3, #d6d5d8);
    background-image: -ms-linear-gradient(#f3f3f3, #d6d5d8);
    -pie-background: linear-gradient(#f3f3f3, #d6d5d8);
    box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px rgba(255, 255, 255, 0.2) inset;
    -webkit-box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px rgba(255, 255, 255, 0.2) inset;
    -moz-box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px rgba(255, 255, 255, 0.2) inset;
    -ms-box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px rgba(255, 255, 255, 0.2) inset;
    -o-box-shadow: 0 1px rgba(2, 3, 3, 0.05), 0 1px rgba(255, 255, 255, 0.2) inset;
}

.smartAlertButton.smartAlertActive {
    border: 1px solid #9999ab;
    box-shadow: 0 0 5px rgba(98, 111, 129, 0.3), 0 2px rgba(255, 255, 255, 0.2) inset;
    -webkit-box-shadow: 0 0 5px rgba(98, 111, 129, 0.3), 0 2px rgba(255, 255, 255, 0.2) inset;
    -moz-box-shadow: 0 0 5px rgba(98, 111, 129, 0.3), 0 2px rgba(255, 255, 255, 0.2) inset;
    -o-box-shadow: 0 0 5px rgba(98, 111, 129, 0.3), 0 2px rgba(255, 255, 255, 0.2) inset;
    -ms-box-shadow: 0 0 5px rgba(98, 111, 129, 0.3), 0 2px rgba(255, 255, 255, 0.2) inset;
}

.smartAlertButton.smartAlertClick {
    border: solid 1px #b6b6c2;
    background-color: #e4e4e5;
    background-image: linear-gradient(#d6d5d8, #f3f3f3 50%);
    background-image: -webkit-linear-gradient(#d6d5d8, #f3f3f3 50%);
    background-image: -moz-linear-gradient(#d6d5d8, #f3f3f3 50%);
    background-image: -o-linear-gradient(#d6d5d8, #f3f3f3 50%);
    background-image: -ms-linear-gradient(#d6d5d8, #f3f3f3 50%);
    -pie-background: linear-gradient(#d6d5d8, #f3f3f3 50%);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) inset;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) inset;
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) inset;
    -ms-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) inset;
    -o-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) inset;
}