.walletPage {
    min-height: 100vh;
}
.walletLayout {
    position: relative;
    overflow: hidden;
}
.walletRightCol {
    position: relative;
    overflow: hidden;
    background: #EFF5FB;
}

body.wallet-loyalty-mode .walletRightCol {
    background: #FBF6EF;
}
@media (min-width: 1024px){
    html, body{ height:100%; }

    .walletPage{
        height:100vh;
        display:grid;
        grid-template-rows: 1fr auto;
        background:#EFF5FB;
    }

    .walletLayout{
        min-height:0;
        display:grid;
        grid-template-columns: 104px 1fr;
    }

    .walletRightCol{
        min-width:0;
        min-height:0;
        display:flex;
        flex-direction:column;
    }

    .homeNavIconDesktop {
        width:104px;
        height:60px;
    }
}


@media (max-width: 1023px){
    html, body{ height:auto; overflow:auto; }


    .homeNavIconMobile {
        min-width: 44px;
        min-height: 44px;
    }

    .walletSidebar {
        position: fixed;
        top:0;
        left:0;
        right: 0;
        background-color: white;
    }

    .walletRightCol {
        padding-top:4rem;
    }
}


/* Loyalty Modal */
.loyaltyModal::backdrop {
    background-color: rgba(0,0,0,.0);
    transition: background-color .22s ease;
}

.loyaltyModal{
    border: 0;
    padding: 0;
    width: min(720px, 90%);
    border-radius: 14px;
    margin: auto;
    overflow: hidden;
}

#loyaltyModal[open]{
    animation: fadeInModal .3s ease forwards;
}

#loyaltyModal[open]::backdrop{
    background-color: rgba(0,0,0,.55);
}

#loyaltyModal.is-closing{
    animation: fadeOutModal .3s ease forwards;
}

#loyaltyModal.is-closing::backdrop{
    background-color: rgba(0,0,0,.0);
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeOutModal {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-20px) scale(.98); }
}

.loyaltyModalBox{
    padding: 18px;
    position: relative;
    overflow: auto;
    max-height: 80vh;
}

.loyaltyModalClose{
    position: absolute;
    top: 0;
    right: 15px;
    border: 0;
    background: transparent;
    font-size:xx-large;
    cursor: pointer;
}

summary::-webkit-details-marker{
    display: none;
}
summary::marker {
    content: "";
}

summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 10px;
    position: relative;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background .25s ease;
}

summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s ease, opacity .25s ease;
    opacity: .7;
    flex: 0 0 auto;
}

.loyaltyCardsBottomContentTitle summary {
    justify-content: start;
}

.loyaltyCardsBottomContent summary::after {
    width: 13px;
    height: 13px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    opacity: 1;
}
details[open] > summary{
    background: rgba(0,0,0,.06);
}

.lmSub[open] > summary::after, .loyaltyCardsBottomContentTitle[open] > summary::after {
    transform: rotate(-135deg);
    opacity: 1;
}


summary:hover{
    background: rgba(0,0,0,.04);
}
#lmTitle {
    font-weight:bolder;
    font-size: larger;
}
.lmMeta { opacity: .75; margin: 6px 0 14px; }
.lmSub { margin: 8px 0;}
.lmSub > summary { cursor: pointer; font-weight: 600;}
.lmBody { padding: 10px 30px; max-height: 400px; overflow-x: hidden;}

.historyTable{ width: 100%; border-collapse: collapse; }
.historyTable th, .historyTable td{ text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(0,0,0,.08); }



/* wallet info side toggle panel */
#togglePanelContainer{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 51;
    pointer-events: auto;
    gap:0;
    transition: transform .28s ease;
}

.walletInfoContent{
    box-shadow: 2px 2px 6px #00000029;
    background: #FFFFFF;
    height: 100%;
    overflow: auto;
    z-index: 1;
}

.walletInfoTitle{
    color: #07275A;
    font-weight: 700;
    font-size: clamp(17px, 1.2vw, 18px);
    margin-bottom: 8px;
}

.walletInfoSubtitle{
    color: #7A8BA7;
    font-size: clamp(13px, 1.2vw, 14px);
    margin: 18px 0 8px;
}

.walletInfoList{
    margin-top: 20px;
    padding-left: 18px;
    list-style: disc;
    color: #65708D;
    font-size: 13px;
    line-height: 1.45;
}

.walletInfoList li{ margin-bottom: 8px; }

.walletInfoList li::marker{
    color: #07396C;
    font-size: large;
}

.walletInfoHandle{
    position: relative;
    background: transparent;
    cursor: pointer;
    min-width: 48px;
    margin: 0;
    padding: 0;
}

#togglePanelBg{
    transform-origin: center;
    height: 130px;
    width: 48px;
}

#toggleIcon{
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 22px;
    transition: transform .2s ease;
}



@media (min-width: 1024px){
    #togglePanelContainer{
        top:0;
        bottom:0;
        right: 0;
        width: 360px;
        transform: translateX(87%);
    }

    #togglePanelContainer[data-open="1"]{
        transform: translateX(0);
    }

    #togglePanelContainer[data-open="1"] #toggleIcon{
        transform: rotate(180deg);
    }

    .walletInfoHandle{
        transform: translateX(10px);
    }

    .walletInfoContent{
        padding: 150px 40px 18px 18px;
        width: 350px;
    }
}


@media (max-width: 1023px){
    #togglePanelContainer{
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        width: 100%;
        transform: translateY(76%);
    }

    #togglePanelContainer[data-open="1"] {
        transform: translateY(0);
    }

    #togglePanelContainer[data-open="1"] #toggleIcon{
        transform: rotate(180deg);
    }

    .walletInfoHandle {
        transform: rotate(90deg) translateX(52px);
    }
    .walletInfoContent{
        padding: 40px 22px 22px 22px;
        height: 410px;
    }
}

.toggle-loyalty { display: none; }

/* loyalty section mode */
body.wallet-loyalty-mode .toggle-default { display: none; }
body.wallet-loyalty-mode .toggle-loyalty { display: block; }

/* payment blur */
.paymentBlurBtn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #65708D;
    padding: 8px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
    height: 45px;
    width: 45px;
}

.paymentBlurBtn:hover{
    color: #07396C;
    background: rgba(7,57,108,.06);
}


/* default: eye open */
.paymentBlurBtn .eyeClosed{ display: none; }

body.payments-blurred .paymentBlurBtn .eyeOpen{ display: none; }
body.payments-blurred .paymentBlurBtn .eyeClosed{ display: block; }

/* blur amounts */
.js-payment-amount{
    transition: filter .18s ease, opacity .18s ease;
}
body.payments-blurred .js-payment-amount{
    filter: blur(6px);
    opacity: .75;
}


/* Auth form styles */
.auth-form-field label{
    font-size: 12px;
    color: #7A8BA7;
    margin-left: 1rem;
    font-weight: 300;
}

.auth-form-field input {
    height: 42px;
    border-radius: 25px;
    background: #FCFCFC;
    border: 1px solid #CBDEF0;
    padding: 0 1rem;
    width: 100%;
    font-size: 14px;
    outline: none;
}

.auth-form-field input:focus {
    border-color: #07396C;
}

.auth-submit-btn {
    border-radius: 22px;
    background: #07396C;
    color: white;
    padding: 12px 40px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background .2s ease;
}

.auth-submit-btn:hover {
    background: #052d56;
}


/* mobile menu */

.walletMobileNav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateY(-110%);
    transition: transform .45s cubic-bezier(.77,.2,.05,1);
    z-index: 9998;
    overflow: auto;
    height: 100%;
    width: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 125px;
    gap:30px;
}
.walletMobileNavBtn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap:1rem;
    padding: 10px 0;
}

body.wallet-mobile-menu-open .walletMobileNav{
    transform: translateY(0);
}

.homeNavBtn, .loyaltyNavIconBtn {
    background: none !important;
}

.walletHamburgerBtn span {
    transition: all .45s cubic-bezier(.77,.2,.05,1);
}

body.wallet-mobile-menu-open .walletHamburgerBtn span:nth-child(1) {
    width: 30px !important;
    transform: rotate(-45deg) translate(-3px, 10px);
}

body.wallet-mobile-menu-open .walletHamburgerBtn span:nth-child(2) {
    width: 0 !important;
    opacity: 0;
}

body.wallet-mobile-menu-open .walletHamburgerBtn span:nth-child(3) {
    width: 30px !important;
    transform: rotate(45deg) translate(-3px, -9px);
}
