/* Top level is idpSelectIdPSelector */

#idpSelectIdPSelector {
    width: 389px;
    text-align: left;
    background-color: #FFFFFF;
    padding: 5px 0px;
}


/* Next down are the idpSelectPreferredIdPTile, idpSelectIdPEntryTile & idpSelectIdPListTile */


/** 
 * The preferred IdP tile (if present) has a specified height, so
 * we can fit the preselected * IdPs in there
 */

#idpSelectPreferredIdPTile {
    height: 138px;
    /* Force the height so that the  selector box
                   * goes below when there is only one preslect 
                   */
}

#idpSelectPreferredIdPTileNoImg {
    height: 60px;
}


/***
 *  The preselect buttons
 */

div.IdPSelectPreferredIdPButton {
    margin: 3px;
    width: 120px;
    /* Make absolute because 3 of these must fit inside 
                      div.IdPSelect{width} with not much each side. */
    float: left;
}


/*
 *  Make the entire box look like a hyperlink
 */

div.IdPSelectPreferredIdPButton a {
    float: left;
    width: 99%;
    /* Need a specified width otherwise we'll fit
                   the contents which we don't want because
                   they have auto margins */
}

div.IdPSelectTextDiv {
    height: 3.5ex;
    /* Add some height to separate the text from the boxes */
    font-size: 15px;
    clear: left;
}

div.IdPSelectPreferredIdPImg {
    /*  max-width: 95%; */
    height: 69px;
    /* We need the absolute height to force all buttons to the same size */
    margin: 2px;
}

img.IdPSelectIdPImg {
    width: auto;
}

div.IdPSelectPreferredIdPButton img {
    display: block;
    /* Block display to allow auto centring */
    max-width: 114px;
    /* Specify max to allow scaling, percent does work */
    max-height: 64px;
    /* Specify max to allow scaling, percent doesn't work */
    margin-top: 3px;
    margin-bottom: 3px;
    border: solid 0px #000000;
    /* Strip any embellishments the brower may give us */
    margin-left: auto;
    /* Auto centring */
    margin-right: auto;
    /* Auto centring */
}

div.IdPSelectPreferredIdPButton div.IdPSelectTextDiv {
    text-align: center;
    font-size: 12px;
    font-weight: normal;
    max-width: 95%;
    height: 30px;
    /* Specify max height to allow two lines.  The 
                         * Javascript controlls the max length of the
                         * strings 
                         */
}


/*
 * Force the size of the selectors and the buttons
 */

#idpSelectInput,
#idpSelectSelector {
    width: 60%;
    margin-bottom: 0;
}


/*
 * For some reason a <select> width includes the border and an
 * <input> doesn't hence we have to force a margin onto the <select>
 */

#idpSelectSelector {
    margin-right: 2px;
}

#idpSelectSelectButton,
#idpSelectListButton {
    margin-left: 5px;
    width: auto;
}

#idpSelectSelectButton,
#idpSelectListButton {
    padding-left: 2px;
    padding-right: 2px;
    background: #338caf;
    display: inline-block;
    margin-bottom: 0;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid #357ebd;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.428571429;
    border-radius: 4px;
    -webkit-user-select: none;
    opacity: 1;
    vertical-align: top;
}

#idpSelectSelectButton:hover,
#idpSelectListButton:hover {
    background: #a6ce39;
    border: 1px solid #a6ce39;
}


/*
 * change underlining of HREFS
 */

#idpSelectIdPSelector a:link {
    text-decoration: none;
}

#idpSelectIdPSelector a:visited {
    text-decoration: none;
}

#idpSelectIdPSelector a:hover {
    text-decoration: none;
}


/* 
 * Arrange to have the dropdown/list aref on the left and the 
 * help button on the right 
 */

a.IdPSelectDropDownToggle {
    display: inline-block;
    width: 80%;
    text-decoration: none;
}

a.IdPSelectDropDownToggle:visited,
a.IdPSelectDropDownToggle:hover {
    text-decoration: none;
}

a.IdPSelectHelpButton {
    display: none;
    text-align: right;
    width: 20%;
}


/**
 * Drop down (incremental search) stuff - see the associated javascript for reference
 */

ul.IdPSelectDropDown {
    -moz-box-sizing: border-box;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: small;
    box-sizing: border-box;
    list-style: none;
    padding-left: 0px;
    border: 1px solid black;
    z-index: 6;
    position: absolute;
}

ul.IdPSelectDropDown li {
    background-color: white;
    cursor: default;
    padding: 0px 3px;
}

ul.IdPSelectDropDown li.IdPSelectCurrent {
    background-color: #3366cc;
    color: white;
}


/* Legacy */

div.IdPSelectDropDown {
    -moz-box-sizing: border-box;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: small;
    box-sizing: border-box;
    border: 1px solid black;
    z-index: 6;
    position: absolute;
}

div.IdPSelectDropDown div {
    background-color: white;
    cursor: default;
    padding: 0px 3px;
}

div.IdPSelectDropDown div.IdPSelectCurrent {
    background-color: #3366cc;
    color: white;
}


/* END */