* {
  box-sizing: border-box;
}

:root {
  --bg-color: #ef5233;
  --bg-gradient-color: linear-gradient(91.86deg, #F3743D 0%, #EF5233 100%);
  --bg-gradient-disabled-color: linear-gradient(91.86deg, #F3743D 0%, #EF5233 100%);
  --font-size-28: 28px;
  --font-size-22: 22px;
  --font-size-20: 20px;
  --font-size-18: 18px;
  --font-size-16: 16px;
  --font-size-14: 14px;
  --font-size-12: 12px;
  --font-size-10: 10px;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

html,
body {
  height: 100%;
}

h2,
.title {
  position: relative;
  z-index: 2;
}

.area>div {
  width: 65px;
  height: 10px;
  border-radius: 5px;
  background-color: #fdebde;
  position: absolute;
  z-index: -1;
  top: 16px;
  left: 0;
}

.title>span {
  display: inline-block;
  width: 65px;
  height: 10px;
  border-radius: 5px;
  background-color: #fdebde;
  position: absolute;
  z-index: -1;
  top: 16px;
  left: 0;
}

.area>.area-2 {
  width: 37px;
}

.mt15 {
  margin-top: 15px !important;
}

.mt30 {
  margin-top: 30px !important;
}

.ml20 {
  margin-left: 20px !important;
}

.img {
  width: 15px;
  height: 15px;
  overflow: hidden;
}

.layui-btn {
  border-radius: 5px !important;
}

.layui-btn.active {
  border-color: #fff !important;
  color: #fff !important;
  background-color: var(--bg-color);
}

.layui-btn-primary:hover {
  border-color: #fff !important;
  color: #fff !important;
  background-color: var(--bg-color);
}

.layui-panel {
  height: 100px;
  border-color: var(--bg-color) !important;
  border-radius: 10px !important;
}

.layui-nav {
  background-color: #fff !important;
}

.layui-nav-item>#nav-title {
  color: #777 !important;
  font-weight: 600;
}

.layui-nav-tree {
  width: 100% !important;
  border-bottom: 1px solid #d8d8d8;
  border-top: 1px solid #d8d8d8;
  border-radius: 5px;
}

.layui-nav-tree .layui-nav-item {
  border-bottom: 1px solid #d8d8d8;
}

.layui-nav-tree .layui-nav-item:last-of-type {
  border-bottom: none;
}

.layui-nav-tree #layui-nav-child {
  background-color: #f3f3f3 !important;
}

.layui-nav-tree .layui-nav-child dd.layui-this,
.layui-nav-tree .layui-this {
  background-color: #f3f3f3 !important;
}

.layui-form {
  margin-left: 20px;
}

.layui-form-item {
  margin-bottom: 0 !important;
}

.layui-form-item .layui-form-checked[lay-skin='primary'] i {
  border-color: var(--bg-color) !important;
  background-color: var(--bg-color) !important;
}

.layui-form-checkbox[lay-skin='primary']:hover i {
  border-color: var(--bg-color) !important;
}

.nq-card-content>div {
  display: inline-block;
  position: relative;
}

.nq-card-content>div>span {
  position: absolute;
  left: calc(30%);
  bottom: -20px;
  color: #aaacae;
}

main {
  width: 60%;
  height: inherit;
  margin: 0 auto;
}

main header {
  padding: 30px 0;
}

.article {
  height: 50px;
  justify-content: space-between;
}

.article .article-left {
  height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.article .article-left .title {
  font-size: var(--font-size-16);
  font-weight: 600;
}

.article .article-left .star span:nth-child(1) {
  font-size: var(--font-size-22);
  font-weight: 600;
  color: #383838;
}

.article .article-left .star span:nth-child(1)::after {
  content: '/5';
  font-size: var(--font-size-16);
  font-weight: 400;
  color: #383838;
}

.article .article-left .star span:nth-child(2) {
  font-size: var(--font-size-14);
  color: #ccc;
}

.article .article-left .star span:last-child {
  color: #777;
}

.article .article-left .star img:first-of-type {
  margin-left: 10px;
}

.article .article-left .star img:last-of-type {
  margin-right: 10px;
}

.article a {
  text-decoration: underline;
  color: #383838;
  font-size: 17px;
}

.layui-panel .star {
  justify-content: space-between;
  padding: 15px;
  padding-right: 30px;
}

.layui-panel .star .star-left img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  transform: rotate(90deg);
}

.layui-panel .star .user-left img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50px;
}

.layui-panel .star .star-left span {
  font-size: var(--font-size-14);
  font-weight: 600;
  color: #777;
}

.layui-panel .star .star-right {
  height: 30px;
}

.layui-panel .star .star-right span {
  height: 100%;
  font-size: var(--font-size-18);
  line-height: 30px;
  color: #777;
}

.layui-panel .star .star-right span::after {
  content: '';
  font-size: 16px;
  color: #777;
  display: block;
  width: 15px;
  height: 15px;
  background: url(../img/star.png) center/100% 100% no-repeat;
  position: relative;
  top: -24px;
  left: 15px;
}

.layui-panel .star .star-right .group-score::after {
  left: 30px;
}

.layui-panel p {
  font-size: var(--font-size-14);
  padding-left: 15px;
}

.layui-container {
  width: 100%;
  text-align: start;
}

.layui-container .area {
  font-size: var(--font-size-16);
  font-weight: 600;
}

.layui-container .layui-row .layui-col-md3 {
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  padding: 5px 0 !important;

}

.tiny-spot {
  width: 100%;
  justify-content: space-between;
  padding: 10px 20px;
}

.tiny-spot div {
  width: 40px;
  height: 25px;
  border-radius: 12.5px;
  font-weight: 600;
  background-color: #f5f4f0;
  cursor: pointer;
}

.tiny-spot div.active {
  background-color: var(--bg-color);
  color: #fff;
}

.tiny-spot div span {
  position: relative;
  display: flex;
  justify-content: center;
  margin-right: 15px;
}

.tiny-spot div span::after {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  position: absolute;
  top: 4px;
  right: -17px;
  background: url(../img/star.png) center/ 15px 15px no-repeat;
}

.nq-row {
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
}

.nq-card {
  width: 100%;
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 10px;
}

.nq-card .nq-card-content {
  width: 100%;
  height: 140px;
  margin-top: 15px;
  overflow: hidden;
  white-space: nowrap;
  overflow-x: scroll;
}

.nq-card .nq-card-content::-webkit-scrollbar {
  width: 5px;
  /* background-color: #ccc; */
}

.nq-card .nq-card-item {
  display: inline-block;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 50%;
  background-color: #f6f6f6;
  margin-right: 20px;
  position: relative;
  cursor: pointer;
  transition: all 2s linear;
}

/* .nq-card .nq-card-item-1::before {
  content: '指定師傅';
  display: inline-block;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 2;
  text-align: center;
  line-height: 100px;
  color: #383838;
}   */
.nq-card .nq-card-item-1::after {
  content: '';
  display: inline-block;
  width: 100px;
  height: 2px;
  background-color: #e0e0e0;
  position: absolute;
  top: 50px;
  z-index: 1;
  transform: rotate(130deg);
}

.nq-card .nq-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.nq-card .nq-card-item>button {
  position: absolute;
  width: 70px;
  height: 25px;
  border-radius: 20px !important;
  background-color: var(--bg-color);
  left: 50%;
  top: 70%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  font-size: 12px;
  display: none;
  z-index: 10;
}

.nq-card .nq-card-item.active>button {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nq-card p {
  font-size: var(--font-size-14);
}

.footer {
  width: 80%;
  margin-block: 20px;
}

.footer .layui-btn-danger {
  width: 160px;
  height: 36px;
  background-color: var(--bg-color) !important;
  border-radius: 18px !important;
}

.layui-btn.layui-btn-danger {
  background: var(--bg-gradient-color) !important;
  color: white !important;
}

.layui-btn.layui-btn-danger.layui-btn-disabled {
  background: var(--bg-gradient-disabled-color) !important;
  color: white !important;
  opacity: 0.5;
}

.layui-container-left {
  position: relative;
}

.layui-container-left>button {
  position: absolute;
  bottom: -40px;
  right: 5px;
}

#shop-info .shop-name {
  font-size: 28px;
  font-weight: 600;
}

#shop-info .star-list .img {
  width: 20px;
  height: 20px;
}

#shop-info .shop-info-details {
  font-size: 16px;
  font-weight: 400
}

#shop-service-rating .rating-number {
  font-size: 16px;
  font-weight: 400;
  color: #FFCC59;
}

#shop-service-rating .comments {
  font-size: 16px;
  font-weight: 400;
  color: #383838;
}

.shop-service-item {
  width: 50%;
  margin-bottom: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.shop-service-item .shopping-price-commit {
  display: flex;
  justify-content: space-between;
}

.shop-service-item .tag-link-right {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #EF5233;
  padding: 5px 20px;
  border-radius: 20px;
  text-align: center;
  color: #fff !important;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
}

.shop-service-item .tag-link-left {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #EF5233;
  padding: 5px 20px;
  border-radius: 20px;
  text-align: center;
  color: #fff !important;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
}

.shop-service-item .shopping-name {
  width: 100%;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: #383838;
  word-break: normal;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.shop-service-item .shopping-txt {
  width: 100%;
  height: 36px;
  font-size: 15px;
  font-weight: 400;
  line-height: 18px;
  word-break: normal;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #383838;
}

.shop-service--a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-name-title {
  /* shopServiceDetail */
  font-size: 28px;
  font-weight: 600;
}

.voucher-item {
  /* width: 30%; */
  margin-bottom: 10px;
  padding: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.shopping-exh {
  width: 100%;
}

.voucher-item .tag-link-right {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #F3743D;
  padding: 5px 20px;
  border-radius: 20px;
  text-align: center;
  color: #fff !important;
  cursor: pointer;
}

.voucher-item .shopping-name {
  width: 50%;
  text-align: left;
}

.voucher-item .shopping-cnt {
  padding: 10px 20px;
}

.voucher-item-recom {
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.search-item {
  margin-bottom: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.search-item .shopping-price-commit {
  display: flex;
  justify-content: space-between;
}

.search-item .tag-link-right {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #EF5233;
  padding: 5px 20px;
  border-radius: 20px;
  text-align: center;
  color: #fff !important;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
}

.search-item .tag-link-left {
  position: absolute;
  top: 10px;
  left: 10px;
  /* background-color: #e37860; */
  padding: 5px 20px;
  border-radius: 20px;
  text-align: center;
  color: #fff !important;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
}

.search-item .shopping-name {
  width: 100%;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: #383838;
  word-break: normal;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.search-item .shopping-txt {
  /* width: 100%;
  height: 36px;
  font-size: 16px;
  line-height: 18px;
  word-break: break-all;
  overflow: hidden;    
  display: -webkit-box;
  text-overflow:ellipsis;    
  -webkit-line-clamp:2;
  -webkit-box-orient: vertical;
  color: #383838; */
  width: 100%;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: #383838;
  word-break: normal;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;


}

.comment-user {
  font-size: 16px;
  font-weight: 400;
  color: #383838;
}

.service-rating {
  font-size: 20px;
  font-weight: 400;
  color: #383838;
}

.service-comment {
  padding: 0 10px;
  text-align: left;
  line-height: 1.5em;
  height: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 400;
  word-wrap: break-word;
  width: 100%;
  color: #383838;
}

/* 
.pagination li {
  display: inline-block; 
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
  border: 1px solid #ddd;
  margin: 0 4px;
}

.pagination li.active a {
  background-color: #EF5233;
  color: white;
  border: 1px solid #ddd;
}

.pagination a:hover:not(.active) {background-color: #ddd;} */

ul.pagination li {
  color: black;
  background-color: #f6f6f6;
  ;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
  border: 1px solid #f6f6f6;
  ;
  margin: 0 4px;
}

ul.pagination li.active {
  background-color: #EF5233;
  color: white;
  /* border: 1px solid #ddd; */
}

ul.pagination li.active a {
  color: white;
  /* border: 1px solid #ddd;  */
}

ul.pagination li a:hover:not(.active) {
  color: #EF5233;
  /* background-color: #EF5233; */
  /* border: 1px solid #ddd;  */
}

ul.pagination a {
  color: 383838;
}

.layui-btn {
  display: inline-block;
  margin: 10px;
  height: 40px;
  font-size: 16px;
  border-radius: 30px !important;
  border-color: var(--bg-color) !important;
  color: var(--bg-color) !important;
}

.layui-btn.active {
  border-color: #fff !important;
  color: #fff !important;
  background-color: var(--bg-color);
}

.layui-btn-primary:hover {
  border-color: #fff !important;
  color: #fff !important;
  background-color: var(--bg-color);
}

#time-period {
  margin-top: 10px;
  display: flex;
  justify-content: start;
}

#time-period .layui-btn-sm {
  border-radius: 5px !important;
  color: #383838 !important;
}

#time-period .layui-btn-sm.active {
  color: #fff !important;
}

#time-period .layui-btn-sm:hover {
  color: #fff !important;
}

.route-disable {
  pointer-events: none;
}

.card-master-intro {
  width: 35%;
}

.btn-back {
  font-size: 18px;
}

#master-intro-title {
  margin-top: 15px;
}

#master-intro .master-name {
  font-size: 18px;
  font-weight: 600;
}

#master-intro .master-info-detail {
  font-size: 16px;
  font-weight: 400;
}

#master-intro .img {
  width: 20px;
  height: 20px;
  margin-bottom: 3px;
}

.top-banner-shop {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.card-service-desp {
  background-color: #FFEADD;
  text-align: justify;
  text-justify: inter-word;
  padding: 20px;
  border-color: var(--bg-color) !important;
  border-radius: 10px !important;
}

.card-service-desp .service-desp {
  font-size: 16px;
  font-weight: 400;
  color: #383838;
}

.flex-choose-time {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-direction: row;
}

.flex-appoint-btn {
  justify-content: end;
}

.sever-title-book {
  width: 100%;
  height: 70px;
  text-align: left;
  position: relative;
}

.sever-desc-book {
  font-size: 16px;
  color: #383838;
}

.sever-title-book .line {
  /* width: -moz-calc(100% + 35px);
  width: -o-calc(100% + 35px);
  width: -webkit-calc(100% + 35px);
  width: -ms-calc(100% + 35px);
  width: calc(100% + 35px); */

  height: 15px;
  background-color: #FDEBDE;
  border-radius: 50px;
  position: absolute;
  bottom: 5px;
  left: -15px;
  z-index: -1;
}

/*Global*/
.sever-title-book-underline {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 600;
  /* height: 70px; */
  float: left;
  padding: 0 10px;
  color: #383838;
}

.sever-title-book-underline:after {
  background-color: #FFEADD;
  content: "";
  width: 100%;
  height: 15px;
  border-radius: 32px;
  position: absolute;
  left: 0px;
  top: 8px;
  z-index: -1;
}

.sever-title-choose {
  width: 100%;
  height: 70px;
  text-align: left;
  position: relative;
}

.sever-title-choose-underline {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 600;
  /* height: 70px; */
  float: left;
  padding: 0 10px;
  color: #383838;
}

.sever-title-choose-underline:after {
  background-color: #FFEADD;
  content: "";
  width: 100%;
  height: 12px;
  border-radius: 32px;
  position: absolute;
  left: 0px;
  top: 10px;
  z-index: -1;
}

.book-list-content {
  font-size: 20px;
}

#book-preview-page {
  margin-top: 50px;
}

#book-preview-details {
  margin-top: 20px
}

.del-btn {
  font-size: 16px;
}

.font-12-10 {
  font-size: 12px;
}

#book-preview-page .card-padding {
  padding: 30px;
}

#book-preview-details .card-padding {
  padding: 30px;
}

@media screen and (max-width: 996px) {
  main {
    width: 100%;
  }

  main header {
    padding: 20px 10px;
  }

  main header button:first-child {
    margin-left: 10px;
  }

  main header button {
    margin-bottom: 10px;
  }

  .article {
    padding: 0 10px;
  }

  .layui-row.layui-col-space10 {
    padding: 0 10px;
  }

  .layui-panel .star .star-left span {
    font-size: 12px;
  }

  .layui-panel .star .star-right span {
    font-size: var(--font-size-14);
  }

  .layui-panel .star .star-right .group-score::after {
    left: 20px;
  }

  .nq-row,
  .nq-card,
  .footer {
    width: 100%;
  }

  .mt15.layui-row.layui-col-space30 {
    padding: 0 10px;
  }

  #time-period {
    margin-top: 10px;
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
  }

  #time-period .layui-btn-sm {
    border-radius: 5px !important;
    color: #383838 !important;
  }

  .article .article-left .star span:last-child {
    font-size: var(--font-size-10);
    color: #777;
  }

}


@media (max-width: 768px) {

  .shop-service-item {
    width: 50%;
  }
}

@media (max-width: 500px) {

  /* org: 430px  iphone 16 pro max 440px × 956px  updated 18-Feb-25 */
  .shop-service-item {
    width: 50%;
  }

  #shop-info .shop-name {
    font-size: 20px;
    font-weight: 600;
  }

  #shop-info .star-list .img {
    width: 14px;
    height: 14px;
  }

  #shop-info .shop-info-details {
    font-size: 14px;
  }

  #shop-service-rating .rating-number {
    font-size: 12px;
  }

  #shop-service-rating .comments {
    font-size: 12px;
  }

  .service-name-title {
    font-size: 20px;
    font-weight: 600;
  }

  .article .article-left .title {
    font-size: var(--font-size-16);
    font-weight: 600;
  }

  .article .article-left .star span:nth-child(1) {
    font-size: var(--font-size-16);
    font-weight: 600;
    color: #383838;
  }

  .article .article-left .star span:nth-child(1)::after {
    content: '/5';
    font-size: var(--font-size-10);
    font-weight: 400;
    color: #383838;
  }

  .article a {
    font-size: 12px;
  }

  .comment-user {
    font-size: 14px;
  }

  .service-rating {
    font-size: 16px;
    font-weight: 400;
  }

  .service-comment {
    padding: 0 10px;
    text-align: left;
    line-height: 1.5em;
    height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 400;
    word-wrap: break-word;
    width: 100%
  }

  #master-intro-title {
    margin-top: 0px;
  }

  .card-master-intro {
    width: 60%;
  }

  .btn-back {
    font-size: 12px;
  }

  #master-intro .master-name {
    font-size: 14px;
    font-weight: 600;
  }

  #master-intro .master-info-detail {
    font-size: 12px;
    font-weight: 400;
  }

  #master-intro .img {
    width: 15px;
    height: 15px;
    margin-bottom: 3px;
  }

  .top-banner-shop {
    height: 200px;
  }

  .card-service-desp {
    /* margin-left: 10px; */
    background-color: #FFEADD;
    text-align: justify;
    text-justify: inter-word;
    padding: 20px;
    border-color: var(--bg-color) !important;
    border-radius: 10px !important;
  }

  .card-service-desp .service-desp {
    font-size: 14px;
    font-weight: 400;
    color: #383838;
  }

  .flex-choose-time {
    flex-direction: column;
  }

  .flex-appoint-btn {
    justify-content: center;
  }

  #book-preview-page {
    margin-top: 20px;
    padding: 0 20px;
  }

  #book-preview-details {
    margin-top: 20px;
    padding: 0 20px;
  }

  .sever-title-book {
    width: 100%;
    height: 70px;
    text-align: left;
    position: relative;
  }

  .sever-desc-book {
    font-size: 12px;
    color: #383838;
  }

  .sever-title-book .line {
    height: 15px;
    background-color: #FDEBDE;
    border-radius: 50px;
    position: absolute;
    bottom: 5px;
    left: -15px;
    z-index: -1;
  }

  /*Global*/
  .sever-title-book-underline {
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 600;
    /* height: 70px; */
    float: left;
    padding: 0 5px;
    color: #383838;
  }

  .sever-title-book-underline:after {
    background-color: #FFEADD;
    content: "";
    width: 100%;
    height: 10px;
    border-radius: 32px;
    position: absolute;
    left: 0px;
    top: 8px;
    z-index: -1;
  }

  .book-list-content {
    font-size: 14px;
  }

  .sever-title-choose {
    width: 100%;
    height: 70px;
    text-align: left;
    position: relative;
  }

  .sever-title-choose-underline {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 600;
    /* height: 70px; */
    float: left;
    padding: 0 10px;
    color: #383838;
  }

  .sever-title-choose-underline:after {
    background-color: #FFEADD;
    content: "";
    width: 100%;
    height: 8px;
    border-radius: 32px;
    position: absolute;
    left: 0px;
    top: 8px;
    z-index: -1;
  }

  .del-btn {
    font-size: 12px;
    height: 25px;
    line-height: 22px
  }

  .font-12-10 {
    font-size: 10px;
  }

  #book-preview-page .card-padding {
    padding: 10px;
  }

  #book-preview-details .card-padding {
    padding: 0px;
  }
}

@media (min-width: 996px) {
  .shop-service-item {
    width: 25%;
  }

}