/****************** BUTTONS REVISITED - new buttons are rendered by HtmlHelper.Button *********************/

/**** default box model styling ****/

div.button
{
    vertical-align: middle;
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
    height: 43px;
}

div.button.hidden 
{
    display: none;
}

div.button a,
div.button input,
div.button span.left,
div.button span.right
{    
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

div.button:hover,
div.button:hover a,
div.button:hover input,
div.button:hover span.left,
div.button:hover span.right 
{
    cursor: pointer;
}

div.button.disabled:hover,
div.button.disabled:hover a,
div.button.disabled:hover input,
div.button.disabled:hover span.left,
div.button.disabled:hover span.right 
{
    cursor: default;
} 

/**** default horizontal styling ****/

div.button input,
div.button a,
div.button span.left
{
    z-index: 2;
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
    outline: 0;
}

/* span.right is overlapping the "input" and "a" elements and contains left-tile part of the background image */
div.button span.right
{
    width: 94%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 0;
}

/* removing extra padding in input for Firefox */
div.button input::-moz-focus-inner 
{
    padding: 0 !important;
    border: 0 none !important;
}

/**** default vertical and text styling ****/

div.button input,
div.button a,
div.button span.left,
div.button span.right
{
    /* following 4 rules needs to be changed for "smaller" and "small" buttons - or if the text position needs to be fixed because of the background image */
    padding-top: 9px;
    height: 16px;
    font-size: 16px;
    padding-bottom: 18px;
    
    text-decoration: none;
    text-align: left;
    color: white;
}

/* in some browsers - the box model for input field is border-box - so we need to fix this to be compatible with other styling */
div.button input
{
    -moz-box-sizing: content-box !important;
    -webkit-box-sizing: content-box !important;
    box-sizing: content-box !important;
}

/**** default image settings - for normal sized buttons - without "smaller" or "small" class ****/

/** default **/

div.button input,
div.button a,
div.button span.left,
div.button span.right
{
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: right -43px;
}

div.button span.right 
{
    background-position: left -43px;
}

/** hover **/

div.button:hover input,
div.button:hover a,
div.button:hover span.left,
div.button.smaller:hover input,
div.button.smaller:hover a,
div.button.smaller:hover span.left,
div.button.small:hover input,
div.button.small:hover a,
div.button.small:hover span.left,
div.button.btn39:hover input,
div.button.btn39:hover a,
div.button.btn39:hover span.left,
div.button.btn37:hover input,
div.button.btn37:hover a,
div.button.btn37:hover span.left
{
    background-position: right 0;
}
div.button:hover span.right,
div.button.smaller:hover span.right,
div.button.small:hover span.right,
div.button.btn39:hover span.right,
div.button.btn37:hover span.right
{
    background-position: left 0;
}

/** disabled **/

div.button.cancel.disabled input,
div.button.cancel.disabled:hover input,
div.button.cancel.disabled span.left,
div.button.cancel.disabled:hover span.left,
div.button.cancel.disabled a,
div.button.cancel.disabled:hover a,
div.button.submit.disabled input,
div.button.submit.disabled:hover input,
div.button.submit.disabled span.left,
div.button.submit.disabled:hover span.left,
div.button.submit.disabled a,
div.button.submit.disabled:hover a
{
    background-position: right -86px;
}

div.button.cancel.disabled span.right,
div.button.cancel.disabled:hover span.right,
div.button.submit.disabled span.right,
div.button.submit.disabled:hover span.right
{
    background-position: left -86px;
}

/************** simple BLACK button and BLACK button with WHITEOUTLINE **************/

div.button.black input,
div.button.black a,
div.button.black span.left
{
    background-image: url(../../Images/Buttons/43_black_right_cap.png?1);
}

div.button.black span.right
{
    background-image: url(../../Images/Buttons/43_black_left_tile.png?1);
}

div.button.black.whiteoutline input,
div.button.black.whiteoutline a,
div.button.black.whiteoutline span.left
{
    background-image: url(../../Images/Buttons/43_black_right_cap_plus.png?1);
}

div.button.black.whiteoutline span.right
{
    background-image: url(../../Images/Buttons/43_black_outline_left_tile.png?1);
}

/************** simple RED button **************/

div.button.red input,
div.button.red a,
div.button.red span.left
{
    background-image: url(../../Images/Buttons/43_red_right_cap.png?1);
}

div.button.red span.right
{
    background-image: url(../../Images/Buttons/43_red_left_tile.png?1);
}

/**** SUBMIT button ****/

div.button.submit input,
div.button.submit a,
div.button.submit span.left
{
    min-width: 98px;
    padding-right: 47px;
    background-image: url(../../Images/Buttons/43_red_right_cap_checkmark.png?1);
}

div.button.submit span.right
{
    background-image: url(../../Images/Buttons/43_red_left_tile.png?1);
}

div.button.submit.disabled input,
div.button.submit.disabled:hover input,
div.button.submit.disabled span.right,
div.button.submit.disabled:hover span.right 
{
    padding-top: 10px;
    height: 16px;
    font-size: 16px;
    padding-bottom: 17px;
}

/**** CANCEL button ****/

/** default **/

div.button.cancel input,
div.button.cancel a,
div.button.cancel span.left
{
    padding-right: 45px;
    min-width: 100px;
    color: black;
    background-image: url(../../Images/Buttons/43_silver_right_cap_cross.png?1);
}

div.button.cancel span.right 
{
    background-image: url(../../Images/Buttons/43_silver_left_tile.png?1);
}

/** default **/

div.button.silver input,
div.button.silver a,
div.button.silver span.left
{
    min-width: 100px;
    color: black;
    background-image: url(../../Images/Buttons/43_silver_right_cap.gif?1);
}

div.button.silver span.right 
{
    background-image: url(../../Images/Buttons/43_silver_left_tile.png?1);
}

/** disabled - because of disabled cancel button image is higher, we need to specify following stylesheet rules **/

div.button.cancel.disabled a,
div.button.cancel.disabled:hover a,
div.button.cancel.disabled span.left,
div.button.cancel.disabled:hover span.left 
{
    color: #bfbfbf;
    
    padding-top: 10px;
    height: 16px;
    font-size: 16px;
    padding-bottom: 19px;
}

/************** PROCEED_RED and PROCEED_BLACK buttons (with arrow on the right side) **************/

div.button.proceed_red input,
div.button.proceed_red a,
div.button.proceed_red span.left
{
    min-width: 105px;    
    padding-right: 40px;
    background-image: url(../../Images/Buttons/43_red_right_cap_arrow.png?1);
}

div.button.proceed_red span.right
{
    background-image: url(../../Images/Buttons/43_red_left_tile.png?1);
}

div.button.proceed_black input,
div.button.proceed_black a,
div.button.proceed_black span.left
{
    min-width: 105px;
    padding-right: 40px;
    background-image: url(../../Images/Buttons/43_black_right_cap_arrow.png?1);
}

div.button.proceed_black span.right
{
    background-image: url(../../Images/Buttons/43_black_left_tile.png?1);
}

/************** ADD button (with plus sign on the left side) **************/

/* fix vertical align of text for ADD button */
div.button.add input,
div.button.add a,
div.button.add span.right,
div.button.add span.left
{
    padding-top: 10px;
    height: 16px;
    font-size: 16px;
    padding-bottom: 17px;    
}

div.button.add input,
div.button.add a,
div.button.add span.left
{
    padding-left: 40px;
    padding-right: 20px;
    background-image: url(../../Images/Buttons/43_black_right_cap_plus.png?1);
    text-align: right;
}

div.button.add span.right
{
    background-image: url(../../Images/Buttons/43_black_left_tile_plus.png?1);
}

/************** DELETE button (with trash icon on the right side) **************/

/* fix vertical align of text for DELETE button */
div.button.delete input,
div.button.delete a,
div.button.delete span.left,
div.button.delete span.right 
{
    padding-top: 10px;
    height: 16px;
    font-size: 16px;
    padding-bottom: 17px;    
}

div.button.delete input,
div.button.delete a,
div.button.delete span.left
{
    color: black;
    padding-right: 40px;
    background-image: url(../../Images/Buttons/43_silver_right_cap_trash.png?1);
}

div.button.delete span.right
{
    background-image: url(../../Images/Buttons/43_silver_left_tile.png?1);
}

/************** SMALLER buttons default styling **************/

div.button.smaller
{
    height: 36px;
}

div.button.smaller input,
div.button.smaller a,
div.button.smaller span.left,
div.button.smaller span.right
{
    padding-top: 8px;
    height: 13px;
    font-size: 13px;
    padding-bottom: 15px;
}

div.button.smaller input,
div.button.smaller a,
div.button.smaller span.left
{
    font-weight: bold;
    background-position: right -36px;
}

div.button.smaller span.right 
{
    background-position: left -36px;    
}

/**** smaller ADD button ****/

div.button.add.smaller input,
div.button.add.smaller a,
div.button.add.smaller span.left
{
    padding-left: 40px;
    padding-right: 20px;
    background-image: url(../../Images/Buttons/36_black_right_cap.png?1);
    text-align: right;
}

div.button.add.smaller span.right
{
    background-image: url(../../Images/Buttons/36_black_left_tile_plus.png?1);
}

/**** smaller BACK button ****/
div.button.back input,
div.button.back a,
div.button.back span.right,
div.button.back span.left
{
    padding-top: 10px;
    height: 16px;
    font-size: 16px;
    padding-bottom: 17px;
    color:Black;    
}

div.button.back input,
div.button.back a,
div.button.back span.left
{
    padding-left: 40px;
    padding-right: 20px;
    background-image: url(../../Images/Buttons/43_silver_right_cap.gif?1);
    text-align: right;
}

div.button.back span.right
{
    background-image: url(../../Images/Buttons/43_silver_left_tile_arrow.png?1);
}

/************** SMALL buttons default styling **************/

div.button.small
{
    height: 30px;
}

div.button.small input,
div.button.small a,
div.button.small span.left,
div.button.small span.right
{
    padding-top: 7px;
    height: 13px;
    font-size: 13px;
    padding-bottom: 10px;
}

div.button.small input,
div.button.small a,
div.button.small span.left
{     
    background-position: right -30px;
}

div.button.small span.right 
{
    background-position: left -30px;    
}

/** small BLACK button**/

div.button.small.black input,
div.button.small.black a,
div.button.small.black span.left
{       
    background-image: url(../../Images/Buttons/30_black_right_cap.png?1);
}

div.button.small.black span.right
{
    background-image: url(../../Images/Buttons/30_black_left_tile.png?1);
}

/************** btn39 buttons default styling **************/

div.button.btn39
{
    height: 39px;
}

div.button.btn39 input,
div.button.btn39 a,
div.button.btn39 span.left,
div.button.btn39 span.right
{
    padding-top: 12px;
    height: 15px;
    font-size: 15px;
    line-height: 15px;
    padding-bottom: 12px;
}

div.button.btn39 input,
div.button.btn39 a,
div.button.btn39 span.left
{     
    background-position: right -39px;
}

div.button.btn39 span.right 
{
    background-position: left -39px;    
}

/* red btn39 */

div.button.btn39.red input,
div.button.btn39.red a,
div.button.btn39.red span.left
{       
    background-image: url(../../Images/Buttons/39_red_right_cap.png?1);
}

div.button.btn39.red span.right
{
    background-image: url(../../Images/Buttons/39_red_left_tile.png?1);
}

/* grey btn39 */

div.button.btn39.grey input,
div.button.btn39.grey a,
div.button.btn39.grey span.left
{
    color: #EBEBEB;
    background-image: url(../../Images/Buttons/39_grey_right_cap.png?1);
}

div.button.btn39.grey span.right
{
    background-image: url(../../Images/Buttons/39_grey_left_tile.png?1);
}

/************** btn37 buttons default styling **************/

div.button.btn37
{
    height: 37px;
}

div.button.btn37 input,
div.button.btn37 a,
div.button.btn37 span.left,
div.button.btn37 span.right
{
    padding-top: 12px;
    height: 13px;
    font-size: 13px;
    line-height: 13px;
    padding-bottom: 12px;
    
    text-transform: uppercase;
    font-weight: bold;
}

div.button.btn37 input,
div.button.btn37 a,
div.button.btn37 span.left
{     
    background-position: right -37px;
}

div.button.btn37 span.right 
{
    background-position: left -37px;    
}

/* red btn37 */

div.button.btn37.red input,
div.button.btn37.red a,
div.button.btn37.red span.left
{       
    background-image: url(../../Images/Buttons/37_red_right_cap.png?1);
}

div.button.btn37.red span.right
{
    background-image: url(../../Images/Buttons/37_red_left_tile.png?1);
}

/* grey btn37 */

div.button.btn37.grey input,
div.button.btn37.grey a,
div.button.btn37.grey span.left
{
    color: #EBEBEB;
    background-image: url(../../Images/Buttons/37_grey_right_cap.png?1);
}

div.button.btn37.grey span.right
{
    background-image: url(../../Images/Buttons/37_grey_left_tile.png?1);
}