/* master login */
:root {
    --_qui-masterLogin--accentColor: var(--qui-masterLogin--accentColor, var(--qui-warning, #ffbf00));
    --_qui-masterLogin--btnBg: var(--qui-masterLogin--btnBg, var(--_qui-masterLogin--accentColor));
}

.quiqqer-masterlogin__btnOpen {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    background-color: var(--_qui-masterLogin--btnBg);
    border-top-left-radius: 0.5rem;
    cursor: pointer;
    z-index: calc(100000 - 1);
    transform: translateX(110%);
}


/* user information container */
.quiqqer-masterlogin__container {
    width: min(320px, 100%);
    background: #fff;
    bottom: 0;
    padding: 2.5rem 1.5rem 1rem;
    position: fixed;
    z-index: 100000;
    right: 0;
    border-radius: 0.5rem 0 0 0;
    border-left: 2px solid #aaaaaa4a;
    border-top: 2px solid #aaaaaa4a;
    font-size: 14px;

    transform: translateX(100%);
}

.quiqqer-masterlogin__info {
    margin-bottom: 2rem;
}

.quiqqer-masterlogin__title > strong,
.quiqqer-masterlogin-logBackConfirm-box__label > strong {
    display: inline-block;
    line-height: 1;
    text-decoration: underline;
    text-decoration-color: var(--_qui-masterLogin--accentColor);
    text-decoration-style: solid;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.quiqqer-masterlogin__title > .quiqqer-masterlogin__infoIcon {
    margin-right: 0.25em;
    font-size: 1.25em;
}

.quiqqer-masterlogin-data {
    margin-bottom: 1rem;
}

.quiqqer-masterlogin-data__label {
    font-size: 0.75rem;
    opacity: 0.4;
    line-height: 1;
}

.quiqqer-masterlogin-data__value {
    display: flex;
    align-items: baseline;
    font-weight: normal;
}

.quiqqer-masterlogin-data__value:before {
    content: '';
    height: 0.5em;
    width: 0.75em;
    display: inline-block;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.1;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    position: relative;
    top: -0.25em;
    flex-shrink: 0;
}

.quiqqer-masterlogin__actionElm {
    display: block;
    padding: 0.5em 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.quiqqer-masterlogin__actionElm:before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -1rem;
    top: 0;
    width: calc(100% + 2rem);
    height: 100%;
    background-color: #f0f0f0;
    scale: 0.9;
    transition: 0.2s ease;
    opacity: 0;
    border-radius: 0.5em;
}

.quiqqer-masterlogin__actionElm:hover:before {
    scale: 1;
    opacity: 1;
}

.quiqqer-masterlogin__actionElm > .fa {
    width: 2em;
}

.quiqqer-masterlogin__btnClose {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-content: center;
    border-radius: 50%;
    background: #f0f0f0;
    transition: 0.15s color ease;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

.quiqqer-masterlogin__btnClose:not(:hover) {
    color: #97a0a3;
}

.quiqqer-masterlogin__btnClose:hover > .fa {
    animation: ease-out arrowAnimation 0.5s;
}

@keyframes arrowAnimation {
    0% {
        transform: scale(1) translateX(0);
    }

    60% {
        transform: scale(1) translateX(3rem);
    }

    61% {
        transform: scale(0) translateX(3rem);
    }

    62% {
        transform: scale(0) translateX(0);
    }

    100% {
        transform: scale(1) translateX(0);
    }
}

.quiqqer-masterlogin--fadeInFromLeft {
    opacity: 0;
}

/* Log back QUI window */
.quiqqer-masterlogin-logBackConfirm__header {
    margin-bottom: 1.5rem;
}

.quiqqer-masterlogin-logBackConfirm__title {
    margin: 0;
    font-size: var(--qui-fs-lg);
}

.quiqqer-masterlogin-logBackConfirm__text {
    margin-bottom: 2rem;
}

.quiqqer-masterlogin-logBackConfirm__boxes {
    display: flex;
}

.quiqqer-masterlogin-logBackConfirm-box {
    background: #f5f5f5;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    flex: 1;
    border: 1px solid #ddd;
}

.quiqqer-masterlogin-logBackConfirm-box__label {
    margin-bottom: 1em;
}

.quiqqer-masterlogin-logBackConfirm-box > .quiqqer-masterlogin__info {
    margin-bottom: 0;
}

.quiqqer-masterlogin-logBackConfirmIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* only for decorative purpose */
.quiqqer-masterlogin-logBackConfirmIcon:before, .quiqqer-masterlogin-logBackConfirmIcon:after {
    content: '';
    background: #fff;
    width: 100%;
    height: calc(50% - 1.5rem);
    position: absolute;
    z-index: 2;
}

.quiqqer-masterlogin-logBackConfirmIcon:before {
    left: 0;
    top: 0;
}

.quiqqer-masterlogin-logBackConfirmIcon:after {
    left: 0;
    bottom: 0;
}
/* END only for decorative purpose */

.quiqqer-masterlogin-logBackConfirmIcon__inner {
    background: #fff;
    margin: -1.5rem;
    position: relative;
    z-index: 1;
    width: 4rem;
    line-height: 4rem;
    text-align: center;
    flex-grow: 0;
    flex-shrink: 0;
    border-radius: 4rem;
    color: #ccc;
    font-size: 1.25em;
    outline: 1px solid #ddd;
}

@media screen and (max-width: 767px) {
    .quiqqer-masterlogin-logBackConfirm__boxes {
        flex-direction: column;
    }

    .quiqqer-masterlogin-logBackConfirm-box:last-child {
        padding-top: 2rem;
    }

    .quiqqer-masterlogin-logBackConfirmIcon__inner {
        transform: rotate(090deg)
    }

    .quiqqer-masterlogin-logBackConfirmIcon:before, .quiqqer-masterlogin-logBackConfirmIcon:after {
        height: 100%;
        width: calc(50% - 1.5rem);
    }

    .quiqqer-masterlogin-logBackConfirmIcon:before {
        top: 0;
        left: 0;
    }

    .quiqqer-masterlogin-logBackConfirmIcon:after {
        top: 0;
        right: 0;
    }
}
