
/* =====================================
   GLOBAL ROYAL LOGISTICS OFFLINE SCREEN
===================================== */


.grl-offline-screen[hidden] {
    display: none !important;
}

.grl-offline-screen {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: 1.5rem;
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(255, 139, 54, 0.12),
            transparent 42%
        ),
        #071a35;
}

.grl-offline-card {
    width: 100%;
    max-width: 32rem;
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.045);
    text-align: center;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.18);
    animation: grlOfflineEnter 350ms ease both;
}

.grl-offline-icon {
    display: grid;
    width: 5rem;
    height: 5rem;
    place-items: center;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255, 139, 54, 0.35);
    border-radius: 1.25rem;
    background: rgba(255, 139, 54, 0.1);
    color: #ff8b36;
    font-size: 2.2rem;
}

.grl-offline-label {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: #ff8b36;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.grl-offline-card h1 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.grl-offline-card p {
    max-width: 26rem;
    margin: 0 auto 1.7rem;
    color: #d0d9e7;
    font-size: 0.95rem;
    line-height: 1.85;
}

.grl-offline-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 3.3rem;
    padding: 0.85rem 1rem;
    border: 1px solid #ff8b36;
    border-radius: 0.65rem;
    background: #ff8b36;
    color: #071a35;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 200ms ease,
        transform 200ms ease;
}

.grl-offline-refresh:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: #ffffff;
}

.grl-offline-refresh:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

.grl-offline-refresh:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.grl-offline-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.5rem;
    color: #aebbd0;
    font-size: 0.75rem;
    line-height: 1.6;
}

.grl-offline-footnote i {
    color: #ff8b36;
}

@keyframes grlOfflineEnter {
    from {
        opacity: 0;
        transform: translateY(0.6rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .grl-offline-screen {
        padding: 1rem;
    }

    .grl-offline-card {
        padding: 1.5rem 1.1rem;
    }

    .grl-offline-icon {
        width: 4.2rem;
        height: 4.2rem;
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grl-offline-card {
        animation: none;
    }

    .grl-offline-refresh {
        transition: none;
    }
}
