/* 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 */
.qui-window-popup.quiqqer-masterlogin-logBackConfirm {
    --masterlogin-accent: var(--qui-colors-primary, #075ea8);
    --masterlogin-accent-hover: #064f8c;
    --masterlogin-border: #d9e1e8;

    background: #fff;
    border: 1px solid var(--masterlogin-border);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    color: #172033;
}

.quiqqer-masterlogin-logBackConfirm__wrapper {
    min-height: 100%;
}

.quiqqer-masterlogin-logBackConfirm__header {
    align-items: center;
    border-bottom: 1px solid #edf1f5;
    display: flex;
    min-height: 68px;
    padding: 18px 72px 18px 32px;
}

.quiqqer-masterlogin-logBackConfirm__title {
    color: #172033;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 650;
    line-height: 1.35;
    margin: 0;
}

.quiqqer-masterlogin-logBackConfirm__body {
    padding: 28px 32px 32px;
}

.quiqqer-masterlogin-logBackConfirm__text {
    color: #334155;
    margin: 0 0 2rem;
}

.quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__closeBtn {
    align-items: center;
    appearance: none;
    background: #f1f5f9 !important;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    color: #526071;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    height: 36px;
    justify-content: center;
    min-width: 0;
    padding: 0;
    right: 20px;
    top: 16px;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
    width: 36px;
}

.quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__closeBtn:hover,
.quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__closeBtn:focus-visible {
    background: #e2e8f0 !important;
    color: #172033;
    outline: none;
}

.quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__closeBtn:active {
    transform: scale(0.96);
}

.quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__closeBtn .fa {
    font-size: 15px;
    line-height: 1;
}

.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;
}

.quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__buttons {
    align-items: center;
    background: #f8fafc;
    border-top: 1px solid #e7edf3;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 20px;
}

.quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__buttons > button {
    align-items: center;
    appearance: none;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: none;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    float: none;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 8px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-width: 110px;
    padding: 0 16px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease,
        color 160ms ease, transform 160ms ease;
}

.quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__buttons > button[name="cancel"] {
    background: #fff;
    border-color: #cbd5e1;
    color: #334155;
}

.quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__buttons > button[name="cancel"]:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__buttons > button[name="submit"] {
    background: var(--masterlogin-accent);
    border-color: var(--masterlogin-accent);
    color: #fff;
}

.quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__buttons > button[name="submit"]:hover {
    background: var(--masterlogin-accent-hover);
    border-color: var(--masterlogin-accent-hover);
}

.quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__buttons > button:focus-visible {
    box-shadow: 0 0 0 3px rgba(7, 94, 168, 0.18);
    outline: none;
}

.quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__buttons > button:active {
    transform: translateY(1px);
}

@media screen and (max-width: 767px) {
    .qui-window-popup.quiqqer-masterlogin-logBackConfirm {
        border-radius: 10px;
    }

    .quiqqer-masterlogin-logBackConfirm__header {
        padding-left: 18px;
    }

    .quiqqer-masterlogin-logBackConfirm__body {
        padding: 20px 18px 24px;
    }

    .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;
    }

    .quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__buttons {
        padding: 12px 16px;
    }

    .quiqqer-masterlogin-logBackConfirm .qui-window-simpleWindow__buttons > button {
        flex: 1 1 0;
        min-width: 0;
    }
}
