/* Only when the demo runs inside Quick Send's "Unwrap demo gift" modal (?embed=quicksend adds
   html.qs-embed); the Bulk gift store demo uses these pages unchanged. */

/* The wallet page's grey (#ececec) only showed around the logo, as a grey bar. */
html.qs-embed .recipient-wallet .ue-outer-wrapper {
    background-color: #f7f7f7;
}

/* On phones the wallet sits in a short frame: run it as one column (logo, tabs, card, buttons)
   with the footer at the bottom, instead of pinning the buttons and footer to the frame's foot
   and leaving the card floating between big gaps. Not while a card is tapped open (hide-shadow):
   its long description needs the original scrolling layout. */
@media screen and (max-width: 768px) {
    html.qs-embed #recipientWalletContainer:not(:has(.slider-container.hide-shadow)) .ue-outer-wrapper {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    html.qs-embed #recipientWalletContainer:not(:has(.slider-container.hide-shadow)) .ue-gt-logo {
        order: 1;
        padding: 12px 15px 4px;
    }

    html.qs-embed #recipientWalletContainer:not(:has(.slider-container.hide-shadow)) .recipient-wallet-inner {
        order: 2;
        min-height: 0;
        height: auto;
    }

    /* These are sized off the frame's height for the full-page wallet; here they follow the card. */
    html.qs-embed #recipientWalletContainer:not(:has(.slider-container.hide-shadow)) .recipient-wallet-inner-wrapper,
    html.qs-embed #recipientWalletContainer:not(:has(.slider-container.hide-shadow)) .recipient-wallet-tabs,
    html.qs-embed #recipientWalletContainer:not(:has(.slider-container.hide-shadow)) .recipient-wallet-tabs .tab-content,
    html.qs-embed #recipientWalletContainer:not(:has(.slider-container.hide-shadow)) .recipient-wallet-tabs .tab-pane {
        height: auto;
        min-height: 0;
    }

    html.qs-embed #recipientWalletContainer:not(:has(.slider-container.hide-shadow)) .recipient-wallet-tabs .nav-tabs {
        margin-bottom: 0;
    }

    /* overflow visible: the card's shadow was otherwise clipped into a faint box. */
    html.qs-embed #recipientWalletContainer:not(:has(.slider-container.hide-shadow)) .slider-container:not(.opened) {
        min-height: 0;
        height: auto;
        padding-top: 16px;
        overflow: visible;
    }

    html.qs-embed #recipientWalletContainer:not(:has(.slider-container.hide-shadow)) .slider-container:not(.opened) #walletslides {
        height: 205px;
        overflow: visible;
    }

    html.qs-embed #recipientWalletContainer:not(:has(.slider-container.hide-shadow)) .ue-actionbar {
        order: 3;
        position: static !important;
        margin: 16px 0 24px;
    }

    html.qs-embed #recipientWalletContainer:not(:has(.slider-container.hide-shadow)) .wallet-footer {
        order: 4;
        position: static;
        margin-top: auto;
    }

    html.qs-embed #recipientWalletContainer:not(:has(.slider-container.hide-shadow)) .wallet-footer::before {
        display: none;
    }
}
