/*font */

/* iOS Safari overscroll fix — applied before fonts so it loads early */
html, body {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}
html {
  background-color: var(--bg-color, #ffffff);
  /* Ensure full viewport coverage including safe areas */
  height: 100%;
}

@font-face {
  font-family: 'Noto'; /*thai body */
  src: url('../font/th/NotoSansThai-Regular.woff2') format('woff2'),
      url('../font/th/NotoSansThai-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Bold'; /*thai body */
  font-weight: 700;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/notosansthai/v25/iJWQBXeUZi_OHPqn4wq6hQ2_hbJ1xyN9wd43SofNWcdfKI2hTWsb-P2c.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Witt'; /*thai title */
  src: url('../font/th/Wittayakarn-Bold.woff2') format('woff2'),
      url('../font/th/Wittayakarn-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../font/en/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
/*end font */

[v-cloak] { display:none; }
.hidden {
  display: none;
}
.body-part {
  background-color: var(--bg-color);
	color: var(--text-primary-color);
	min-height: 100vh;
  font-family: "Roboto";
  font-size: 15px;
}
.body-part .tier-name {
  font-size: 10px;
}
.th.body-part {
  font-family: "Noto";
}
.preview-part.body-part {
  min-height: 818px;
  max-height: 818px;
}
.no-data-box {
  text-align: center;

}
.lang{
    font-family: 'Noto' ;
    list-style: none;
    padding: 0 2px;
    height: 31px;
    margin-top: 15px;
    display: inline-flex;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border-radius: 999px;
    cursor: pointer;
    background: var(--primary-color);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.30);
    box-shadow: 0 2px 12px rgba(0, 25, 88, 0.18);
}
.lang li {
  font-family: 'Noto' !important;
    width: 46px;
    height: 23px;
    line-height: 16px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    border-radius: 999px;
    border: none;
    color: #fff !important;
    cursor: pointer;
    font-weight: lighter;
}
.lang li.active {
    background-color: #fff;
    color: var(--primary-color) !important;
}
.mt-center {
  margin-top: 30vh;
}
.mt-center2 {
  margin-top: 40vh;
}
.mt100 {margin-top: 100px;}
.mt50 {margin-top: 50px;}
.pb80 {padding-bottom: 80px;}
.pb40 {padding-bottom: 40px;}
.p-lr20{padding-left: 20px; padding-right: 20px;}
@media (min-width: 321px) {
    .container-fluid {
      padding-right: 10px;
      padding-left: 10px;
    }
    .container-fluid {
      padding-right: 0;
      padding-left: 0;
    }
}
.container1 {
    max-width: 355px;
    min-width: 320px;
    margin: 0 auto;
}


.w-full { width: 100%;}
.h-v100 { min-height: 100vh;}
.p0 {
  padding-left: 0;
  padding-right: 0;
}
.main-pad2 {
  padding-bottom: 20px;
}
.mt-20 {
  margin-top: 20px;
}
.mt10{margin-top: 10px;}
.mb10{margin-bottom: 10px;}
.pb5{padding-bottom: 5px;}
.mr5 {
  margin-right: 5px;
}
.ml5 {
  margin-left: 5px;
}
.ml-auto {
  margin-left: auto;
}
.preview-part.h-v100, .preview-part .h-v100 {
  min-height: 812px;
  max-height: 812px;
}
.gray-block {filter: grayscale(100%);-webkit-filter: grayscale(100%);}
.gray-block1 {filter: grayscale(50%);-webkit-filter: grayscale(50%);}
.break-word{ word-break: break-word;}
.clr-err {
  color: var(--alert-color);
}
.clr-err-need-price {
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.clr-accent {
  color: var(--accent-color);
}
/*toast */
#snackbar {
    right: 7%;
    bottom: 30px;
}
#snackbar, #snackbar-success, #snackbar-fail {
    visibility: hidden;
    min-width: 50px;
    /* margin-left: -125px; */
    background-color: rgba(87, 201, 232, 0.5);
    color: #6A6A6A;
    text-align: center;
    border-radius: 2px;
    padding: 5px;
    position: fixed;
    z-index: 110;
    font-size: 17px;
    border-radius: 4px;
    -webkit-box-shadow: 0px 2px 5px 2px rgb(178 178 178 / 30%);
    -moz-box-shadow: 0px 2px 5px 2px rgba(178, 178, 178, 0.3);
    box-shadow: 0px 2px 5px 2px rgb(178 178 178 / 30%);
}
#snackbar-success, #snackbar-fail{
    bottom: 100px;
    min-width: 200px;
    right: 7%;
}
#snackbar.show{
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
#snackbar-success.show, #snackbar-fail.show {
    visibility: visible;
    -webkit-animation: fadein1 0.5s, fadeout1 0.5s 2.5s;
    animation: fadein1 0.5s, fadeout1 0.5s 2.5s;
}
.unit-name {
  font-size: 12px;
}
  
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@-webkit-keyframes fadein1 {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 100px; opacity: 1;}
}

@keyframes fadein1 {
    from {bottom: 0; opacity: 0;}
    to {bottom: 100px; opacity: 1;}
}

@-webkit-keyframes fadeout1 {
    from {bottom: 100px; opacity: 1;} 
    to {bottom: 70px; opacity: 0;}
    from {bottom: 70px; opacity: 0;}
    to {bottom: 0; opacity: 0;}
}
  
@keyframes fadeout1 {
    from {bottom: 100px; opacity: 1;}
    to {bottom: 70px; opacity: 0;}
    from {bottom: 70px; opacity: 0;}
    to {bottom: 0; opacity: 0;}
}
/*end toast */
  
  
/* loading spinner */
.lds-default {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-default div {
position: absolute;
width: 6px;
height: 6px;
background: #000;
border-radius: 50%;
animation: lds-default 1.2s linear infinite;
}
.lds-default div:nth-child(1) {
animation-delay: 0s;
top: 37px;
left: 66px;
}
.lds-default div:nth-child(2) {
animation-delay: -0.1s;
top: 22px;
left: 62px;
}
.lds-default div:nth-child(3) {
animation-delay: -0.2s;
top: 11px;
left: 52px;
}
.lds-default div:nth-child(4) {
animation-delay: -0.3s;
top: 7px;
left: 37px;
}
.lds-default div:nth-child(5) {
animation-delay: -0.4s;
top: 11px;
left: 22px;
}
.lds-default div:nth-child(6) {
animation-delay: -0.5s;
top: 22px;
left: 11px;
}
.lds-default div:nth-child(7) {
animation-delay: -0.6s;
top: 37px;
left: 7px;
}
.lds-default div:nth-child(8) {
animation-delay: -0.7s;
top: 52px;
left: 11px;
}
.lds-default div:nth-child(9) {
animation-delay: -0.8s;
top: 62px;
left: 22px;
}
.lds-default div:nth-child(10) {
animation-delay: -0.9s;
top: 66px;
left: 37px;
}
.lds-default div:nth-child(11) {
animation-delay: -1s;
top: 62px;
left: 52px;
}
.lds-default div:nth-child(12) {
animation-delay: -1.1s;
top: 52px;
left: 62px;
}
@keyframes lds-default {
0%, 10% {
    opacity: 0%;
}
80%, 100% {
    transform: scale(1);
    opacity: 30%;
}
50%{
    transform: scale(1);
    opacity: 50%;
}
30% {
    transform: scale(1);
    opacity: 100%;
}
}
  
  /* end loading spinner */
  
  /* loader -- */
  
  .loader{
      position: fixed;
      left: 0px;
      top: 0px;
      width: 100%;
      height: 100%;
      z-index: 9999;
      background-color: #0000004a;
  }
  .loader .lds-default {
      top: 35%;
  }
  .loader .lds-ellipsis {
    top: 35%;
  }
  .loader .lds-facebook {
    top: 35%;
  }
  .loader1{
      /*position: fixed; */
      left: 0px;
      bottom: 100px;
      width: 100%;
      height: 50px;
      z-index: 9999;
      /*background-color: #0000004a;*/
  }
  .loader1 .lds-default {
    top: 2px;
  }
  
  /* loader 2 */
  /*Ellipsis*/
  
  .lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
  }
  .lds-ellipsis div {
    position: absolute;
    top: 27px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #E7D79D;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
  }
  .lds-ellipsis div:nth-child(1) {
    left: 6px;
    animation: lds-ellipsis1 0.6s infinite;
  }
  .lds-ellipsis div:nth-child(2) {
    left: 6px;
    animation: lds-ellipsis2 0.6s infinite;
  }
  .lds-ellipsis div:nth-child(3) {
    left: 26px;
    animation: lds-ellipsis2 0.6s infinite;
  }
  .lds-ellipsis div:nth-child(4) {
    left: 45px;
    animation: lds-ellipsis3 0.6s infinite;
  }
  @keyframes lds-ellipsis1 {
    0% {
      transform: scale(0);
    }
    100% {
      transform: scale(1);
    }
  }
  @keyframes lds-ellipsis3 {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(0);
    }
  }
  @keyframes lds-ellipsis2 {
    0% {
      transform: translate(0, 0);
    }
    100% {
      transform: translate(19px, 0);
    }
  }
  
  /*
  //Facebook */
  .lds-facebook {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 30px;
  }
  .lds-facebook div {
    display: inline-block;
    position: absolute;
    left: 6px;
    width: 9px;
    background: rgba(231,215,157, 0.4);
    animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
  }
  .lds-facebook div:nth-child(1) {
    left: 6px;
    animation-delay: -0.24s;
  }
  .lds-facebook div:nth-child(2) {
    left: 26px;
    animation-delay: -0.12s;
  }
  .lds-facebook div:nth-child(3) {
    left: 45px;
    animation-delay: 0;
  }
  @keyframes lds-facebook {
    0% {
      top: 2px;
      height: 18px;
    }
    50%, 100% {
      top: 8px;
      height: 12px;
    }
  }
  /* end loader -- */

  /*modal */
.dq-modal .modal-content {
  background-color: var(--bg-color);
}
.dq-modal .btn1 {
  width: 50%;
  margin: 5px;
  font-size: 16px;
}
  /*end modal*/

  /*btn */
  .footer-fix .btn1 {
    font-size: 16px;
  }
  /*end btn */

  /*icon */
.img-powerby {
  max-width: 100px;
  max-height: 100px;
}
  /* no data */
  .no-data-box svg path {
    fill: var(--primary-color);
  }
  .no-data-box svg {
    margin-bottom: 10px;
  }
  .no-data-box .btn {
    margin-top: 10px;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 16px;
  }
  svg.icon-primary path {
    fill: var(--primary-color);
  }
  .icon-success svg path.success{
    fill: var(--success-color);
  }
  .icon-alert svg path {
    fill: var(--alert-color);
  }
  .profile .icon-success svg path {

  }
  /*end icon */

  /* up down icon */

  .fa-angle-down path,  .fa-angle-up path{
    fill: var(--primary-color);
  }
  .logo {
    max-height: 40px;
    max-width: 150px;
  }
  .tier-box{display: flex; align-items: end;}
  .scan-qr, .scan-qr-more{
    display: flex;
    align-items: center;
    color: var(--primary-color);
  }
  .scan-qr-more{
    padding: 14px 0px 14px 0px;
    /*height: 65px;*/
    /* background: #fff; */
    /* width: 100%; */
  }
  .leftauto{margin-left: auto;}

  
  .scan-qr svg, .scan-qr-more svg{margin-right: 15px; width: 20px; height: 20px;}
  .scan-qr svg .out-line, .scan-qr-more svg .out-line{fill: var(--primary-color);}
  .scan-qr svg .in-line, .scan-qr-more svg .in-line{fill: var(--text-primary-color);}
  canvas.drawing,
    canvas.drawingBuffer {
      position: absolute;
      left: 0;
      top: 0;
    }
    
    .p-relative {
        position: relative;
    }
    .qrcode-stream-wrapper {
        height: 100vh;
    }
    .qrcode-stream-wrapper video{
        height: 100%;
        height: 100vh;
        width: 100%;
    }
    .scan-qr-title1{ font-family: "Roboto","Witt"; font-weight: bold; font-size: 17px; color: var(--primary-color); margin: 10px 0 40px 0; align-items: center;}
    .scan-box{
      padding: 40px 10px 60px 10px;
      border-radius: 20px;
      box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
    }
    .clr-primary {color: var(--primary-color);}
    .copy-box {
      display: flex;
    }
    .copy-box .card-number{border-radius: 10px !important; width: 80%; position: absolute; z-index: 1; left: 0; padding-left: 20px; padding-top: 10px; font-size: 19px;}
    .copy-box .btn-copy{font-size:13px; line-height: 29px; border-radius: 10px !important; width: 100px; position: absolute; z-index: 2; right: 0;background-color: var(--primary-color); color: #fff}
    .scan-qr {margin-top : 60px;}
    .redeem-info-block,
    .redeem-info-block1 {
      border-radius: 20px;
      
      background: linear-gradient(180deg, #FF7566 0%, #DB695C 100%);
      color: #fff;
      padding: 10px;
      font-size: 85%;
    }
    .redeem-info-block{
      display: flex;
      align-items: center;
    }
    .redeem-info-block1{border-radius: 10px;font-size: 100%;}
    .redeem-info-block img{margin-right: 10px;}
    .redeem-info-block .title11{
      font-family: 'Noto Bold','Roboto';
      font-weight: bold;
    }
    .redeem-info-block.success, .redeem-info-block1.success {
      background: linear-gradient(180deg, #DEF4EA 0%, #B6DDCB 100%);
      color: #000;
    }
    .btn-scan {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .btn-scan svg{margin-right: 5px;}
    .redeem-modal .title-icon{width: 120px;margin-bottom: 20px;}
    .redeem-modal h3 {font-family: 'Noto Bold', 'Roboto';font-weight: bold;margin-bottom: 20px;}
    .redeem-modal .redeem-info-block1{margin-top: 20px; margin-bottom: 20px;}
    .to-earn-point{font-size: 40px; font-family:'Roboto'; font-weight: bold; color: var(--primary-color);}
    .close-modal{
      /* border-radius: 50%; */
      padding: 0;
      width: 35px;
      height: 35px;
      background: none;
      border: 0;
      position: absolute;
      top: 5px;
      right: 5px;
      vertical-align: middle;
      text-align: center;
      z-index: 1051;
    }
    .close-modal img{
      width: 20px;
      height: 20px;
    }
    .close-modal:hover, .close-modal:focus{
      outline: none;
      background: none;
    }
    .close-img .p1{
      fill: var(--primary-color);
    }
    .link-block{
      width: 100%;
      float: left;
    }
    .mb10{margin-bottom: 10px;}
    .modal-content h3{
      font-size: 24px !important;
    }
    .f14 {
      font-size: 14px;
    }
    .border-bot{border-bottom: 1px solid rgba(0, 0, 0, 0.1);}
    .border-bot:last-child {
      border-bottom: none;
    }

/* icon-new: stroke-based menu icons (non-fill) */
.footer-menu li a svg.icon-new {
  width: 23px;
  height: 20px;
}
.footer-menu li a svg.icon-new path {
  fill: none;
  stroke: var(--inactive-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-menu li.active a svg.icon-new path {
  fill: none;
  stroke: var(--primary-color);
}
.footer-menu li a svg.icon-new circle {
  fill: var(--inactive-color);
  stroke: none;
}
.footer-menu li.active a svg.icon-new circle {
  fill: var(--primary-color);
  stroke: none;
}
.footer-menu li.coupon.active a svg.icon-new path {
  fill: transparent !important;
  stroke: var(--primary-color) !important;
}
.footer-menu li.more.active a svg.icon-new path {
  stroke: var(--primary-color) !important;
}

/* icon-earn: earn button with circle background */
.footer-menu li a svg.icon-earn {
  outline: var(--inactive-color) solid 1px;
  border-radius: 100%;
}

.footer-menu li a svg.icon-earn circle.bg {
  border-radius: 100%;
  outline: var(--inactive-color) solid 1px;
  fill: var(--bg-color, #ffffff);
  stroke: none;
}
.footer-menu li.active a svg.icon-earn circle.bg {
  fill: var(--primary-color);
  stroke: #ffffff;
  stroke-width: 2px;
}
.footer-menu li a svg.normal.earn.icon-earn path,
.footer-menu li a svg.normal.earn.icon-earn rect {
  stroke: var(--inactive-color);
  fill: none;
}
.footer-menu li.active a svg.normal.earn.icon-earn path,
.footer-menu li.active a svg.normal.earn.icon-earn rect {
  stroke: #ffffff;
  fill: none !important;
}
.footer-menu li.earn-li.earn-li-new {
  margin-top: -14px;
}
.footer-menu li a svg.normal.earn.icon-earn .icon-earn-new {
  stroke-width: 1.5px;
}
.footer-menu li.active a svg.normal.earn.icon-earn .icon-earn-new {
  stroke-width: 1.5px;
}