@import "../../../bootstrap/variables";
@import "mixins";

.panel-page-account {
    .content-system {
        display: none;
    }

    section.panel-pane.pane-mkbh-account-page {
        margin: 0;

        &.pane-mkbh-account-page-account-form-account .pane-content {
            margin: 0;
        }

        fieldset.panel-default {
            border: none;
            box-shadow: none;
            border-top: 1px solid #c1041f;
            background-color: #fafafa;

            legend.panel-heading {
                float: left;
                width: 100%;
                background-color: transparent;
                border-bottom: none;
                margin-bottom: 0;
                padding-bottom: 0;

                .panel-title {
                    font-family: 'Caecilia LT Std', sans-serif;
                    font-size: 22px;
                    padding-bottom: 10px;
                    border-bottom: 1px solid #b3b3b3;
                }
            }

            .panel-body {
                overflow: hidden;
            }
        }

        .alert {
            margin-top: 0;
            margin-bottom: 10px;
        }

        .form-actions {
            overflow: hidden;
        }

        .btn {
            position: relative;
            float: right;
            display: block;
            width: auto;
            background-color: black;
            border: 0;
            border-radius: 0;
            color: white;
            font-family: 'Montserrat', sans-serif;
            font-weight: normal;
            letter-spacing: 0.04em;
            padding: 12px 18px;
            font-size: 14px;
            .transition(all 175ms cubic-bezier(0.250, 0.100, 0.250, 1.000));

            .ajax-progress.ajax-progress-throbber {
                position: absolute;
                top: 5px;
                right: 10px;
                background: url("../../images/svg/loading-bars.svg") 50% 50% no-repeat;
                background-size: 100%;
                width: 25px;
                height: 32px;

                i.glyphicon {
                    display: none;
                }
            }

            &.progress-disabled {
                padding-right: 50px;
            }

            &.stripe-charge-processing {
                background: url("../../images/svg/loading-default-red.svg") 100% 0 no-repeat;
                background-size: 20%;

                color: rgba(255, 255, 255, 0);
                pointer-events: none;
            }
        }

        form.mkbh-account-page-form-account {
            & > div {
                display: -webkit-box;
                display: -webkit-flex;
                display: -ms-flexbox;
                display: flex;

                & > .asaf-area-wrapper {
                    -webkit-box-flex: 1;
                    -webkit-flex: 1;
                    -ms-flex: 1;
                    flex: 1;
                }

                & > .asaf-area-wrapper[id*="account-area-wrapper"] {
                    padding-right: 7px;
                }

                & > .asaf-area-wrapper[id*="security-area-wrapper"] {
                    padding-left: 7px;
                }

                @media screen and (max-width: @screen-xs-max) {
                    display: block;
                }
            }
        }

        form.mkbh-account-page-form-newsletter {
            .form-item-subscriptions {
                margin-top: 0;

                input[type="checkbox"] {
                    display: none;

                    & + label,
                    & + .ajax-progress + label {
                        -webkit-user-select: none;
                        -moz-user-select: none;
                        -ms-user-select: none;
                        user-select: none;
                        padding: 0;
                    }

                    & + label:before,
                    & + .ajax-progress + label:before {
                        content: '';
                        display: inline-block;
                        width: 20px;
                        height: 20px;
                        background: url("../../images/svg/checkbox_unchecked.svg") 50% 50% no-repeat;
                        background-size: 100%;
                        position: relative;
                        top: 5px;
                        margin-right: 5px;
                        -webkit-backface-visibility: hidden;
                        -webkit-transform: translateZ(0) scale(1, 1);
                    }

                    &:checked + label:before,
                    &:checked + .ajax-progress + label:before {
                        background-image: url("../../images/svg/checkbox_checked.svg");
                    }

                    &.progress-disabled + label,
                    &.progress-disabled + .ajax-progress + label {
                        opacity: 0.5;
                    }
                }

                .ajax-progress.ajax-progress-throbber {
                    display: none;
                }
            }
        }

        form.mkbh-account-page-form-membership {
            fieldset.panel-default {
                .panel-body {
                    p {
                        font-family: 'Caecilia LT Std', sans-serif;
                        font-size: 16px;
                        margin-top: 0;
                        margin-bottom: 10px;
                    }

                    select {
                        width: auto;

                        &, option, optgroup {
                            font-family: 'Caecilia LT Std', sans-serif;
                            font-weight: 400 !important;
                            font-size: 16px;
                            color: #1a1a1a;
                        }
                    }

                    small.hint {
                        display: inline-block;

                        margin-top: 5px;
                        margin-bottom: 5px;

                        opacity: 0.8;

                        &.block {
                            display: block;
                        }
                    }

                    .subscription-sub-accounts {
                        margin-bottom: 0;

                        .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
                            background-color: #fff;
                            color: #c3c3c3;

                            pointer-events: none;
                        }

                        .form-text {
                            font-size: 15px;
                            max-width: 450px;
                        }

                        .form-item-sub-account--master {
                            margin-bottom: 0;
                        }

                        [class*="form-item-sub-account--employee-"] {
                            display: flex;
                            margin-bottom: 10px;

                            &.form-item-sub-account--employee-1 {
                                margin-top: 10px;
                            }

                            &:last-of-type {
                                margin-bottom: 0;
                            }

                            input, button {
                                flex: 0 0 auto
                            }

                            button {
                                padding: 2px 15px;
                                margin-left: 10px;

                                border: none;
                                font-family: 'Montserrat', sans-serif;

                                &:active, &:focus {
                                    outline: none;
                                }

                                &[data-action="business-sub-account-edit"] {
                                    background: black;
                                    color: white;

                                    &[data-state="edit"] {
                                        background: #3f7c1d;
                                    }
                                }

                                &[data-action="business-sub-account-delete"] {
                                    background: #c1041f;
                                    color: white;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.page-user-reset .panel-user-reset {
    margin-top: 15px;
    margin-bottom: 0;
    background-color: #fafafa;

    .panel-heading {
        .page-header {
            font-size: 22px;
            font-family: 'Caecilia LT Std', sans-serif;
            margin: 0;
            padding-bottom: 0;
            border-bottom: 0;
        }
    }

    .panel-body {
        p {
            font-family: 'Caecilia LT Std', sans-serif;
            font-size: 16px;
            margin-top: 0;
            margin-bottom: 10px;
        }

        .btn-default {
            position: relative;
            display: block;
            width: auto;
            background-color: black;
            border: 0;
            color: white;
            font-family: 'Montserrat', sans-serif;
            font-weight: normal;
            letter-spacing: 0.04em;
            -ms-transition: all 175ms cubic-bezier(0.25, 0.1, 0.25, 1);
            transition: all 175ms cubic-bezier(0.25, 0.1, 0.25, 1);
            -webkit-transition: all 175ms cubic-bezier(0.25, 0.1, 0.25, 1);
            -moz-transition: all 175ms cubic-bezier(0.25, 0.1, 0.25, 1);
            -o-transition: all 175ms cubic-bezier(0.25, 0.1, 0.25, 1);
        }
    }
}
