.hide {
    visibility: hidden;
}

html,
body {
    margin: 0;
    color: #006cb7;
    font-weight: bold;
    font-family: Microsoft JhengHei;
    height: 100%;
    overflow: hidden;
    position: relative;
}

#header {
    height: 10vh;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.1);
    z-index: 1;
    position: relative;
}

#alipay-logo {
    margin-left: 40px;
}

.language-text {
    margin-right: 40px;
    font-size: 24px;
    text-decoration: unset;
    color: #006cb7;
}

#middle {
    height: 70vh;
    background-color: #dddddd;
    /* box-shadow:0px 10px 10px 0px rgba(0,0,0,0.1); */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

#middle-general {
    height: 70vh;
    background-color: #dddddd;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 10%;
}

.mobile-background {
    width: 100%;
}

.mobile-background img {
    width: 100%;
}

.mobile-container {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 100%;
}

.middle-container {
    display: flex;
    align-items: stretch;
    width: 45%;
    min-width: 750px;
    justify-content: center;
    position: fixed;
    bottom: 5%;
    height: 70%;
}

#middle-container2 {
    width: 40%;
}

#middle-general #middle-container2 .mobile-details {
    -ms-overflow-style: none; /* for Internet Explorer, Edge */
    scrollbar-width: none; /* for Firefox */
    overflow-y: scroll;
}

#middle-container2 .mobile-details::-webkit-scrollbar {
    display: none; /* for Chrome, Safari, and Opera */
}

.mobile-details {
    position: absolute;
    top: 0;
    padding: 15% 10%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}


.eshop-title {
    width: 100%;
    flex: none;
}
.eshop-title .align-items-center{
    justify-content: center;
}
.eshop-title .eshop-logo-text{
    width: auto;
    flex: none;
}

.eshop-logo {
    max-width: 50%;
}

.eshop-logo-zh-text {
    font-size: 20px;
}

.eshop-logo-en-text {
    font-size: 13px;
}

.shop-logo {
    width: 100%;
    height: 15%;
    flex: none;
    text-align: center;
}

.shop-logo-image {
    max-height: 100%;
    /* height: 80px; */
    display: block;
    margin: 0 auto;
    padding: 5px;
}

.real-shop-logo-image {
    height: 80px;
}

.shop-name {
    font-size: 24px;
    text-decoration: unset;
    color: #006cb7;
    width: 100%;
    text-align: center;
    flex: none;
}

.shop-products {
    margin-top: 1vh;
    margin-bottom: 15%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.shop-products .d-inline {
    max-width: 50%;
    margin: 0 auto;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
}

.shop-description {
    height: 22vh;
    overflow: auto;
    text-align: center;
    -ms-overflow-style: none; /* for Internet Explorer, Edge */
    scrollbar-width: none; /* for Firefox */
    overflow-y: scroll;
    padding-bottom: 7%;
    margin-top: 15%;
    text-align: justify;
}

.shop-description::-webkit-scrollbar {
    display: none; /* for Chrome, Safari, and Opera */
}

.product-en-name {
    width: 100%;
    flex: none;
    text-align: center;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.product-tc-name {
    width: 100%;
    flex: none;
    text-align: center;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.product-sales-price {
    width: 100%;
    flex: none;
    text-align: center;
    color: black;
}

.sales-price {
    color: #e30707;
}

.product-original-price {
    width: 100%;
    flex: none;
    text-align: center;
    color: #c9c9c9;
}

.download-app {
    color: #006cb7;
    text-decoration: none;
}

.open-app {
    background-color: #108ee9;
    color: #ffffff;
}

.qrcode-app {
    width: 50%;
    background-color: #ffffff;
    border-radius: 0px 35px 0px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10%;
}

.qrTitle {
    font-size: 20px;
    color: #108ee9;
    text-align: center;
}

#qr {
    margin-top: 25px;
    height: 25vh;
    background-size: contain;
    display: flex;
    justify-content: center;
}

#qr > * {
    object-fit: contain;
}

.shop-general-logo {
    text-align: center;
    width: 50%;
    margin: 0 auto;
    margin-top: 5%;
}

.eshop-general-title {
    width: 100%;
    text-align: center;
}

.eshop-general-unavailable {
    text-align: center;
    width: 100%;
    display: block;
    color: #575050;
    margin-top: 10%;
}

.eshop-general-scan-qr-code {
    text-align: center;
    width: 100%;
    display: block;
    color: #575050;
    margin-top: 10%;
}

.eshop-general-promo-text {
    text-align: center;
    width: 100%;
    margin-top: 25%;
}

#footer {
    height: 20%;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0px -10px 10px 0px rgba(0, 0, 0, 0.1);
    position: absolute;
    text-align: center;
    bottom: 0;
}

.copyright {
    font-size: 14px;
    color: #888888;
}

.cursor-pointer {
    cursor: pointer;
}

.company-text {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
}

.redirect-zh-btn {
  background-color: #006cb7;
  color: white;
}

.redirect-en-btn {
  background-color: #006cb7;
  color: white;
}

.grey-background {
  background-color: #dddddd;
  color: #575050;
}


/* @media (min-width: 768px) and (max-width: 1199.98px) {
    .qrcode-app {
        height: 50vh;
    }

    .shop-description {
        top: 35vh;
        font-size: 14px;
    }

    #middle {
        font-size: 13px;
    }

    #middle-general {
        font-size: 13px;
    }

    .eshop-general-promo-text {
        top: 33vh;
    }

    .middle-container {
        width: 65%;
    }
} */


@media screen and (max-height: 750px) {
    .middle-container{
        bottom: 15%;
    }
}

@media (max-width: 767.98px) {
    .middle-container {
        width: initial;
        bottom: auto;
        height: auto;
        overflow: scroll;
        position: relative;
        margin-top: 0;
        padding-bottom: 30vh;
    }

    .middle-container {
        -ms-overflow-style: none; /* for Internet Explorer, Edge */
        scrollbar-width: none; /* for Firefox */
    }

    .middle-container::-webkit-scrollbar {
        display: none; /* for Chrome, Safari, and Opera */
    }

    #middle-container2 {
        width: initial;
    }

    #middle {
        padding-top: 0;
        height: 100%;
    }

    #middle-general {
        padding-top: 0;
    }

    .mobile-details {
        padding-top: 20%;
        height: auto;
    }

    .mobile-background {
        margin-top: 5%;
    }

    .company-text {
        position: relative;
    }

    .eshop-general-unavailable {
        display: none;
    }

    .eshop-general-scan-qr-code {
        display: none;
    }

    .eshop-general-promo-text {
        margin-top: 20%;
    }

    .eshop-logo-zh-text {
        font-size: 25px;
    }

    .eshop-logo-en-text {
        font-size: 16px;
    }
    .shop-description{
        font-size: 14px;
        height: auto;
    }
    
    #footer{
        height: auto;
        padding-top: 7%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) { 
    #middle {
        padding-top: 8%;
    }
    
    #footer{
        height: 25%;
    }
 }

@media (min-width: 992px) and (max-width: 1199.98px) {
    .qrcode-app {
        padding-bottom: 18%;
    }
    #qr{
        height: 20vh;
    }

    .shop-description {
        font-size: 14px;
    }

    #middle {
        font-size: 13px;
         padding-top: 10%; 
    }

    #middle-container2 {
        width: 50%;
    }

    #middle-general {
        font-size: 13px;
    }

    .middle-container {
        min-width: 660px;
    }
    #footer{
        height: 30%;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .middle-container {
        width: 55%;
    }

    .qrcode-app {
        padding-bottom: 10%;
    }
}
