/* ======== CSS Reset from Josh Comeau ======== */

*, *::before, *::after {
    box-sizing: border-box;
}
* {
    margin: 0;
}
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}
input, button, textarea, select {
    font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}
#root, #__next {
    isolation: isolate;
}

/* ======== Top Level Styles ======== */
/*
body {
    font-family: -apple-system, BlinkMacSystemFont, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, sans-serif;
}
*/

/* ======== Adopted from share.css ======== */

/* ==== Fixed Top ==== */

.fixed-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 60;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fixed-top .logo-and-titles {
    display: flex;
    align-items: center;
}

.fixed-top img {
    height: 40px;
    margin-right: 10px;
}

.fixed-top .titles {
    text-align: left;
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.fixed-top h1,
.fixed-top h2[l10n] {
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fixed-top h1 {
    color: #000000;
    font-size: 18px;
}

.fixed-top h2 {
    color: #9C9DA6;
    font-size: 14px;
    font-weight: 400;
}

.button {
    display: inline-block;
    border: none;
    text-decoration: none;
    border-radius: 40px;
    padding: 8px 10px;
    color: #000000;
    background-color: #FAE100;
    font-size: 14px;
    font-weight: 400;
    margin-right: 5px;
    white-space: nowrap;
}

.button a {
    color: inherit;
    display: none;
}

/* ==== Swiper ==== */

.swiper {
    width: 100%;
    height: 300px;
    position: relative;
    background-color: #f5f5f5;
}

.swiper-wrapper {
    scroll-snap-type: x mandatory;
}

.swiper-slide {
    flex: none;
    max-width: 100%;
    scroll-snap-align: start;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swiper-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    text-align: center;
    max-width: 48px;
    left: 85%;
    color: #ffffff;
    background-color: rgba(46, 46, 46, 0.7);
    border-radius: 20px;
    padding: 4px 4px;
    font-size: 12px;
    box-sizing: border-box;
}

/* ==== Merch Info ==== */

.info-box {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0;
    margin: 0 0.25rem;
}

.restaurant-info {
    margin-right: auto;
    max-width: 70%;
}

.restitle p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    text-align: left;
    padding-left: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.restitle {
    display: flex;
    align-items: center;
}

.restitle .star {
    width: 30px;
    height: auto;
    margin-left: 3px;
}

.rating {
    display: flex;
    align-items: center;
}

.stars {
    position: relative;
    height: 40px;
    width: 120px;
    flex-shrink: 0;
}

.img-back,
.img-front {
    position: absolute;
    top: 8px;
    left: 10px;
    width: 120px;
    height: auto;
}

.score {
    font-size: 20px;
    color: #FF6600;
    font-weight: bold;
    margin-left: 15px;
}

.price {
    font-size: 15px;
    color: #000;
    margin-left: 15px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ren {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
    margin-left: 2px;
}

.merch-info-icon {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-right: 5px;
}

.merch-info-icon img {
    width: 40px;
    height: auto;
}

.merch-info-icon p {
    margin: 0;
    padding-top: 2px;
    font-size: 13px;
    color: #8d8d8d;
    font-weight: 400;
}

/* ==== Float Button ==== */

.button-fixed-default{
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 50%;
    width: 30%;
    max-width: 128px;
    height: 25px;
    border: none;
    margin: 10px 0;
    bottom: 70px;
    transform: translateX(-50%);
    color: #000000;
    background-color: #FAE100;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    border-radius: 40px;
    padding: 5px 8px;
    z-index: 30;
    visibility: hidden;
    white-space: nowrap;
}

.button-fixed-default img{
    width: 25px;
    margin-right: 8px;
}

/* ======== Custom Styles ======== */

/* ==== Merch Info ==== */

p#merchName {
    overflow: hidden;
}

.merchant-intro {
    font-size: 13px;
    height: 2.25rem;
    margin: 0 16px;
    padding-bottom: 1rem;
    display: flex;
    column-gap: 1rem;
}

.merchant-intro img {
    height: 1rem;
}

.merchant-intro p {
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #707177;
}

.merchant-item {
    margin: 0 16px;
    padding: 12px 0;
    border-top: 1px solid #f1f1f1;
    display: flex;
    height: 3rem;
    align-items: center;
}

.merchant-item img {
    height: 1rem;
}

.merchant-item > p {
    padding-left: 0.5rem;
}

.merchant-item-right {
    margin-left: auto;
}

div.merchant-item-right {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.merchant-item-address {
    height: calc(8px + 3rem);
    padding: 16px 0;
}

.merchant-item-right p {
    font-size: 0.75rem;
    color: #707177;
}

.merchant-item-times {
    font-size: 0.8rem;
    font-weight: bold;
}

.merchant-item-website {
    font-size: 0.75rem;
    color: #2094FF;
}

.merchant-item-address-text {
    font-size: 0.8rem;
    color: #707177;
}

.merchant-reserve {
    display: flex;
    height: 2.5rem;
    justify-content: center;
    margin: 12px 0;
    align-items: center;
    font-size: 0.875rem;
    font-weight: bold;
    background-color: #F2F7FC;
    color: #2094FF;
    column-gap: 0.5rem;
}

.merchant-reserve img {
    height: 1.5rem;
}

/* ==== Merch Discounts ==== */

.discount-container {
    background-color: #fafafa;
    padding: 0.5rem 0;
}

.discount-header-tab {
    background-color: #ffffff;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 0.875rem 0;
}

.discount-header-tab p {
    font-size: 0.875rem;
    margin: 0 2rem;
    color: #9C9DA6;
}

.discount-header-tab p.active {
    font-weight: bold;
    border-bottom: 3px solid #000000;
    color: #000000;
}

.discount-item {
    display: flex;
    flex-direction: row;
    margin: 1rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    padding: 0.5rem;
}

.discount-item-coupon {
    background: url(../images/vip-coupon-bg.png) no-repeat center center;
    background-size: 100% 100%;
    min-height: 86px;
}

.discount-item img {
    height: 6rem;
    width: 6rem;
    margin-right: 1rem;
}

.discount-item .as-img {
    height: 6rem;
    width: 6rem;
    display: flex;
    color: #e85d00;
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    margin-right: 1rem;
}

.discount-item .as-img p {
    overflow: hidden;
}

.discount-item-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.discount-item-line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.discount-item-line.last {
    margin-top: auto;
}

.discount-item h2 {
    font-size: 1rem;
}

.discount-item p.price {
    font-size: 1rem;
    font-weight: bold;
    color: #FF4A26;
}

.discount-item p.price span {
    font-size: 0.875rem;
    text-decoration: line-through;
    color: #AEAEAE;
}

.discount-item p.extra-info {
    font-size: 0.875rem;
    color: #707177;
}

.discount-item p.discount-percent {
    font-size: 0.875rem;
    color: #FF4A26;
}

.discount-item p.expiry {
    font-size: 0.75rem;
    color: #707177;
}

.buy-price {
    font-size: 1rem;
    font-weight: bold;
    color: #FF4A26;

    font-size: 1.2rem;
    color: #ff790c;
    white-space: nowrap;
}


.original-price {
    font-size: 0.875rem;
    color: #AEAEAE;
    text-decoration: line-through;
    margin-left: 3px;
    margin-right: 3px;
}

.off-price {
    font-size: 0.875rem;
    color: #FF4A26;
    background: #6d4314;
    color: #fbe99e;
    font-size: 11px;
    padding: 1px 4px;
    border-radius: 3px;
}


.discount-item span.buy-button {
    font-size: 0.875rem;
    display: inline-block;
    border-radius: 1rem;
    background-color: #FF4A26;
    color: #ffffff;
    width: 4rem;
    height: 1.5rem;
    padding: 0 1rem;
    text-align: center;

    font-weight: bold;
    color: #6d4314;
    background: linear-gradient(93.66deg, #fad785 0.17%, #fdf4b1 41.65%, #f7db89 76.37%, #f4c769 97.58%, #f3be60 118.27%, #f4c163 131.48%);
    box-shadow: 0px 2px #ce9a29, 0px -1px #fffadc75, 1px 0px #fffadc75, -1px 0px #fffadc75;
}

/* ==== Floating Button ==== */

a.button-fixed-default {
    font-size: 0.875rem;
    height: 2.5rem;
}

/* ==== Wechat Hijacking ==== */

/* ============ 29/04/24 ============== */

.overlay-wechat {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.9);
}

/* In case one day,
I say one day,
Wechat browser supports it,
And we still struggling with the tag */
@supports (backdrop-filter: blur()) {
    .overlay-wechat {
        background-color: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
    }
}

.overlay-wechat-content {
    margin-top: 68px;
    padding-right: 16px;
}

.overlay-wechat-content img {
    float: right;
    width: 80%;
}

@media (max-width: 425px) {
    html {
        font-size: 87.5%;
    }
}

@media (max-width: 350px) {
    .fixed-top {
        flex-direction: column;
        /* 在小屏幕上使元素垂直排列 */
        padding: 5px;
        /* 减少内边距 */
    }

    .logo-and-titles {
        justify-content: center;
        /* 使Logo和标题在小屏幕上居中显示 */
        margin-bottom: 10px;
        /* 为按钮提供上边距 */
    }
}

@media (max-width: 375px) {
    .fixed-top {
        padding: 5px;
        /* 减少内边距 */
    }

    .button {
        padding: 5px 8px;
        /* 减少按钮的内边距 */
        font-size: 12px;
        /* 减小字体大小 */
    }

    .fixed-top h1 {
        font-size: 16px;
    }

    .fixed-top h2 {
        font-size: 12px;
    }
    
    .button-fixed-default {
        width: 35%;
        max-width: 128px;
        font-size: 12px;
        padding: 5px 10px;
        bottom: 60px;
    }

    .button-fixed-default img {
        width: 25px;
        margin-right: 5px;
        padding-left: 5px;
    }

    .button-fixed-default span{
        padding-right: 5px;
    }
}