/* --------------------------------------------------
   Icons
-------------------------------------------------- */

.fa-paper-plane:before {
    color: #fafafa;
    margin-right: 2px;
    font-size: 16px;
}

.ui-slideouttab-ready .fa-paper-plane:before {
    margin-left: 10px;
    margin-right: 5px;
}

.ui-slideouttab-ready:not(.ui-slideouttab-open) .fa-paper-plane:before {
    margin-left: -6px;
}

.ui-slideouttab-handle > .fa-icon {
    margin-left: 0;
    top: 1px;
    position: relative;
}

.fa.fa-icon.fa-minus {
    float: right;
    top: 11px;
    right: 14px;
    position: relative;
}


/* --------------------------------------------------
   Contact Form 7
-------------------------------------------------- */

.cf7_wrapper_slideouttab input[type="submit"] {
    width: 47%;
    font-weight: 700;
    margin-left: auto;
    margin-right: auto;
    display: block;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.cf7_wrapper_slideouttab .wpcf7-spinner {
    display: none;
}

.cf7_wrapper_slideouttab label {
    color: #fff;
}

.cf7_wrapper_slideouttab .wpcf7-response-output {
    color: #fff;
}

.cf7_wrapper_slideouttab .cf7_header_text {
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    margin-top: 8px;
    margin-bottom: 6px !important;
    color: #fff;
    transform: scale(1, 1.2);
    padding-top: 8px;
    padding-bottom: 7px;
}

.cf7_wrapper_slideouttab .cf7_text {
    line-height: 1.2;
    color: #fff;
    font-size: 14px;
    margin-top: -26px;
    padding-left: 3px;
    padding-right: 3px;
}

.cf7_wrapper_slideouttab p:nth-child(3) {
    margin-bottom: 0;
}

.cf7_wrapper_slideouttab input:not([type="submit"]),
.cf7_wrapper_slideouttab select,
.cf7_wrapper_slideouttab textarea {
    font-size: 16px;
}

.cf7_wrapper_slideouttab .wpcf7-email {
    height: 40px;
}


/* --------------------------------------------------
   Slideout panel
-------------------------------------------------- */

.slideouttab_cf7 {
    display: block;
    width: 316px;
    height: auto;
}

.ui-slideouttab-panel {
    border-left-color: #1a1a1a;
    border-right-color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    background: #000 !important;

    width: 350px;
    box-sizing: border-box;

    padding-left: 15px;
    padding-right: 15px;
}

.ui-slideouttab-panel .handle {
    color: #000;
    font-weight: 600 !important;
    background-color: #01ca0f !important;
    border: 1px solid #01ca0f;
    text-transform: uppercase;

    /* Högre handle */
    height: 36px !important;
    min-height: 36px !important;
    line-height: 34px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
}


/* --------------------------------------------------
   Handle / button
-------------------------------------------------- */

.ui-slideouttab-handle {
    box-shadow: rgba(0, 0, 0, 0.1) -5px 5px 21px 0 !important;
    width: 170px;
    height: 36px !important;
    min-height: 36px !important;
    box-sizing: border-box;
    text-align: center;
    font-size: 13px;
}

.ui-slideouttab-ready {
    z-index: 999999999999;
}

.ui-slideouttab-ready:not(.ui-slideouttab-open) .handle {
    height: 36px !important;
    min-height: 36px !important;
    line-height: 34px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    text-align: center;
}

.ui-slideouttab-handle-reverse {
    top: -36px !important;
}


/* --------------------------------------------------
   Open state
-------------------------------------------------- */

.ui-slideouttab-open {
    box-shadow: rgba(0, 0, 0, 0.3) -5px 5px 21px 0;
    padding-top: 0;
}

.ui-slideouttab-open .handle {
    box-shadow: rgba(0, 0, 0, 0.3) -5px 5px 21px 0;
    width: 350px;

    height: 36px !important;
    min-height: 36px !important;
    line-height: 34px !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 7px;

    text-align: center;
    transition: width 0s;
}

.ui-slideouttab-handle:hover,
.ui-slideouttab-handle:focus {
    color: #000;
    text-decoration: none;
}

.ui-slideouttab-open input[type="email"],
.ui-slideouttab-open textarea {
    max-width: 316px;
    min-width: 316px;
}


/* --------------------------------------------------
   Mobile
-------------------------------------------------- */

@media screen and (max-width: 767px) {

    .slideouttab_cf7 {
        width: 292px;
    }

    .ui-slideouttab-panel {
        width: 326px;
    }

    .ui-slideouttab-open input[type="email"],
    .ui-slideouttab-open textarea {
        max-width: 292px;
        min-width: 292px;
    }

    .ui-slideouttab-ready:not(.ui-slideouttab-open) .handle {
        width: 150px;
        height: 36px !important;
        min-height: 36px !important;
        line-height: 34px !important;
    }

    .ui-slideouttab-handle {
        height: 36px !important;
        min-height: 36px !important;
        font-size: 11px;
    }

    .ui-slideouttab-open .handle {
        width: 326px;
        height: 36px !important;
        min-height: 36px !important;
        line-height: 34px !important;
        text-align: center;
    }

    .ui-slideouttab-handle-reverse {
        top: -36px !important;
    }

    .cf7_wrapper_slideouttab .cf7_header_text {
        font-weight: 500;
        font-size: 18px;
    }

    .fa-paper-plane:before {
        font-size: 15px;
    }

    .ui-slideouttab-ready:not(.ui-slideouttab-open) .fa-paper-plane:before {
        margin-left: -2px;
    }

    .ui-slideouttab-ready .fa-paper-plane:before {
        margin-left: 11px;
    }
}

/* Fix: linjera gröna slideout-handtaget på mobil */
@media screen and (max-width: 767px) {
    .ui-slideouttab-open .handle {
        left: -2px !important;
        transform: translateX(-0.5px);
    }
}