/* 
    @author: Vafa Karamzadegan
    @ts: 1399-08-06

 Headings and messagebox
================================================== */

.heading-message{
    position: relative;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 15px;
    border: solid 1px #666;
    color: #333;
    border-radius: 5px;
}
.heading-message .heading{
    color: inherit;
}
.heading-message p{
    color: inherit;
}

.heading-message.basic{
    padding: 0;
    border: none;
}
.heading-message.basic p{
    margin: 0;
}

.heading-message.green{
    background-color: #fcfff5;
    color: #2c662d;
    box-shadow: 0 0 0 1px #a3c293 inset, 0 0 0 0 transparent;
}
.heading-message.green:hover{
    background-color: #f0f8dc;
}

.heading-message.with-img{
    padding-right: 72px;
}
.heading-message.with-img .img{
    position: absolute;
    right: 15px;
    top: calc(50% - 24px);
    height: 48px;
    width: 48px;
    object-position: center;
    object-fit: contain;
}


/* Label styles
================================================== */
.label{
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
    margin: 0 .14285714em;
    background-color: #e8e8e8;
    background-image: none;
    padding: .5833em .833em;
    color: rgba(0,0,0,.6);
    text-transform: none;
    font-weight: 700;
    border: 0 solid transparent;
    border-radius: .28571429rem;
    -webkit-transition: background .1s ease;
    transition: background .1s ease;
}
.label:last-child {
    margin-left: 0;
}
.label:last-child {
    margin-right: 0;
}
.label>img {
    width: auto!important;
    vertical-align: middle;
    height: 2.1666em!important;
}
.link.label:hover{
    color: rgba(0,0,0,.6);
    background-color: #d7d7d7;
}

/* Accordion styles
================================================== */

.accordion {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5);
}

.accordion input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}
  
.accordion .tab {
    width: 100%;
    overflow: hidden;
}
.accordion .tab-label {
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: justify;
            justify-content: space-between;
    padding: 1em;
    background: #333333;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    color: white !important;
    /* Icon */
}
.accordion .tab-label:hover {
    background: #222222;
}
.accordion .tab-label::after {
    content: "\276F";
    width: 1em;
    height: 100%;
    text-align: center;
    -webkit-transition: all .35s;
    transition: all .35s;
    direction: ltr;
    transform-origin: center;
    -webkit-transform: rotate(90deg);
            transform: rotate(90deg);
}
.accordion .tab-content {
    max-height: 0;
    padding: 0 1em;
    color: #2c3e50;
    background: white;
    -webkit-transition: all .35s;
    transition: all .35s;
    overflow: auto;
}
  
.accordion input:checked + .tab-label {
    background: #222222;
}
.accordion input:checked + .tab-label::after {
    -webkit-transform: rotate(-90deg);
            transform: rotate(-90deg);
}
.accordion input:checked ~ .tab-content {
    max-height: 100vh;
    padding: 1em;
}