/*
 * X-Panel HTML5 Web Component by Martin Ivanov (@wemakesitesnet)
 * More info regarding this exciting new technology: http://webcomponents.org/, http://www.x-tags.org/, http://www.polymer-project.org/
 * @author Martin Ivanov
 * @url developer website: http://wemakesites.net/
 * @url developer twitter: https://twitter.com/wemakesitesnet
 * @url developer blog http://martinivanov.net/
 **/

/*
 * USAGE:
 * 1. If you are planning to use this component for a personal project, please retain the credits in the code. Donation (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QFUHPWJB2JDBS), however is highly appreciated.
 * 2. If you will use it on a live website, donation (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QFUHPWJB2JDBS) is required. 
 **/

acidjs-xpanel,
acidjs-xpanel-drawer,
acidjs-xpanel > label
{
    display: block;
    box-sizing: border-box;
}

acidjs-xpanel-drawer,
acidjs-xpanel > input,
acidjs-xpanel > input + label::after
{
    position: absolute;
}

acidjs-xpanel > input,
acidjs-xpanel-drawer
{
    clip: rect(0, 0, 0, 0);
}

acidjs-xpanel-drawer,
acidjs-xpanel > label span
{
    font: normal 12px/16px Helvetica, Arial, Sans-serif;
}

acidjs-xpanel > label *,
acidjs-xpanel > input + label::after
{
    display: inline-block;
}

acidjs-xpanel > label img,
acidjs-xpanel > label span
{
    margin: 4px;
}

acidjs-xpanel > label:hover,
acidjs-xpanel > input:checked:not(:disabled) + label
{
    background: #ccc;
    color: #333;
}

acidjs-xpanel,
acidjs-xpanel-drawer
{
    overflow: auto;
}

acidjs-xpanel > input:disabled + label
{
    opacity: .5;
    -webkit-pointer-events: none;
    -moz-pointer-events: none;
    pointer-events: none;
}

acidjs-xpanel > input:checked:not(:disabled) + label + acidjs-xpanel-drawer
{
    border-color: #bdbdbd;
}

acidjs-xpanel-drawer
{
    border: solid 1px rgba(255, 255, 255, 0);
    border-left: 0;
    border-right: 0;
    padding: 4px;
    cursor: default;
    opacity: 0;
    transition: opacity .2s ease-in;
    background: #e6e6e6;
}

acidjs-xpanel-drawer:last-child
{
    border-bottom: 0;
}

acidjs-xpanel > input
{
    outline: 0;
}

acidjs-xpanel
{
    border: solid 1px #bdbdbd;
    visibility: hidden;
}

acidjs-xpanel > label *
{
    vertical-align: middle;
    white-space: nowrap;
}

acidjs-xpanel > label
{
    position: relative;
    cursor: pointer;
    color: #666;
    transition: all .2s ease-in;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

acidjs-xpanel > label span
{
    text-overflow: ellipsis;
    overflow: hidden;
}

acidjs-xpanel > label img + span
{
    margin-left: 0;
}

acidjs-xpanel > input:checked:not(:disabled) + label + acidjs-xpanel-drawer
{
    position: static;
    opacity: 1;
}

acidjs-xpanel > input + label::after
{
    content: "\25b6";
    top: 50%;
    right: 0;
    margin: -8px 0 0 0;
    width: 16px;
    height: 16px;
    font-size: 9px;
    font-weight: bold;
    line-height: 16px;
    transition: transform .2s ease-in;
    text-align: center;
}

acidjs-xpanel > input:checked:not(:disabled) + label::after
{
    content: "\25bc";
}