/**
 * Table of Contents
 *
 * 1.0 - Basic HTML
 * 2.0 - Rich components
 *  2.1 - Dropdown button
 * -----------------------------------------------------------------------------
 */

/**
 * 1.0 - Basic HTML
 * -----------------------------------------------------------------------------
 */

.h4a-strikethrough{
    text-decoration: line-through;
}

.h4a-button{
    display: inline-flex !important;
    align-items: center;
}

.h4a-button > span.dashicons::before{
    margin: 0;
    padding: 0;
    line-height: 24px;
}

.h4a-button-warn{
    color: #ca4a1f !important;
    border-color: #ca4a1f !important;
}

/**
 * 2.0 - Rich components
 * -----------------------------------------------------------------------------
 */

/* 2.1 - Dropdown button */

.h4a-dropdown {
    display: inline-block;
    position: relative;
}

.h4a-dropdown-button {
    display: inline-block;
    border: 1px solid gray;
    border-radius: 4px;
    padding: 10px 30px 10px 20px;
    background-color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
}

.h4a-dropdown-button:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid black;
}

.h4a-dropdown-button:hover {
    background-color: #eeeeee;
}


.h4a-dropdown-input {
    display: none !important;
}

.h4a-dropdown-menu {
    position: absolute;
    top: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0;
    margin: 2px 0 0 0;
    box-shadow: 0 0 6px 0 rgba(0,0,0,0.1);
    background-color: #ffffff;
    list-style-type: none;
}

.h4a-dropdown-input + .h4a-dropdown-menu {
    display: none;
}

.h4a-dropdown-input:checked + .h4a-dropdown-menu {
    display: block;
}

.h4a-dropdown-menu li {
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
    height: 28px;
}

.h4a-dropdown-menu li:hover {
    background-color: #f6f6f6;
}

.h4a-dropdown-menu li .h4a-button{
    background: transparent;
    height: inherit;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border: none;
    padding: 0 5px;
}

.h4a-dropdown-menu li a {
    display: block;
    margin: -10px -20px;
    padding: 10px 20px;
}

.h4a-dropdown-menu li.ha4-divider{
    padding: 0;
    border-bottom: 1px solid #cccccc;
}
