/* HIPPO PAY frontend navigation/preloader layer. */
#hippo-global-preloader {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255,255,255,.97);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

#hippo-global-preloader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.hippo-global-preloader-card {
    width: min(300px, 90vw);
    padding: 30px 24px;
    text-align: center;
    border: 1px solid #e7e9ed;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(25,24,22,.12);
}

.hippo-global-preloader-logo {
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #191816;
    overflow: hidden;
}

.hippo-global-preloader-logo {
    position: relative;
}

.hippo-global-preloader-logo::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: url("../images/hippopay-loader.png") center / contain no-repeat;
    transform-origin: 50% 10%;
    animation: hippo-preloader-brand-swing 1.8s ease-in-out infinite;
    will-change: transform;
}

@keyframes hippo-preloader-brand-swing {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    25% { transform: rotate(7deg) translateY(-2px); }
    50% { transform: rotate(-5deg) translateY(0); }
    75% { transform: rotate(6deg) translateY(-1px); }
}

.hippo-global-preloader-mark {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
}

.hippo-global-preloader-mark span {
    color: #f7b906;
}

.hippo-global-preloader-title {
    margin: 0;
    color: #191816;
    font-size: 15px;
    font-weight: 850;
}

.hippo-global-preloader-text {
    margin: 5px 0 0;
    color: #707784;
    font-size: 12px;
}


@media (prefers-reduced-motion: reduce) {
    #hippo-global-preloader { transition: none; }
    .hippo-global-preloader-logo::before { animation: none; }
}


/* HIPPO PAY: approved frontend pages only. */
.hippo-page-back-button {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 2147482000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px 9px 11px;
    border: 1px solid rgba(25,24,22,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    color: #191816;
    box-shadow: 0 8px 28px rgba(25,24,22,.12);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.hippo-page-back-button:hover {
    background: #f7b906;
    box-shadow: 0 12px 32px rgba(25,24,22,.16);
    transform: translateY(-1px);
}

.hippo-page-back-button:focus-visible {
    outline: 3px solid rgba(247,185,6,.45);
    outline-offset: 3px;
}

.hippo-page-back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    font-size: 22px;
    font-weight: 500;
    line-height: 18px;
}

@media (max-width: 767px) {
    .hippo-page-back-button {
        top: 14px;
        left: 14px;
        min-height: 40px;
        padding: 8px 12px 8px 9px;
        font-size: 13px;
    }

    .hippo-page-back-icon {
        width: 20px;
        height: 20px;
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hippo-page-back-button {
        transition: none;
    }
}
