/* rx-closed.css — the closed store: the whole site is this one page (rx-closed.js).
 *
 * When the platform owner presses Deactivate on a store, nobody gets in: the
 * shop, the console, every route of that store's own domain. This file paints
 * that single page — the message in the middle of the screen, and under it
 * "Powered by" and the Magma Solutions mark. Every rule is under
 * html.rxcl-on, which rx-closed.js sets only while the page is shown, so
 * nothing here can touch a store that is open. */

html.rxcl-on,
html.rxcl-on body{
    overflow: hidden !important;
    height: 100% !important;
}

/* the shop's first-moment splash would only blink behind the closed page */
html.rxcl-on #rx-splash{display: none !important}

/* and the half-drawn app stays out of the way (never seen: the page is opaque) */
html.rxcl-on [app]{visibility: hidden !important}

#rx-closed-page{
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px 22px calc(40px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    text-align: center;
    color: #ffffff;
    background:
        radial-gradient(900px 460px at 50% -12%, rgba(136, 2, 144, .38), rgba(136, 2, 144, 0) 70%),
        radial-gradient(760px 420px at 88% 112%, rgba(245, 158, 11, .20), rgba(245, 158, 11, 0) 72%),
        #0a0b10;
    font-family: 'Cairo', 'Noto Kufi Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    animation: rxcl-in .28s ease-out both;
}

@keyframes rxcl-in{
    from{opacity: 0}
    to{opacity: 1}
}

#rx-closed-page .rxcl-stack{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 620px;
}

#rx-closed-page .rxcl-mark{
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
}

#rx-closed-page .rxcl-mark svg{
    width: 30px;
    height: 30px;
    display: block;
    color: #f6c76a;
}

#rx-closed-page .rxcl-ar{
    margin: 0;
    direction: rtl;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: 0;
    color: #ffffff;
}

#rx-closed-page .rxcl-ar2{
    margin: 0;
    direction: rtl;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.8;
    color: #cbd5e1;
}

#rx-closed-page .rxcl-en{
    margin: 6px 0 0;
    direction: ltr;
    font-size: 13px;
    line-height: 1.7;
    color: #94a3b8;
}

/* "Powered by", and under it the Magma Solutions mark */
#rx-closed-page .rxcl-foot{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    min-width: 168px;
}

#rx-closed-page .rxcl-by{
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #94a3b8;
}

#rx-closed-page .rxcl-logo{
    display: block;
    line-height: 0;
}

#rx-closed-page .rxcl-logo img{
    display: block;
    height: 30px;
    width: auto;
    max-width: 70vw;
    opacity: .95;
}

@media (max-width: 480px){
    #rx-closed-page{gap: 24px}
    #rx-closed-page .rxcl-ar{font-size: 22px}
    #rx-closed-page .rxcl-ar2{font-size: 14px}
    #rx-closed-page .rxcl-en{font-size: 12px}
    #rx-closed-page .rxcl-mark{width: 56px;height: 56px}
    #rx-closed-page .rxcl-mark svg{width: 26px;height: 26px}
    #rx-closed-page .rxcl-logo img{height: 26px}
}

/* nothing white may show around the page (a phone address bar scrolling, a
   tall document): the canvas itself is the closed page. */
html.rxcl-on,
html.rxcl-on body{
    background: #0a0b10 !important;
    overscroll-behavior: none;
}
