/* Keep the configuration page visible while a product variant is fetched. */
#configure-pjax-loader {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 360px;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    background: rgba(255, 255, 255, .94);
    color: #4b5563;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

#configure-pjax-loader.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.configure-pjax-spinner {
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    box-sizing: border-box;
    border: 3px solid #e5e9f0;
    border-top-color: #2b6de5;
    border-radius: 50%;
    animation: configure-pjax-spin .85s linear infinite;
}

.configure-pjax-loading-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

/* The loader is attached to the product panel so the navigation stays usable. */
.configure-pjax-host {
    position: relative;
    isolation: isolate;
}

body > #configure-pjax-loader {
    position: fixed;
}

@keyframes configure-pjax-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    #configure-pjax-loader {
        min-height: 280px;
        gap: 16px;
    }

    .configure-pjax-spinner {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .configure-pjax-loading-text {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #configure-pjax-loader,
    .configure-pjax-spinner {
        animation: none;
        transition: none;
    }
}
