.logo {
    width: 130px;
    height: 100px;
}

.profile-container {
    display: flex;
    flex-direction: column;
    background:  linear-gradient(to bottom, white 0%, white 30%, var(--color-base-color) 30%, var(--color-base-color) 100%); 
    align-items: center;
    gap: 10px;
    height: 100%;

}

.function-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.not-login-container a {
    text-decoration: underline;
    color: var(--color-red-gradient);
    font-weight: bold;
}

.logined-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-top {
    display: flex;
    flex-direction: column;
    padding-inline: 24px;
    box-sizing: border-box;
    width: 100%;
    padding-block-start: 10px;
    padding-block-end: 20px;
    gap: 15px;
    border-radius: 0px 0px 15px 15px;
    background: #FFF;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.account-money-container {
    background: white;
    padding: 10px;
    display: flex;
    gap: 5px;
    flex-direction: row;
    border-radius: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #169A42;
}

.account-money-container div {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #52595D;
    font-weight: 600;
    font-size: 0.75rem;
}

.deposit-container {
    border: 1px solid #169A42;
    border-radius: 50%;
    width: 88px;
    justify-content: center;
}

.account-money-container .right {
    text-align: right;
}

.account-money-container .left {
    text-align: left;
}

.t-current-money,
.t-income {
    width: 100%;
}

.p-id,
.p-username {
    font-size: 0.625rem;
    color: #2A2A2A;
    font-weight: 700;
}

.p-id {
    text-align: right;
}

.s-function {
    color: #E5E4E2 !important;
    font-size: 15px;
    font-weight: 700;
}

.p-username {
    text-align: left;
}

.card-box-infomation {
    background: white;
    display: flex;
    flex-direction: column;
    padding-inline: 10px;
    gap: 9px;
}

.profile-title {
    display: flex;
    color: #52595D;
    flex-direction: row;
    gap: 5px;
    width: 90%;
    padding-left: 10px;
}

.profile-horizontal-divider {
    width: 3px;
    padding-block: 12px;
    background-color: var(--color-base);
}

.deposit-container {
    display: flex;
    flex-direction: row;
}

.deposit-container .divider {
    height: 1px;
    width: 100%;
    background: #52595D;
}

.deposit-container a {
    color: #52595D;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.card-container {
    background-color: var(--color-base-color);
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    color: white;
    box-sizing: border-box;
    border: 1px solid rgba(82, 89, 93, 0.40);;
    /* height: 250px; */
    gap: 9px;
    border-radius: 0px 0px 10px 10px;
}

.card-black-item {
    height: 7px;
    width: 40%;
    background-color: #000000;
}

.card-infomation {
    display: flex;
    flex-direction: column;
    /* gap: 20px; */
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    padding-block: 15px;
}

.card-infomation img {
    width: 70px;
    height: 55px;
    object-fit: contain;
}

.logo-card {
    width: 70px;
    height: 50px;
    object-fit: contain;
}

.p-digital {
    font-size: 8px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    padding-left: 21px;
}

.function-container {
    display: inline-grid;
    gap: 10px;
    border-radius: 20px;
    font-size: 0.875rem;
    padding: 10px;
    grid-template-columns: 1fr 1fr 1fr;
}

.function-container a {
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* border: 1px solid var(--color-red-gradient); */
    color: white;
    border-radius: 8px;
    text-align: center;
    text-decoration: unset;
}

.text-title {
    color: var(--color-red-gradient);
}

.card-bottom {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding-left: 21px;
}

.card-bottom {
    font-size: 9px;
    border-radius: 0px 0px 10px 10px;
    border: 1px solid rgba(82, 89, 93, 0.40);
    background: var(--color-background);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}
.digital-div{
    margin-bottom: 31px;
}
@media (max-width: 768px) {
    .card-container {
        /* height: 200px; */
    }

    .profile-container {
        height: 100%;
        width: 100%;
    }

    .account-money-container {
        text-align: center;
        gap: 10px;
    }



    .function-container {
        border: none;
    }

    .account-setting-container {
        width: 100%;
        height: 100%;
        padding-inline: 30px;
        border-radius: 0;
        box-sizing: border-box;
    }


    .main-content {
        /* min-width: 80%; */
        width: 100%;
        padding-inline: 20px;
        box-sizing: border-box;
        border-radius: 0;
        height: 100%;
        padding-top: 100px;
    }

    .login-container {
        padding-top: 0;
    }
}

@media (max-height: 668px) {
    .profile-container {
        height: 100%;
        width: 100%;
    }

   
    .logined-container{
        gap: 5px;
    }
    .header-container {
        gap: 5px;
    }

    .function-container {
        padding: 10px 20px;
    }

    .function-container a {
        font-size: 0.5rem;
        padding: 5px 10px;
    }
    .digital-div{
        margin-bottom: 0;
    }
    .deposit-container a {}
}

.mobile-passbook * { box-sizing:border-box }
.mobile-passbook { margin:0; background:#edf3f1; color:#152f29; font:16px/1.5 "Noto Sans Thai",system-ui,sans-serif }
.mobile-passbook { max-width:460px; margin:0 auto; min-height:0; max-height:var(--profile-visible-height, 100dvh); overflow-y:auto; padding:14px; padding-bottom:calc(14px + env(safe-area-inset-bottom, 0px)) }
.mobile-passbook h1, .mobile-passbook h2, .mobile-passbook p { margin:0 }
.mobile-passbook h1, .mobile-passbook h2 { font-size:1rem }
.mobile-passbook section { scroll-margin-top:12px }
.mobile-passbook .pass, .mobile-passbook .hero { background:linear-gradient(140deg,#00895f,#00654b); color:white }
.mobile-passbook .pass, .mobile-passbook .panel { border-radius:18px; overflow:hidden; box-shadow:0 4px 16px #073d2d12 }
.mobile-passbook .strip, .mobile-passbook .inside, .mobile-passbook .heading { padding:14px 18px }
.mobile-passbook .strip { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #ffffff40; font-size:.78rem }
.mobile-passbook .strip strong { letter-spacing:.08em }
.mobile-passbook .name { margin-top:18px; font-size:1.35rem; font-weight:700 }
.mobile-passbook .money, .mobile-passbook .actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:18px }
.mobile-passbook .money small { display:block; font-size:.76rem }
.mobile-passbook .money b { font-size:clamp(1.05rem,5vw,1.5rem); font-variant-numeric:tabular-nums; overflow-wrap:anywhere }
.mobile-passbook .actions a, .mobile-passbook .actions button { border:1px solid #ffffffa8; border-radius:10px; padding:11px 3px; text-align:center; font-weight:700 }
.mobile-passbook .actions .deposit-link { background:white; color:#00694d }
.mobile-passbook a { color:inherit; text-decoration:none }
.mobile-passbook .panel { margin-top:18px; border:1px solid #d0ddd8; background:white }
.mobile-passbook .heading { background:#f5f8f7 }
.mobile-passbook ul { list-style:none; padding:0; margin:0 }
.mobile-passbook .row { display:flex; align-items:center; gap:12px; padding:11px 15px; border-top:1px solid #dae3df }
.mobile-passbook .row::after { content:"›"; margin-left:auto; color:#007955 }
.mobile-passbook .icon { display:grid; place-items:center; width:36px; height:36px; border-radius:10px; background:#007957; color:white; font-size:1.2rem }
.mobile-passbook .hero { padding:18px 20px 94px; border-radius:18px 18px 50% 50% / 18px 18px 16% 16% }
.mobile-passbook .disc { position:relative; margin:-72px auto 0; width:min(68vw,250px); aspect-ratio:1; border-radius:50%; background:white; outline:4px solid #00845e; outline-offset:-10px; display:grid; align-content:center; justify-items:center; box-shadow:0 7px 20px #173d2f20 }
.mobile-passbook .disc b { font-size:clamp(1.5rem,7vw,2rem) }
.mobile-passbook .time, .mobile-passbook footer { text-align:center; color:#4e635c; font-size:.82rem; margin:16px 0 }
.mobile-passbook .grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px 4px; text-align:center; font-size:.78rem }
.mobile-passbook .grid .icon { margin:0 auto 6px; border:2px solid #bdcdc6; color:#00694d; background:transparent; width:48px; height:48px; border-radius:50% }
.mobile-passbook .back { display:inline-block; padding:10px 0; color:#00694d }
.mobile-passbook [hidden] { display:none }
.mobile-passbook .glyph { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round }
.mobile-passbook .actions > * { display:flex; align-items:center; justify-content:center; gap:8px }

.mobile-passbook .grid-link { display:block }
.mobile-passbook .name {color:inherit}
.mobile-passbook {width:100%; box-sizing:border-box}


.mobile-passbook button[data-view] { background:transparent; color:inherit; font-family:inherit; font-size:inherit; cursor:pointer }
.mobile-passbook button.back { border:0; color:#00694d }

.mobile-passbook .account-notice { padding:28px 18px; text-align:center; color:white }
.mobile-passbook .account-notice a { color:inherit; font-weight:700; text-decoration:underline; text-underline-offset:3px }

.mobile-passbook .pass {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
.mobile-passbook .pass > * {
    grid-area: 1 / 1;
}
.mobile-passbook .pass > [data-account-details][hidden] {
    display: block;
    visibility: hidden;
    pointer-events: none;
}
.mobile-passbook .pass > .account-notice {
    align-self: center;
    margin: 0;
}
