
/* for 最上方的橫軸選單 */
.level-scroll {
    -webkit-overflow-scrolling: touch;  -ms-overflow-style: -ms-autohiding-scrollbar;
    overflow-x: scroll; height: 55px; display: flex;
}
.level-scroll::-webkit-scrollbar {display: none;}

.level-scroll input+label { 
    height: 50px; 
    background-color: #FFFFFF; border-radius: 5px; flex: 0 0 auto; 
    text-align: center; font-size: 16px; line-height: 50px; padding: 0px 10px; min-width: 90px; margin-right: 10px; 
}

.level-scroll input:disabled+label{
    background: #AAAAAA !important;
    color: #FFFFFF !important;
    border: 1px solid #AAAAAA !important;
}


/* 餐點列表中的餐點項目, 有三種排列方式 */
/* set-1: 大區塊單排, set-2: 條排列, set-3: 小區塊雙排 */
#banner_image {width: 100%; height: 210px;  object-fit: cover; display: block;}
.rest-set-1 {width: 100%; border-radius: 5px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25); background-color: #FFFFFF;}
.rest-set-1 > div {padding: 10px 15px; min-height: 50px; display: flex; flex-direction: column;}
.rest-set-1 > span > img {margin: auto 0px;}
.rest-set-1 > img {object-fit: cover; width: 100%; height: 200px; border-radius: 5px 5px 0px 0px; }

.rest-set-2 {width: 100%; min-height: 90px; display: flex; border-bottom: 1px dotted #B9B9B9; padding: 15px 0px; justify-content: space-between;} 
.rest-set-2 > span > img {margin: auto 0px;}
.rest-set-2 > img {object-fit: cover; width: 100px; max-height: 67px;}

.rest-set-3 {width: calc(50% - 8px); border-radius: 5px; box-shadow: 0px 0px 10px 0px #00000040; background-color: #FFFFFF;} 
.rest-set-3 > div {text-align: center; min-height: 76px; display: flex; flex-direction: column; padding: 0px 5px 5px 5px ;}
.rest-set-3 > span {margin: 9px auto 4px auto;}
.rest-set-3 > span > img {margin: auto 0px auto auto}
.rest-set-3 > img {object-fit: cover; width: 100%; height: 109px; border-radius: 5px 5px 0px 0px;}

.rest-set-name {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; line-clamp: 3; flex: 1
}


/* 餐點細節 */
#gray_background_detail > div,
#productDetailModal > div{
    width: 100%; max-height: calc(100% - 80px);
    z-index: 999; background-color: #FFFFFF; border-radius: 15px 15px 0px 0px; 
    position: absolute; bottom: 0px; left: 0px; 
}

#productDetailModal > div {  overflow-y: auto;}

#gray_background_detail > div > img,
#productDetailModal > div > img  {width: 30px; position: absolute; top: 10px; right: 10px;}


/* 換餐選項列表項目 */
#changeList {gap: 15px 0px; padding: 0px 20px; text-align: center; display: flex; flex-direction: column; margin-top: 15px;}
#changeList > div {
    height: fit-content; width: 100%;
    border-width: 1px; border-style: solid;
    margin: auto; border-radius: 5px; padding: 10px 15px;
    display: flex; justify-content: space-between;
}


/* 特殊選項&加價選項的按鈕樣式 */
.set-option{ gap: 10px; }
.set-option input+label{ 
    border-radius: 3px; font-size: 12px; padding: 5px 10px; text-align: center; min-width: 70px;
}


/* 購物車的數量標示 */
#cartTag{
    width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; 
    line-height: 18px; font-size: 12px; font-weight: 700; text-align: center; 
    margin: auto 0px auto 5px; 
}


/* 商品細節的多圖滾動預覽樣式 */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

.image-carousel {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.image-carousel::-webkit-scrollbar{height: 0px; width: 0px;}

.carousel-image {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  scroll-snap-align: start;
  object-fit: contain;
}

.carousel-dots {
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #333;
}


/* 商品細節 tab 的切換樣式 */
.menu-item {
    flex: 1;
    text-align: center;
    line-height: 35px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    color: #8C8C8C;
}

.menu-item.active {
    border-bottom-width: 2px;
    border-bottom-style: solid;
}




/* 餐點介紹文樣式 */
#htmlContent img{max-width: 100%; margin: auto;}
.ql-editor{
    white-space: inherit;
    line-height: 26px;
}
.ql-editor h2 {
    line-height: 50px;
}


/*成分說明條列樣式 */
ul {padding-inline-start: 0px;}
ul > li{ list-style-type: none; line-height: 200%; }


/* 營養標示表格樣式 */
#gray_background_detail table {
    width: 100%;
    font-size: 14px;
    border: 1px solid #6D6D6D;
}
#gray_background_detail td {padding: 3px 18px;}
#gray_background_detailth {padding: 6px 18px;}
#gray_background_detail th {
    background-color: #6D6D6D;
    color: white; text-align: right;
}
.indent { padding-left: 32px; }
#gray_background_detail tbody > tr > td:nth-child(1){width: 34%;}
#gray_background_detail tbody > tr > td:nth-child(2){width: 33%; text-align: right;}
#gray_background_detail tbody > tr > td:nth-child(3){width: 33%; text-align: right;}