@charset "UTF-8";

/* =========== breadcrumb ============= */
#navigation-header {
  z-index: 10000 !important;
}

@media screen and (min-width: 200px) {
  /* .sc-breadcrumb {
    padding-top: 48px;
  } */

  .sc-breadcrumb ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* margin: 0 auto 48px; */
    width: 100%;
    column-gap: 18px;
    padding: 0;
  }

  .sc-breadcrumb ul li {
    font-size: 13px;
    list-style: none;
    margin-right: 8px;
    position: relative;
    color: #666666;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 24px;
  }

  .sc-breadcrumb ul li strong {
    font-size: 13px;
    list-style: none;
    margin-right: 8px;
    position: relative;
    color: #00A94F;
    font-weight: 600;
  }


  .sc-breadcrumb ul li:last-child {
    overflow: hidden;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .sc-breadcrumb ul li::after {
    content: "";
    opacity: 1;
    position: absolute;
    left: calc(100% + 8px);
    border-right: 1px solid #666666;
    border-bottom: 1px solid #666666;
    height: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 8px;
  }

  .sc-breadcrumb ul li:last-child:after {
    content: "";
    position: absolute;
    right: 0;
    border-right: none;
    border-bottom: none;
  }
}

/* @media screen and (max-width:767px) {
  .sc-breadcrumb {
    padding-top: 11px;
  }

} */

/* =========== breadcrumb ============= */





.sc-product-select .sc-inner {
  padding: 48px 0;
}

.sc-product-detail {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.sc-bg-light-blue-gradient {
  background: #EBEDEE !important;
}

.sc-head .head-title {
  font-size: 24px !important;
  line-height: 36px !important;
  padding-bottom: 8px;
}

.sc-head .decs {
  font-size: 16px !important;
}

p.decs {
  font-size: 13px;
}

.product-select i.icon.ic-plus {
  display: flex;
  width: 16px;
  height: 16px;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.product-select i.icon.ic-plus:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.creditcard-product i.icon.ic-plus {
  display: flex;
}

.creditcard-product i.icon.ic-plus:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0 auto;
}

.ic-plus.--gray:before {
  background: url('https://www.kasikornbank.com/SiteCollectionDocuments/kcc/compare/img/icons/ic-iplus-gray.svg') center center no-repeat;
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0 auto;
}

.ic-plus.--green:before {
  background: url('https://www.kasikornbank.com/SiteCollectionDocuments/kcc/compare/img/icons/ic-iplus-green.svg') center center no-repeat;
}

/* .ic-colse.--red:before {
    background: url('https://www.kasikornbank.com/SiteCollectionDocuments/kcc/compare/img/icons/ic-close-red.svg') center center no-repeat;
} */


.product-select {
  position: relative;
  padding-bottom: 32px;
}

.product-select .sc-content {
  display: flex;
  gap: 24px;
}

.box-addcard {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #ffffff 0%, #e7f8ee 100%);
  border-radius: 8px;
  padding: 14px;
  border: 1px solid #DDDDDD;
  height: 72px;
  /* box-shadow: 0 0 0 1px #dfe6e1 inset; */
}

.box-addcard .add-cards {
  position: relative;
  display: flex;
  justify-content: center;
  height: 100%;
}

.product-select .box-addcard .btn-select {
  padding: 0;
  width: auto;
  min-width: 60px;
  height: 40px;
  border: 1.36px dashed #66CB95;
  background: #D4EFE1;
  border-radius: 5px;
}

.box-addcard .decs {
  color: #333;
  font-size: 13px;
  line-height: 20px !important;
  padding-left: 16px;
  margin: 0;
}

.box-addcard .add-cards .btn-button {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 1.36px dashed #66CB95;
  background: #D4EFE1;
  border-radius: 5px;
  padding: 0;
  min-width: 60px;
}

@media screen and (min-width:768px) {

  .sc-product-select {
    position: relative;
    background: linear-gradient(180deg, #EBEDEE 0%, #DBDEE0 100%);
  }

  /* .sc-product-select::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: url('/SiteCollectionDocuments/kcc/compare/img/cc-compare-bg-desktop-v2.jpg') bottom center no-repeat;
    background-size: 100% auto;
  } */

  .sc-head {
    flex: 1 1 clamp(320px, calc(100% - 306px - 8px), 826px);
    min-width: 0;
  }

  .box-addcard {
    flex: 0 0 220px;
    max-width: 220px;
  }

}

@media screen and (min-width:992px) {
  .box-addcard {
    flex: 0 0 306px;
    max-width: 306px;
  }

}

@media screen and (max-width:1199px) {
  .sc-head .head-title {
    font-size: 20px !important;
    line-height: 30px !important
  }

  .sc-head .decs {
    font-size: 13px !important;
    line-height: 20px !important;
  }
}

@media screen and (max-width:768px) {
  .product-select .sc-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .box-addcard {
    max-width: 328px;
    width: 100%;
    margin: 0 auto;
  }

  .sc-head .head-title {
    font-size: 24px !important;
  }
}

@media screen and (max-width:767px) {
  .sc-product-select {
    position: relative;
    background: linear-gradient(180deg, #EBEDEE 0%, #DBDEE0 100%);
  }

  /* .sc-product-select::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: url('/SiteCollectionDocuments/kcc/compare/img/cc-compare-bg-mobile-v2.jpg') bottom center no-repeat;
    background-size: 100% auto;
  } */

  .sc-product-select .sc-inner {
    padding: 32px 0 40px;
  }

  .sc-head .head-title {
    /* font-size: 20px !important;
    line-height: 30px !important; */
    text-align: center;
  }

  /* .sc-head .decs {
    font-size: 13px !important;
    line-height: 20px !important;
  } */

  .product-select .sc-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .box-addcard {
    display: flex;
    justify-content: center;
    height: 92px;
  }

  .creditcard-product i.icon.ic-plus:before {
    width: 24px;
    height: 24px;
  }
}

.creditcard-all {
  display: flex;
  gap: 16px;
  overflow-x: auto;

  overflow-y: hidden;
  touch-action: pan-y;
  /* cursor: grab; */
}

.creditcard-all.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.card-type {
  position: relative;
  width: 379px;
}

.dt-card.card-type-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #F6F6F6;
}

.dt-card.card-type-top.fix-header {
  border-bottom: 1px solid #f00;
}

.creditcard-list {
  position: relative;
  display: flex;
  justify-content: center;
  width: 380px;
}

.creditcard-list .card-type {
  display: flex;
  flex-direction: column;
  width: 100%;

}

.creditcard-list .card-type-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  background-color: #F6F6F6;
}

.creditcard-list .card-type-top p {
  text-align: center;
}

.creditcard-product .card-type-top {
  color: #333;
}

.creditcard-list .dt-card {
  padding: 16px;
  /* border: 1px solid #DDDDDD; */
  border-top: 1px solid #DDDDDD;
  border-right: 1px solid #DDDDDD;
  border-bottom: 1px solid transparent;
}

.creditcard-list:first-child .dt-card {
  border-left: 1px solid #DDDDDD;
}

.creditcard-list .dt-card:last-child {
  border-bottom: 1px solid #DDDDDD;
}

.creditcard-list .detail-card:first-child {
  border-bottom: none;
}

.creditcard-list .detail-card .title {
  padding-bottom: 8px;
}

.creditcard-list .detail-card ul {
  padding-left: 24px;
}

.creditcard-list .detail-card ul li {
  list-style: disc !important;
}

.creditcard-list .detail-card ul li::marker {
  font-size: 12px;
}



.card-select {
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: #ECEEEF; */
}

.creditcard-select {
  background: #ECEEEF;
}


.card-select .inner-select .btn-button {
  padding: 0;
  width: auto;
  min-width: 88px;
  height: 60px;
  overflow: hidden;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-select .inner-select .add-cards {
  border: 2px solid #E3E3E3;
  border-radius: 50%;
}

.card-select .inner-select .ic-plus {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creditcard-select .inner-select .ic-plus:before {
  color: #BFBFBF;
}

.footer-card {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer-card .link {
  color: #00A94F;
}

.footer-card .link:hover {
  color: #00873F !important;
}

.footer-card .link-privilege {
  font-size: 16px !important;
  color: #00A94F !important;
}

.footer-card .link-scroll {
  border-radius: 8px;
  padding: 12px 48px;
  background: #00A94F !important;
  color: #fff;
  font-size: 16px !important;
}

.footer-card .link-scroll:hover {
  background: #0BC160;
  color: #fff;
}

.icw .btn:hover,
.icw .btn:active:hover,
.icw .btn.active:hover,
.icw .btn:active:focus,
.icw .btn.actitve:focus,
.icw .btn:active.focus,
.icw .btn.active.focus,
.icw .btn:focus,
.icw .btn:focus:hover,
.icw .btn.focus:hover {
  color: #fff !important;
}

.kcc .sc-s-apply .sc-kplus .action .btn {
  color: #fff !important;
}

.kcc .sc-s-apply .sc-form .action .btn {
  color: #fff !important;
  opacity: 1;
}

#applyNextButton.disabled-action a:hover,
#applyFinishButton.disabled-action a:hover {
  background: #384A58;
}

@media screen and (min-width:768px) {
  .creditcard-list {
    display: flex;
    justify-content: center;
    width: 380px;
  }

  .creditcard-product .card-type-top .img-card {
    max-width: 100px;
    max-height: 60px;
    border-radius: 6px;
    margin: 20px 24px;
  }
}

@media screen and (max-width:767px) {
  .creditcard-all {
    margin-left: -16px;
    margin-right: -16px;
  }

  .creditcard-list {
    display: flex;
    justify-content: center;
    width: 180px;
  }

  .creditcard-product .card-type-top .img-card {
    max-width: 60px;
    max-height: 36px;
    border-radius: 4px;
    margin: 12px 14px 12px;
  }

  .dt-card.card-type-top p {
    font-size: 13px;
  }

  .creditcard-list .detail-card .title,
  .creditcard-list .detail-card .detail {
    font-size: 13px;
  }

  .creditcard-list .dt-card {
    display: flex;
    flex-direction: column;
  }

  .footer-card .link-scroll {
    border-radius: 8px;
    padding: 12px 34px;
    background: #00A94F;
    color: #fff;
  }
}


@media screen and (max-width:767px) {

  .popup-function.mfp-bg,
  .popup-function .mfp-content {
    background: none !important;
  }

  html {
    margin-right: 0 !important;
  }

  /* เริ่มต้น: slide ไว้นอกจอขวา */
  .mfp-wrap.popup-gallery-only {
    transform: translateX(100%);
    transition: transform var(--tsition);
  }

  /* ตอนเปิดเสร็จ (Magnific ใส่ .mfp-ready ให้) -> slide เข้าจอ */
  .mfp-ready.mfp-wrap.popup-gallery-only {
    transform: translateX(0);
  }

  /* ตอนกำลังปิด (Magnific ใส่ .mfp-removing ให้) -> slide ออกไปขวา */
  .mfp-removing.mfp-wrap.popup-gallery-only {
    transform: translateX(100%);
  }

  /* ถ้าอยากให้ฉากหลังค่อยๆ จางด้วย */
  .mfp-bg.popup-gallery-only {
    background: transparent;
    opacity: 0;
    transition: opacity var(--tsition);

  }

  .mfp-ready.mfp-bg.popup-gallery-only {
    opacity: 1;
  }

  .mfp-removing.mfp-bg {
    opacity: 0;
  }

}


.creditcard-all {
  flex-direction: column;
  overflow-x: auto;
  /* เปิด scroll แนวนอน */
  overflow-y: hidden;
  position: relative;
  -ms-overflow-style: none;
  /* IE/Edge */
  scrollbar-width: none;
  /* Firefox */
  user-select: none;
  /* modern browsers */
  -webkit-user-select: none;
  /* Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE10+ */
}

.creditcard-all::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.creditcard-all.active {
  cursor: grab;
}

.creditcard-all .sticky-header-wrapper {
  width: 100%;
  left: 0;
  position: fixed;
  top: 0;
  padding: 0 16px;
  z-index: 100;
  display: none;
  background: #fff;
}

.creditcard-all .sticky-header-wrapper.active {
  display: flex;
  top: 20px;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
}

.creditcard-all .sticky-header-wrapper.active::before {
  content: "";
  position: absolute;
  height: 100%;
  background: #F6F6F6;
  z-index: 50;
  left: 0;
  top: 0;
  width: calc((100% - 1140px) / 2);
}

.creditcard-all .sticky-header-wrapper.active::after {
  content: "";
  position: absolute;
  height: 100%;
  background: #F6F6F6;
  z-index: 50;
  right: 0;
  top: 0;
  width: calc((100% - 1140px) / 2);
}

.creditcard-all .sticky-header-wrapper.active.fix-to-top {
  top: 0;
}

.creditcard-all .sticky-header-wrapper .sticky-header-wrapper-inner {
  display: flex;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  background: #F6F6F6;
}

.creditcard-all .sticky-header-wrapper-inner {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}


.creditcard-all .sticky-header-wrapper .sticky-header-wrapper-item {
  flex: 0 0 auto;
}

.creditcard-all .sticky-header-wrapper .sticky-header-wrapper-item:first-child {
  border-left: 1px solid #F6F6F6;
}

.creditcard-all .sticky-header-wrapper .sticky-header-wrapper-item:last-child {
  border-right: 2px solid #F6F6F6;
}

.creditcard-all .sticky-header-wrapper .sticky-header-wrapper-item:last-child .card-head {
  border-right: none;
}

.creditcard-all .sticky-header-wrapper .sticky-header-wrapper-item .dt-card {
  flex-direction: column;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  padding: 16px;
}

.creditcard-all .sticky-header-wrapper .sticky-header-wrapper-item .card-head {
  display: flex;
  width: 379px;
  height: 100%;
  align-items: center;
  border-right: 1px solid #dddddd;
}

.creditcard-all .sticky-header-wrapper .sticky-header-wrapper-item .img-card {
  max-width: 100px;
  max-height: 60px;
  border-radius: 6px;
  margin: 20px 24px;
}

.creditcard-all .sticky-header-wrapper .sticky-header-wrapper-item .card-select .inner-select {
  width: 88px;
  height: 60px;
  text-align: center;
  border: 2px dashed #BFBFBF;
  border-radius: 8px;
  margin: 35px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.creditcard-all .sticky-header-wrapper-inner .dt-card.card-select {
  background: #F6F6F6;
}

.credit-card-promo-item {
  display: none;
}

.creditcard-product {
  display: flex;
  min-height: 1040px;
  border: 1px solid #dddddd;
  /* border-top: none; */
  border-bottom: none;
  border-right: none;
  background: #ECEEEF;
}

.creditcard-product .card-type {
  width: 379px;
}

.creditcard-product .creditcard-item {
  min-height: 1000px;
  border-bottom: 1px solid #dddddd;
}

.creditcard-product .creditcard-item:first-child {
  border-left: none;
}

.creditcard-product .creditcard-item:last-child {
  border-right: 1px solid #dddddd;
}

.creditcard-product .creditcard-item:last-child .card-head {
  /* min-height: 158px; */
  align-items: center;
  justify-content: center;

}

.creditcard-product .creditcard-item:last-child .card-head .dt-card {
  height: 100%;
  border-right: none;
}

.creditcard-product .creditcard-item[data-card-name=add-credit] {
  border-top: none;
  /* border-bottom: 1px solid #dddddd; */
  border-left: none;
}

.creditcard-product .creditcard-item[data-card-name=add-credit] .card-type .dt-card .inner-select {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  height: 124px;
}

.creditcard-product .creditcard-item[data-card-name=add-credit] .card-type .dt-card .btn-button {
  align-items: center;
  justify-content: center;
  padding: 0;
  min-width: 60px;
  height: 60px;
}

.creditcard-product .creditcard-item .dt-card .btn-button {
  width: 88px;
  height: 60px;
  text-align: center;
  border: 2px dashed #BFBFBF;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.creditcard-product .creditcard-item .dt-card .btn-button .add-cards {
  border: 2px solid #E3E3E3;
  border-radius: 50%;
  display: inline;
  /* width: 40px;
  height: 40px; */
}

.creditcard-product .creditcard-item:last-child .dt-card {
  border-right: none;
}

.creditcard-product .creditcard-item[data-card-name=add-credit] .card-type .dt-card .btn-button::before {
  position: relative;
  top: 0;
}

.creditcard-product .creditcard-item[data-card-name=add-credit] .card-head {
  border-top: none;
  border-bottom: 1px solid #dddddd;
}

.creditcard-product .creditcard-item .card-select .btn-button {
  padding: 0;
  justify-content: center;
  align-items: center;
}

.creditcard-product .card-head {
  display: flex;
  flex-direction: column;
}

.creditcard-product .card-head .dt-card {
  align-items: center;
}

.creditcard-product .card-body {
  display: flex;
  width: 379px;
  flex-direction: column;
  border-top: 1px solid #dddddd;
}

/* 
.creditcard-product .card-body .detail-card {
  background: #fff;
} */


.creditcard-product .dt-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 16px;
  border-top: none;
  border-right: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
}

.creditcard-product .dt-card.footer-card {
  border-bottom: none;
}

/* .creditcard-product .dt-card.card-select {
  border-top: 1px solid #dddddd;
} */

.creditcard-product .dt-card.card-type-top {
  border-bottom: none;
  /* border-top: 1px solid #dddddd; */
}

.card-head .dt-card .title {
  font-size: 16px;
  color: #333333;
  padding-bottom: 0;
  display: block;
}

.creditcard-product .card-body .dt-card .title {
  font-size: 13px;
  padding-bottom: 8px;
  color: #000000;
  display: block;
}

.card-body .dt-card .detail {
  font-size: 13px;
  color: #666666;
  line-height: 20px;
}

.creditcard-product .card-body .dt-card ul,
.creditcard-product .card-body .dt-card ol {
  padding-left: 16px;
}

.creditcard-product .card-body .dt-card li {
  font-size: 13px;
  list-style: disc !important;
}

.creditcard-product .footer-card {
  flex-direction: row;
  /* border-bottom: none; */
}

.creditcard-container {
  position: relative;
  width: 100%;
}

.bd-top {
  position: absolute;
  top: 56px;
  left: -16px;
  right: -16px;
  height: 1px;
  /* width: 100%; */
  background: #dddddd;
  z-index: 1;
}

.bd-top.add-margin {
  top: 56px;
}

.bd-left {
  position: absolute;
  top: 56px;
  left: -16px;
  bottom: 0;
  width: 1px;
  background: #dddddd;
  z-index: 10;
}

.bd-right {
  position: absolute;
  top: 56px;
  right: -16px;
  bottom: 0;
  width: 1px;
  background: #dddddd;
  z-index: 10;
}

.bd-bottom {
  position: absolute;
  bottom: 0;
  left: -16px;
  right: -16px;
  height: 1px;
  /* width: 100%; */
  background: #dddddd;
  z-index: 1;
}

.creditcard-all {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.creditcard-all::-webkit-scrollbar {
  display: none;
}

/* custom scrollbar */
.custom-scrollbar-container {
  position: sticky;
  display: flex;
  top: 0;
  left: 0;
  height: 20px;
  width: 100%;
  z-index: 200;
  padding-top: 40px;
  /* transition: .3s ease-in-out; */
}

.custom-scrollbar-container.active {
  padding-top: 0;
}

/* .custom-scrollbar-container.active .text-scroll {
  display: none;
} */

.custom-scrollbar-container .text-scroll {
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 205;
}

.custom-scrollbar-container .text-scroll p {
  color: #333333;
}

.custom-scrollbar-container .text-scroll i {
  color: #00A94F;
  font-size: 24px;
  padding-right: 8px;
}

.custom-scrollbar-container.active {
  background: #eceeef;
}

.custom-scrollbar-container.active .custom-scrollbar {
  top: 8px;
}

.custom-scrollbar-container .custom-scrollbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 1140px;
  height: 3px;
  pointer-events: auto;
  margin: 0 auto;
  z-index: 50;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

.custom-scrollbar-container .custom-scrollbar .thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #00a94f;
  cursor: grab;
  transition: background 0.2s;
}

.custom-scrollbar-container .custom-scrollbar .thumb:active {
  cursor: grabbing;
  background: rgba(0, 0, 0, 0.4);
}

.custom-scrollbar-container.active {
  position: fixed;
}

.creditcard-all {
  flex: 0 0 auto;
}


.creditcard-all .card-head {
  position: relative;
}

.creditcard-all .btn-close-compare {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border-radius: 50%;
  border: 1px solid #dddddd;
  color: #ff0000;
  z-index: 10;
}

@media only screen and (max-width: 1024px) {
  .creditcard-all {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }
}

@media (min-width:992px) and (max-width: 1139px) {
  .creditcard-all .sticky-header-wrapper .sticky-header-wrapper-inner {
    max-width: 977px;
  }
}

@media only screen and (min-width:769px) {
  .product-select .btn-button {
    display: flex;
    align-items: flex-start;
    height: 72px;
  }
}

@media (min-width:769px) and (max-width: 991px) {
  .creditcard-all .sticky-header-wrapper .sticky-header-wrapper-inner {
    max-width: 773px;
  }
}

@media screen and (min-width:768px) {
  .creditcard-container {
    overflow: hidden auto;
  }

  .bd-top {
    top: 0;
    left: 0;
    right: 0;
  }

  .bd-left {
    top: 0;
    left: 0;
  }

  .bd-left.add-margin {
    top: 56px;
  }

  .bd-right {
    top: 0;
    right: 0;
  }

  .bd-right.add-margin {
    top: 56px;
  }


  .bd-bottom {
    bottom: 0;
    left: 0;
    right: 0;
  }
}

@media (width:768px) {
  .creditcard-all .sticky-header-wrapper .sticky-header-wrapper-inner {
    max-width: 736px;
  }
}

@media screen and (max-width:767px) {
  .sticky-header-wrapper {
    padding: 0;
  }

  .creditcard-all .sticky-header-wrapper .sticky-header-wrapper-item .card-head,
  .creditcard-product .card-head .dt-card,
  .creditcard-product .dt-card,
  .creditcard-product .card-type {
    width: 180px;
  }

  .creditcard-all .sticky-header-wrapper .sticky-header-wrapper-item .img-card {
    max-width: 60px;
    max-height: 36px;
    border-radius: 4px;
    margin: 12px 14px;
  }

  .creditcard-all .btn-close-compare {
    right: 8px;
    top: 8px;
    width: 24px;
    height: 24px;
  }

  .creditcard-product .card-body {
    width: auto;
  }

  .dt-card.card-type-top .title {
    font-size: 13px;
    text-align: center;
    color: #333;
    height: 50px;
  }

  .creditcard-product .dt-card.card-type-top {
    padding: 8px 24px 16px;
  }

  .creditcard-product .dt-card {
    padding: 16px 8px;
  }

  .creditcard-product .footer-card {
    flex-direction: column;
  }

  .creditcard-product .creditcard-item[data-card-name=add-credit] .card-type .dt-card .inner-select {
    height: 60px;
  }

  .creditcard-all .sticky-header-wrapper {
    padding: 0;
  }

  .creditcard-all .sticky-header-wrapper .sticky-header-wrapper-item .card-head {
    height: 122px;
  }

  .creditcard-product .creditcard-item:last-child .card-head {
    min-height: 122px;
  }

}

.ic-close {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
}

.ic-close:before {
  background: url(https://www.kasikornbank.com/SiteCollectionDocuments/kcc/compare/img/icons/ic-close-red.svg) center center no-repeat;
  width: 13px;
  height: 13px;
}

.popup-creditcard .card-list {
  display: flex;
  min-height: 195px;
  max-height: max-content;
  overflow: hidden auto;
  justify-content: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
  grid-template-columns: none;
}

.popup-creditcard .card-list .card-item {
  display: flex;
  width: calc((100% - 48px) / 4);
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #fdfefd 60%, #ebf8f1 86%);
}

/*# sourceMappingURL=cards.css.map */


/* ====== sc-banner ====== */
.sc-banner {
  background: #f4f5f5;
}

.sc-banner .sc-inner {
  padding: 48px 0 !important;
}

.sc-banner .item {
  width: 100%;
  min-height: 120px;
  overflow: hidden;
}

/* .sc-banner .item:nth-child(1) {
  margin-bottom: 16px;
} */

.sc-banner .wrapper {
  border-radius: 8px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  background: #fff;
  position: relative;
  height: 100%;
  padding-right: 35%;
}

.sc-banner .content {
  flex-basis: 0;
  -webkit-box-flex: 1;
  flex-grow: 1;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 16px;
}

.sc-banner .content .info {
  position: relative;
}

.sc-banner .content .title {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.sc-banner .content .action {
  position: relative;
  margin-top: 16px;
}

.sc-banner .content .action .link {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  color: #00A94F;
}

.sc-banner .thumb {
  -webkit-box-flex: 0;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  /* position: relative; */
}

.sc-banner .thumb>img {
  max-width: unset;
  position: absolute;
  right: 0;
  bottom: 16px;

  /* bottom: 0;
    top: 0; */
  margin: auto;
  max-height: 61px;
}

@media screen and (max-width: 360px) {
  .sc-banner .item {
    height: auto;
  }

  .sc-banner .wrapper {
    padding-right: 16px;
  }

  .sc-banner .content .action {
    width: 70%;
  }
}

@media screen and (min-width: 360px) {
  .sc-banner .thumb>img {
    max-height: 76px;
  }
}

@media screen and (min-width: 768px) {
  .sc-banner .item-list {
    display: flex;
    gap: 16px;
  }

  .sc-banner .thumb>img {
    max-height: 78px;
  }

  .sc-banner .item {
    height: 140px;
  }

  .sc-banner .thumb>img {
    right: 0;
    bottom: 11px;
    top: auto;

  }

  .sc-banner .content .desc {
    width: 100%;
  }

  .sc-banner .item {
    width: calc(100% / 2);
  }

  .sc-banner .item:nth-child(1) {
    margin-bottom: 0;
  }

  .sc-banner .wrapper {
    padding-right: 16px;
  }
}

@media screen and (min-width: 992px) {

  .sc-banner .thumb>img {
    max-height: 100px;
  }

  .sc-banner .content .desc {
    height: 3em;
    -webkit-line-clamp: 2;
  }

  .sc-banner .content .action {
    padding-top: 0;
  }
}

@media screen and (min-width: 1200px) {
  .sc-banner .content .action a.link:hover:before {
    width: 100%;
  }
}

/* ====== end sc-banner ====== */


/* custom */
.sc-banner .thumb>img {
  bottom: 35px;
}

.sc-banner .wrapper {
  padding-right: 10%;
}

.sc-banner .content {
  padding-right: 0;
}

@media screen and (min-width: 768px) {
  .sc-banner .item {
    width: 562px;
    height: 144px;
  }

  .sc-banner .wrapper {
    padding-right: 35%;
  }

  .sc-banner .thumb>img {
    bottom: 24px;
  }

  .sc-banner .item-list {
    justify-content: center;
  }

  .sc-banner .content .title span {
    white-space: normal;
    display: inline;
  }
}

@media only screen and (max-width: 1139px) {
  .creditcard-all .sticky-header-wrapper .sticky-header-wrapper-inner {
    margin: 0;
  }
}

@media screen and (max-width: 767px) {
  .sc-banner .thumb>img {
    bottom: 16px;
    right: 16px;
  }

  .hide-mobile {
    display: none;
  }

  .sc-banner .sc-inner {
    padding: 40px 0 !important;
  }
}

/* ============== popup ================= */
.popup-creditcard .inner-popup {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  background: #ECEEEF !important;
  border-radius: 8px;
}


.popup-creditcard .head-popup .head-title {
  font-size: 26px;
}

.popup-creditcard .card-list {
  display: grid;
  gap: 8px;
  /* ค่าเริ่มต้น (mobile) */
  grid-template-columns: repeat(3, calc((100% - (8px * 2)) / 3));

}

.popup-creditcard .card-item {
  position: relative;
  /* width: 104px;
      height: 104px; */
  display: block;
  /* aspect-ratio: 1/1; */
  /* ให้เป็นสี่เหลี่ยมจัตุรัส */
  background: #e0e0e0;
  border-radius: 8px;
}

/* .popup-creditcard .card-box .title {
  display: inline-block;
} */

.popup-creditcard .card-box .title span {
  display: contents;
}

.popup-creditcard .card-box .img-card {
  border-radius: 10px;
  margin: 8px 0;
  width: 50px;
  height: 32px;
}

.popup-creditcard .card-box .img-card img {
  border-radius: 2.5px;
  height: 100%;
}

.popup-creditcard .card-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  padding: 2px 8px 8px 8px;
  border: 2px solid transparent;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  transition: .2sease;
  /* background: linear-gradient(135deg, #ffffff 0%, #fdfefd 60%, #ebf8f1 86%); */
  position: relative;
  height: 100%;
}


.popup-creditcard .card-box p {
  margin: 4px 0 0;
  font-weight: 600;
  font-size: 10px;
  line-height: 1.35;
  height: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  color: #333 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  /* height: calc(1.4em * 2); */
}

.popup-creditcard .card-select {
  display: none;
}

.popup-creditcard .card-box.is-selected {
  border-color: #00a94f;
  /* box-shadow: 0 0 0 3px #00a94f33; */
}

.popup-creditcard .card-box.is-selected .title {
  color: #006530 !important;
}

.popup-creditcard .card-box::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border: 0.67px solid #DDDDDD;
  border-radius: 3px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  transition: all 0.25s ease;
}

.popup-creditcard .card-box.is-selected::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border: 0.67px solid #00a94f;
  background-color: #00a94f;
  border: none;
  border-radius: 3px;
  background-image: url('https://www.kasikornbank.com/SiteCollectionDocuments/kcc/compare/img/icons/ic-check-white.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  transition: all 0.25s ease;
}

.popup-creditcard .card-box[data-seq]::after {
  content: attr(data-seq);
  position: absolute;
  top: 8px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #00a94f;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}


.popup-creditcard .card-box[data-seq]::after {
  content: attr(data-seq);
  position: absolute;
  top: 8px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #00a94f;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}

.popup-creditcard .compare-actions {
  margin-top: 16px
}

.popup-creditcard .btn-compare[disabled] {
  opacity: .45;
  cursor: not-allowed
}

.mfp-close-btn-in .mfp-close {
  width: 40px !important;
  height: 40px !important;
  top: -22px !important;
  right: -20px !important;
  color: transparent !important;
}


@media (min-width: 768px) {
  .popup-creditcard .card-list {
    gap: 16px;
    grid-template-columns: repeat(4, calc((100% - (16px * 3)) / 4));
  }

  .popup-creditcard .head-popup {
    padding-top: 0;
    padding-bottom: 32px;
  }

  .popup-creditcard .card-box p {
    margin: 4px 0 0;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
  }

  .popup-creditcard .title {
    font-size: 16px;
    line-height: 1.4;
  }

  .popup-function-content {
    max-width: 1000px !important;
    margin: 0;
  }

  .popup-creditcard .card-box::after {
    top: 8px;
    right: 8px;
    background-size: 68%;
  }

  .popup-creditcard .card-box.is-selected::after {
    top: 8px;
    right: 8px;
    background-size: 68%;
  }

  .popup-creditcard .card-list .card-item {
    display: flex;
    width: 100%;
    margin: 0;
  }

  .popup-creditcard .card-box {
    width: 100%;
    min-height: 104px;
  }

  .popup-creditcard .inner-popup {
    overflow: hidden;
    overflow-y: auto;
    /* height: 80vh; */
  }
}

@media (min-width: 992px) {
  .popup-creditcard .card-item {
    position: relative;
    display: block;
    /* aspect-ratio: 1 / 1; */
    background: #fff;
    border-radius: 8px;
    width: 214px;
    margin: 0 auto;
    /* height: 104px; */
    height: auto;
  }

  .popup-creditcard .card-box {
    padding: 2px 16px 6px 16px;
  }

  .popup-creditcard .card-box p {
    /* padding: 0; */
    /* width: 182px; */
    margin: 4px auto 0;
  }
}

.popup-creditcard .btn-clear {
  font-weight: 600;
  color: #00A94F;
  width: auto;
  text-decoration: underline;
  transition: .3sease -in-out;
  text-align: center;
}

.popup-creditcard .compare-actions {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 !important;
}

.popup-creditcard .btn-submit {
  width: 224px;
  height: 40px;
  line-height: 48px;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  padding: 0;
  font-weight: 600;
  background: #00a94f;
  transition: .3sease -in-out;
}

.popup-creditcard .btn-submit:hover {
  background: #0BC160;
  color: #fff;
}

.popup-creditcard .btn-compare[disabled] {
  opacity: .45;
  cursor: not-allowed
}


.popup-creditcard .card-select {
  display: none;
}

.underline {
  margin: 16px 0;
  border-top: 1px solid #DDDDDD;
  width: 100%;
  height: 2px;
}



.mfp-close-btn-in .mfp-close:before,
.mfp-close-btn-in .mfp-close:after {
  width: 22px !important;
}

.mfp-close-btn-in .mfp-close:active {
  top: -22px !important;
}

@media screen and (min-width:768px) {
  .popup-creditcard .inner-popup {
    padding: 48px;
  }

  .popup-creditcard .btn-clear {
    width: 205px;
  }

  .popup-creditcard .btn-submit {
    width: 205px;
  }

  .popup-creditcard .compare-actions {
    gap: 16px;
    justify-content: center;
  }

  .underline {
    margin: 32px 0;
  }
}

@media screen and (max-width:767px) {
  .popup-creditcard .head-popup {
    padding-top: 0;
    padding-bottom: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .popup-creditcard .head-popup .head-title {
    font-size: 18px;
    text-align: center;
  }

  .mfp-close-btn-in .mfp-close {
    width: 40px !important;
    height: 40px !important;
    top: 16px !important;
    right: unset;
    left: 16px;
  }

  .popup-creditcard .card-list .card-item {
    width: 100% !important;
  }

  .mfp-content {
    max-width: 100%;
  }

  .popup-creditcard .card-box {
    width: 100% !important;
    height: 104px;
  }

  .popup-creditcard .compare-actions {
    justify-content: space-around;
  }

  .popup-note.mfp-wrap.mfp-ready .mfp-container {
    background: transparent !important;
  }

  .main-creditcard .mfp-content .mfp-close:before {
    background: url("https://kbank-uat.kasikornbank.com/SiteCollectionDocuments/kcc/compare/img/ic-arrow-white.svg") center center;
    background-size: 100% auto;
    height: 19px;
    width: 11px !important;
    background-position: center;
    transform: rotate(0);
    transition: none;
  }

  .main-creditcard .mfp-content .mfp-close:after {
    display: none;
  }
}

.popup-creditcard .card-box.is-selected {
  border-color: #00a94f;
  /* box-shadow: 0 0 0 3px #00a94f33; */
}


.ic-nvg.ic-other:before {
  content: "\e973" !important;
}

.popup-creditcard .sc-inner {
  padding: 48px 0;
}

.popup-creditcard .inner-popup {
  background: #ECEEEF;
}

.popup-creditcard .tab-control {
  position: relative;
  /* height: 36px; */
  margin-bottom: 0px;
}

.popup-creditcard .tab-control .tab-new.active::before {
  content: "";
  position: absolute;
  height: 1px;
  left: 0;
  bottom: -1px;
  right: 0;
  background-color: #DBDBDB;
  border-radius: 50px;
  z-index: 4;
}

.popup-creditcard .tab-new {
  position: relative;
  z-index: 3;
}

.popup-creditcard .tab-new .control {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.popup-creditcard .tab-new .control li {
  display: inline-flex;
  padding-left: 2px;
}

.popup-creditcard .tab-new .control a {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  padding: 8px 24px 8px 24px;
  width: auto;
  white-space: nowrap;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #999999 !important;
  height: 40px;
}

.popup-creditcard .tab-new .control a .txt {
  display: flex;
  font-weight: 600;
  font-size: 16px;
  color: #333333;
  transition: var(--tsition);
  line-height: 1;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.popup-creditcard .tab-new .control a.active .txt {
  color: #00A94F;
  font-weight: 600;

}

.popup-creditcard .tab-new .selector {
  height: 3px;
  background-color: var(--cr-green);
  position: absolute;
  display: none;
  left: 0;
  bottom: 0;
  z-index: 0;
  border-radius: var(--radius);
  -webkit-transition-duration: .5s;
  -o-transition-duration: .5s;
  transition-duration: .5s;
  -webkit-transition-timing-function: cubic-bezier(.42, 0, .58, 1);
  -o-transition-timing-function: cubic-bezier(.42, 0, .58, 1);
  transition-timing-function: cubic-bezier(.42, 0, .58, 1);
}

.popup-creditcard .tab-new.active {
  overflow-x: auto;
  overflow: visible;
  max-height: 65px;
}

.popup-creditcard .tab-new.active .control {
  display: block;
  flex-wrap: inherit;
  /* width: 100dvw; */
  margin-left: -16px;
  margin-right: -40px;
  position: relative;
  z-index: 1;
  top: 65px;
  padding: 16px 11px;
  background-color: #ECEEEF;
  box-shadow: 0 10px 7px -5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: unset;
}


.popup-creditcard .tab-new.active .control a {
  display: inline-flex;
  height: auto;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background-color: var(--cr-light);
  margin: 4px;
  color: #666;
  height: 40px !important;
}

.popup-creditcard .tab-new.active .control a.active {
  border-color: var(--cr-green);
  color: var(--cr-light);
  background: var(--cr-green);
}

.popup-creditcard .tab-new.active .control a.active .txt,
.popup-creditcard .tab-new.active .control a.active .txt i {
  color: var(--cr-light);
}

.popup-creditcard .tab-new.active .control a .txt {
  color: var(--cr-dark);
  margin-bottom: 0;
  flex-direction: row;
}

.popup-creditcard .tab-new.active .control a:hover .txt {
  color: var(--cr-green);
}

.popup-creditcard .tab-new.active .control a:hover {
  border: 1px solid var(--cr-green);
  color: var(--cr-green);
  background-color: #EAFCF1;
}

.popup-creditcard .tab-content {
  position: relative;
  opacity: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  display: block;
  transition: var(--tsition);
}

.popup-creditcard .tab-content.active {
  opacity: 1;
  height: auto;
  overflow: visible;
  visibility: visible;
}

.popup-creditcard .action-dropdown {
  display: flex;
  position: absolute;
  z-index: 4;
  top: 2px;
  right: 0;
  width: 25px;
  height: 65%;
  border-left: 1px solid #DBDBDB;
  align-items: center;
  justify-content: flex-end;
  top: 50%;
  right: -14px;
  transform: translate(-50%, -50%)
}

.popup-creditcard .action-dropdown .link {
  display: block;
  position: relative;
  width: 16px;
  height: 12px;
}

.popup-creditcard .action-dropdown .link:before,
.popup-creditcard .action-dropdown .link:after {
  position: absolute;
  content: "";
  display: inline-block;
  width: 12px;
  height: 2px;
  background-color: var(--cr-green);
  transition: var(--tsition);
}

.popup-creditcard .action-dropdown .link:before {
  position: absolute;
  transform: rotate(45deg);
  top: 5px;
  left: 0.5px;
  width: 8px;
  height: 2px;
}

/* .popup-creditcard .action-dropdown .link:before {

  top: 5px;
  left: 5px;
} */

.popup-creditcard .action-dropdown .link:before,
.popup-creditcard .action-dropdown .link:after {
  width: 8px;
  height: 2px;
}

.popup-creditcard .action-dropdown .link:after {
  position: absolute;
  transform: rotate(-45deg);
  top: 5px;
  left: 5px;
}

.popup-creditcard .action-dropdown .link.active:before {
  transform: rotate(-45deg);
}

.popup-creditcard .action-dropdown .link.active:after {
  transform: rotate(45deg);
}

.popup-creditcard .tab-dropdown {
  position: absolute;
  z-index: 2;
  top: 0px;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  /* transition: var(--tsition); */
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.popup-creditcard .tab-dropdown.active {
  opacity: 1;
  visibility: visible;
  /* height: 40px; */
}

.popup-creditcard .tab-dropdown .txt {
  font-weight: 600;
  font-size: 16px;
  color: var(--cr-gray);
  line-height: 24px;
}


.popup-creditcard .tab-control:before {
  display: none;
  background-color: transparent;
  /* display: block;
   bottom: 0; */
  /* top: 36px; */
}

.popup-creditcard .tab-control:after {
  /* content: '';
  position: absolute;
  z-index: 3;
  top: 0;
  right: 24px;
  bottom: 0;
  width: 70px;
  pointer-events: none; */
  /* background: linear-gradient(90deg, rgba(244, 244, 244, 0.00) 0%, #ECEEEF 90%); */
  /* mix-blend-mode: luminosity; */
  display: none;
}

.popup-creditcard .tab-new {
  overflow: auto;
  margin-right: 32px;
}

.popup-creditcard .tab-new .control:after {
  content: '';
  width: 1px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  max-width: none;
}

/* .popup-creditcard .tab-new.active {
   overflow: visible;
 } */

.popup-creditcard .tab-control.active:after {
  display: none;
}

.popup-creditcard .tab-new .control a.active {
  border-bottom-color: #00A94F;
  pointer-events: none;
  background: rgb(236 248 242);
  color: #00A94F;
  border: 1px solid #00a94f !important;
}

.popup-creditcard .tab-new .control a.active .ic-nvg {
  color: #00A94F;
}

.popup-creditcard .tab-new .control a .ic-nvg {
  font-size: 16px;
}

.popup-creditcard .tab-control {
  /* margin: 0 0 24px; */
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}





.popup-creditcard .jus-center {
  justify-content: center !important;
}

.card-wrapper.active .card-thumb .swiper-wrapper .swiper-slide:last-child {
  margin-right: 0 !important;
}

.popup-creditcard .card-thumb .swiper-slide {
  opacity: .3;
}

.popup-creditcard .card-thumb .swiper-slide.swiper-slide-thumb-active {
  opacity: 1;
}

@media screen and (min-width:992px) {
  .popup-creditcard .tab-control.clear-spec {
    margin-right: 0;
  }

  .popup-creditcard .tab-control.clear-spec .action-dropdown,
  .popup-creditcard .tab-control.clear-spec .tab-dropdown {
    display: none;
  }

  .popup-creditcard .tab-control.clear-spec .tab-new .control:after {
    display: none;
  }
}

/* @media (min-width: 1200px) and (max-width: 1300px) {
  .popup-creditcard .inner-popup {
    height: 90vh;
  }
} */
@media (min-width: 768px) and (max-width: 1199px) {
  .popup-creditcard .inner-popup {
    height: 90vh;
  }

  .popup-function-content {
    margin-top: 0;
  }

}

@media screen and (min-width:768px) and (max-width:991px) {
  .popup-creditcard .tab-control.clear-spec .tab-new {
    margin-right: 32px !important;
  }

  .popup-creditcard .tab-control {
    align-items: center;
  }

  .popup-creditcard .tab-control {
    justify-content: flex-start;
  }

  .popup-creditcard .tab-control.clear-spec .tab-new {
    width: 100%;
  }
}

@media screen and (min-width:768px) {
  .popup-creditcard .sc-inner {
    padding: 64px 0;
  }

  .mfp-wrap.mfp-ready .mfp-content {
    max-width: 100%;
    min-height: 100vh;
    background: transparent;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .popup-creditcard .tab-control {
    /* height: 40px; */
    height: auto;
    align-items: flex-start;
  }

  .popup-creditcard .tab-new.active {
    max-height: 40px;
  }

  .popup-creditcard .tab-new.active .control {
    top: 40px;
  }
}

.popup-creditcard .tab-new::-webkit-scrollbar {
  display: none;
}

.popup-creditcard .tab-new .control a .ic-nvg {
  color: #aaa;
}

.popup-creditcard .tab-new .control a {
  background: #fff;
}



@media screen and (max-width:767px) {

  /* .mfp-wrap.mfp-ready .mfp-content {
    min-height: 100vh;
  } */
  .popup-creditcard .tab-dropdown .txt {
    font-size: 13px;
  }

  .popup-creditcard .tab-control {
    /* margin: 16px 0 4px 0; */
    height: 56px;
  }

  .popup-creditcard .inner-popup {
    /* min-height: 100vh; */
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .popup-creditcard .sc-content {
    height: calc(100% - 65px);
  }

  .popup-creditcard .tab-new .control a .txt {
    font-size: 13px;
  }

  .popup-creditcard .tab-new .control a .ic-nvg {
    font-size: 16px;
  }

  .popup-creditcard .tab-new .control a .ic-nvg {
    font-size: 16px;
    /* margin-top: -4px; */
  }

  .popup-creditcard .tab-new .control a {
    height: 40px !important;
  }

  .popup-creditcard .tab-control {
    /* height: 56px; */
    height: auto;
    /* margin: 0 0 8px 0; */
  }

  .popup-creditcard .tab-dropdown {
    top: 6px;
  }

  .popup-creditcard .tab-new.active {
    max-height: 40px;
  }

  .popup-creditcard .tab-new.active .control {
    top: 40px;
  }

  /* .popup-creditcard .tab-control .action-dropdown,
  .popup-creditcard .tab-control .tab-dropdown {
    display: none;
  }

  .popup-creditcard .action-dropdown {
    display: none;
  } */
}

@media screen and (max-width: 345px) {
  .popup-creditcard .compare-actions {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px !important;
  }

  .popup-creditcard .btn-submit {
    width: 100%;
  }

}

.trigger-header {
  display: flex;
  width: 100%;
  height: 1px;
  /* background: red; */
}

/* ====== end tab-new-style ====== */

ul.control {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

ul.control.dragging {
  cursor: grabbing;
}

/* กัน child ดึง gesture แทนการลาก */
ul.control a,
ul.control * {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-x;
}

ul.control::-webkit-scrollbar {
  display: none;
}

/* ============== end popup ================= */

.dt-card.detail-card,
.dt-card.footer-card {
  background: #fff;
}

.dt-card.card-select {
  background: #ECEEEF;
  border-bottom: none;
}

.creditcard-product .creditcard-item[data-card-name=add-credit] {
  background: #ECEEEF;
}

.icw {
  background: #ECEEEF;
}


/* ============== shortcut =============== */
.sc-shortcut {
  background: #FFFFFF;
}

.service .image {
  width: auto;
}

.service .caption {
  padding: 0px;
}

.service .image .ic {
  font-size: 20px;
  color: rgb(255, 255, 255);
  display: block;
  width: 70px;
  height: 70px;
  line-height: 70px;
  text-align: center;
  background: linear-gradient(90deg, rgb(0, 168, 80) 0%, rgb(97, 214, 153) 100%);
  border-radius: 50%;
  width: auto;
  height: auto;
  line-height: initial;
  background: transparent;
}

.service .image .ic::before {
  color: #00A94F;
  font-size: 32px;
}

.service-container .desc {
  font-weight: 600 !important;
}

@media screen and (min-width: 768px) {
  .sc-shortcut .sc-inner {
    padding: 43px 0;
  }

  .service-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }

  .service-container .item {
    width: 175px;
    height: 120px;
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 8px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(237, 237, 237);
    border-image: initial;
    background: rgb(255, 255, 255);
    padding: 16px;
    gap: 8px;
    transition: .3s ease-in-out;
  }

  .service .caption .desc {
    color: rgb(51, 51, 51);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
  }

  .item.service:hover {
    transform: scale(1.1);

  }
}

@media screen and (max-width:767px) {
  .service-container a {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #E7E7E7
  }

  .service-container a:first-child {
    padding-top: 0;
  }

  .sc-shortcut .sc-inner {
    padding: 40px 0;
  }

  .service .image .ic::before {
    font-size: 19px;
  }
}

/* ============== end shortcut =============== */



/* d-none section */
#related-card {
  display: none;
}

#back-to-main {
  display: none;
}

.sc-bottom-bars {
  display: none;
}

#navigation-header {
  position: fixed !important;
}

.custom-scrollbar-wrapper.active {
  z-index: 999999 !important;
}

@media screen and (min-width:1140px) {
  .sc-product-detail {
    padding-top: 120px !important;
    position: relative;
    display: block;
  }

  .popup-function-content {
    /* margin-top: 60px; */
    margin-top: 0;
  }
}

@media screen and (max-width:1139px) {
  .sc-product-detail {
    padding-top: 0 !important;
  }

  .custom-scrollbar-container.active {
    top: 0;
    height: 0;
    background: #ECEEEF;
    padding: 8px 0;
  }

  .creditcard-all .sticky-header-wrapper.active {
    top: 16px;
    background: #F6F6F6;
  }

  /* .creditcard-all .sticky-header-wrapper.active.fix-to-top {
    top: 0;
  } */

  .header-top.active.fix-to-top .header-mobile.visible-mobile {
    display: none !important;
  }

  .creditcard-all .sticky-header-wrapper {
    z-index: 9999999 !important;
  }

  #navigation-header,
  .header {
    position: sticky !important;
  }

  .popup-function.mfp-wrap,
  .mfp-wrap,
  .popup-function.mfp-bg.mfp-ready {
    z-index: 999999999;
  }
}

@media screen and (max-width:767px) {
  .mfp-close-btn-in .mfp-close:hover::before {
    background: url(https://kbank-uat.kasikornbank.com/SiteCollectionDocuments/kcc/compare/img/ic-arrow-white.svg) center center / 100%;
  }

  .mfp-close-btn-in .mfp-close:active {
    top: 19px !important;
  }

  .popup-creditcard {
    height: calc(var(--vh, 1vh) * 100);
    overflow-y: auto;
    margin: 0;
  }

  /* .popup-function-content {
    position: fixed;
    inset: 0;
} */
}

.mfp-wrap.popup-note,
.popup-note.mfp-bg.mfp-ready {
  z-index: 9999999999;
}

.custom-scrollbar-wrapper {
  display: flex;
  width: 100%;
  position: sticky;
  left: 0;
  top: 0;
  z-index: 200;
  height: 40px;
}





.popup-creditcard .inner-popup {
  display: flex;
  flex-direction: column;
}

.popup-creditcard .inner-popup .sc-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.popup-creditcard .inner-popup .sc-content .tab-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tab-flex {
  flex: 1;
}

.sc-layout .action .btn {
  border-radius: 40px;
}

.creditcard-all .sticky-header-wrapper.active {
  box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
  will-change: transform;
  /* ช่วยให้ Safari render shadow */
}

.popup-creditcard .btn-submit:disabled:hover {
  border-color: #e1e1e1;
  background: #fdfdfd;
  color: #b1b1b1 !important;
}

.popup-creditcard .btn-clear:disabled {
  border-color: transparent;
  background: transparent;
  color: #b1b1b1 !important;
}

/* .creditcard-all .sticky-header-wrapper.active.fix-to-top::first-letter {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 8px;
  pointer-events: none;

  box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
} */


/* @media screen and (min-width:768px) {
  .popup-creditcard .card-list {
    max-height: calc((var(--vh, 1vh)* 100) - 486px);
  }
} */

@media screen and (max-width:767px) {
  .popup-creditcard .card-list {
    max-height: calc((var(--vh, 1vh) * 100) - 375px);
  }
}

@media screen and (max-width: 450px) {
  .tab-flex {
    flex: auto;
  }

  .popup-creditcard .card-list {
    max-height: calc((var(--vh, 1vh)* 100) - 325px);
  }

}

@media screen and (max-width: 345px) {

  /* .popup-creditcard .card-list {
    height: calc(100vh - 288px);
  } */
  .popup-creditcard .card-list {
    max-height: calc((var(--vh, 1vh)* 100) - 390px);
  }

  .popup-creditcard .head-popup .head-title {
    padding-left: 20px;
  }
}


@media screen and (max-width: 1139px) {
  .creditcard-all .sticky-header-wrapper.active {
    box-shadow: 0 3px 8px 3px rgba(0, 0, 0, 0.1);
  }
}

@media screen and (min-width:1600px) {
  .popup-creditcard .inner-popup {
    height: auto;
  }
}

@media (min-width: 768px) and (max-width:1199px) {
  .popup-creditcard .inner-popup {
    overflow: hidden;
    overflow-y: auto;
  }

  .popup-creditcard .card-list {
    /* overflow: hidden; */
    height: auto;
  }

  .popup-creditcard .card-list {
    max-height: 100%;
  }
}

@media only screen and (max-width:767px) {
  .popup-creditcard .card-list {
    overflow: hidden;
    overflow-y: auto;
    /* height: calc(100vh - 239px); */
  }

  .mfp-wrap.mfp-ready .mfp-container {
    background: #ECEEEF !important;
  }

  .popup-creditcard {
    overflow: hidden;
  }

  .show-creditcard-popup .mfp-ready.mfp-bg.popup-gallery-only {
    background: #eceeef;
  }

}

.show-creditcard-popup>.mfp-bg {
  opacity: 0.8 !important;
}

.open-popup {
  overflow: hidden;
}

.sc-breadcrumb {
  background: #ebedee !important;
  padding-top: 90px !important;
  position: relative;
  display: block;
}

#page {
  margin-bottom: 0 !important;
  background-color: #ebedee !important;
}

.has-bar3 #navigation-footer {
  padding-bottom: 46px;
}

@media screen and (max-width: 1199px) {
  .sc-breadcrumb {
    padding-top: 24px !important;
  }
}

input[type='button'][disabled],
input[type='reset'][disabled],
input[type='submit'][disabled],
button[disabled][disabled] {
  border-color: #e1e1e1;
  background-color: #fdfdfd;
  background-color: #fdfdfd;
  color: #b1b1b1;
}

/* New Style */
.creditcard-all .sticky-header-wrapper {
  background: #f6f6f6;
}

@media only screen and (min-width: 1200px) {
  .creditcard-product {
    margin: 0 auto;
    max-width: 100%;
    width: auto;
  }

  .creditcard-product {
    border-top: none;
  }

  .creditcard-product.max-content {
    max-width: 1140px;
    width: 100%;
    border-top: 1px solid #dddddd;
    border-right: 1px solid #dddddd;
  }

  .creditcard-product.max-content .dt-card.card-type-top {
    border-top: none;
  }

  .creditcard-product.max-content .creditcard-item:last-child .card-head .dt-card {
    border-top: none;
  }

  .creditcard-all .sticky-header-wrapper.active::before,
  .creditcard-all .sticky-header-wrapper.active::after {
    display: none;
  }

  .creditcard-product .creditcard-item:last-child .card-head .dt-card {
    border-top: 1px solid #dddddd;
  }

  .creditcard-product .dt-card.card-type-top {
    border-top: 1px solid #dddddd;
  }

  .creditcard-all .sticky-header-wrapper {
    padding: 0;
  }

  .creditcard-all .sticky-header-wrapper .sticky-header-wrapper-inner {
    max-width: max-content;
  }

  .creditcard-all .sticky-header-wrapper .sticky-header-wrapper-inner.max-content {
    max-width: 1140px;
  }

  .custom-scrollbar-container .custom-scrollbar {
    margin: 0;
    max-width: 100%;
  }
}

/* .creditcard-all .sticky-header-wrapper .sticky-header-wrapper-inner {
      max-width: 100%;
} */
.creditcard-all .sticky-header-wrapper {
  padding: 0;
}

@media screen and (max-width:767px) {
  .creditcard-container {
    padding: 0 16px;
  }
}




/* new */


/*########################### section howto use kplus ###################################*/
.section-howto-kplus {
  margin-top: 24px !important;
}

.section-howto-kplus .title-tab-step {
  background-color: #ECF4F3;
}

.section-howto-kplus .title {
  text-align: center;
  padding-bottom: 0;
}

.section-howto-kplus .title-slide {
  text-align: center;
  margin-bottom: 24px;
}

.section-howto-kplus .swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  /* bottom: -32px;
    left: 0;
    width: 100%; */
}

.tab-default-wrapper {
  display: flex;
  justify-content: center;
  gap: 32px;
  justify-content: center;
  border-bottom: 1px solid #dbdbdb;
  margin-bottom: 24px;
}

.tab-default-wrapper .tab {
  font-size: 16px;
  color: #999;
  font-weight: 600;
  margin: 0;
  padding-bottom: 8px;
  cursor: pointer;
}

.tab-default-wrapper .tab:hover {
  color: #333;
}

.tab-default-wrapper .tab.active {
  color: #333;
}

.tab-default-wrapper .tab.active:after {
  opacity: 1;
  width: 100%;
}

.tab-default-wrapper .tab:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: #00A94F;
  transition: .3s ease-in-out;
  opacity: 0;
}

.tab-category {
  /* position: relative;
    padding: 0 108px;
    margin: 0 16px 40px;
    display: none; */
  transition: all 0.3s ease-in-out;
  /* padding: 0 124px; */
  border-radius: 8px;
  position: relative;
  opacity: 0;
  height: 0;
  /* overflow: hidden !important; */
  visibility: hidden;
  display: block;
  width: 100%;
  position: relative;
  z-index: 3;
}

.tab-category .title-tab-step {
  overflow: hidden;
  border-radius: 8px;
}

.tab-category.active {
  /* display: block;
    opacity: 1;
    visibility: visible; */
  opacity: 1;
  height: auto;
  overflow: visible;
  visibility: visible;
}

.howto-kplus-swiper {
  overflow: hidden;
  position: static;
}

.content-box {
  text-align: center;
  margin-top: 16px;
}

.content-box .step {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111 !important;
}

.content-box p {
  color: #333;
}

.popup-creditcard .selector-all {
  display: flex;
  justify-content: flex-end;
}

.popup-creditcard .selector-all #select-all {
  width: auto !important;
}

.popup-creditcard .card-box.select-card-all {
  height: auto;
  width: auto !important;
  align-items: flex-end;
  min-height: auto;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 16px;
  margin-top: 24px;
}

.popup-creditcard .card-box.select-card-all p {
  width: auto;
  color: #00A94F !important;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.8;
  text-decoration: underline;
  margin: 0;
}

.popup-creditcard .card-box.select-card-all::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 91px;
  width: 16px;
  height: 16px;
  border: 0.67px solid #DDDDDD;
  border-radius: 3px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  transition: all 0.25sease;
}

.popup-creditcard .card-box.select-card-all.is-selected::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 16px;
  height: 16px;
  border: 0.67px solid #00a94f;
  background-color: #00a94f;
  border: none;
  border-radius: 3px;
  background-image: url(https://www.kasikornbank.com/SiteCollectionDocuments/kcc/compare/img/icons/ic-check-white.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  transition: all 0.25sease;
}

.popup-creditcard .card-box.select-card-all.is-selected {
  border-color: transparent !important;
}

@media screen and (max-width: 767px) {


  .section-howto-kplus .title-slide {
    margin-bottom: 16px;
  }

  .section-howto-kplus .press-for-enlarge {
    margin-bottom: 16px;
  }

  .popup-creditcard .tab-new {
    /* overflow: auto; */
    /* margin-right: 0; */
  }

  .popup-creditcard .card-box.select-card-all {
    margin-top: 16px;
  }

  .wrapper-content-slide {
    display: flex;
    align-items: center;
  }

  .tab-wrapper {
    overflow: hidden;
    margin-right: 32px;

  }

  .tab-bar .tab-default-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .tab-bar .tab-default-wrapper .tab {
    /* white-space: nowrap; */
  }

  .popup-creditcard .card-box.select-card-all::after {
    right: 84px;
  }
}


/* popup i  */
.icon-popup {
  width: 16px;
  height: 16px;
  margin-top: -3px;
  display: inline-flex;
}

.sc-thumb-box {
  border-radius: 8px;
}

.sc-thumb-box .inner.sc-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px;
}

.sc-thumb-box .inner.sc-content p {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.sc-thumb-box .inner.sc-content ul {
  /* padding-left: 20px; */
  display: flex;
  flex-flow: wrap;
}

.sc-thumb-box .inner.sc-content ul li {
  font-size: 16px;
  line-height: 1.8;
  list-style: disc;
  width: 40%;
  color: #666;
}

.sc-thumb-box .inner.sc-content ul li::marker {
  font-size: 10px;
}

.popup-note.mfp-bg {
  opacity: 1;
  background: rgba(0, 0, 0, 0.8);
}

.mfp-wrap.popup-note.mfp-ready .mfp-container {
  display: flex;
}

.mfp-wrap.popup-note.mfp-ready .mfp-content {
  display: flex;
  margin: 0 auto;
  align-items: center;
  z-index: 99999999999;
  background-color: transparent !important;
}

.mfp-wrap.popup-note.mfp-ready .mfp-content .sc-thumb-box {
  margin: 0 auto;
}

.popup-note.mfp-close-btn-in .mfp-close {
  left: auto;
  right: -12px !important;
}

@media screen and (min-width: 768px) {
  .sc-thumb-box {
    width: 95.24%;
    margin: 0 auto;
    border-radius: 8px;
    padding: 0 !important;
    max-width: 1000px;
  }

  /* .wrapper-content-slide .tab-bar {
    overflow-x: hidden;
  }

  .wrapper-content-slide .tab-default-wrapper {
    overflow: hidden;
  } */
}

@media screen and (max-width: 767px) {
  .inner.sc-content {
    padding: 24px;
  }

  .sc-thumb-box {
    padding: 0 !important;
  }

  .sc-thumb-box .inner.sc-content {
    gap: 8px;
  }

  .sc-thumb-box .inner.sc-content {
    padding: 24px 16px;
  }

  .sc-thumb-box .inner.sc-content p {
    font-size: 16px;
  }

  .sc-thumb-box .inner.sc-content ul {
    flex-flow: column;
  }

  .sc-thumb-box .inner.sc-content ul li {
    width: 100%;
  }

  .mfp-wrap.popup-note.mfp-ready .mfp-content {
    width: 90%;
  }

  .popup-note.mfp-close-btn-in .mfp-close {
    right: -12px !important;
    top: -20px !important;
  }
}

/* end popup i */




.sticky-header-wrapper-inner {
  will-change: transform;
}

.creditcard-all {
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
  /* สำหรับ iOS */
}

.custom-scrollbar .thumb {
  will-change: width, left;
}

.wrapper-content-slide .tab-bar.active .tab-default-wrapper {
  position: relative;
  box-shadow: 0 10px 7px -5px rgba(0, 0, 0, 0.1);
}

/* .wrapper-content-slide .tab-bar.active .tab-default-wrapper::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  box-shadow: 0 6px 6px 8px rgba(0, 0, 0, 0.1);
  
  pointer-events: none;
} */

@media screen and (max-width: 767px) {
  .tab-wrapper {
    margin-right: 0;
  }

  .wrapper-content-slide {
    display: flex;
    align-items: center;
    /* margin: 0; */
    /* height: 76px; */
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 4;
  }


  .wrapper-content-slide .tab-bar {
    position: relative;
    z-index: 3;
    overflow: auto;
    width: 100%;
    /* margin-right: 32px; */
  }

  /* .wrapper-content-slide .tab-bar::before {
    content: "";
    position: absolute;
    width: 50px;
    height: 25px;
    top: 0;
    right: 0;
    background: linear-gradient(270deg, #ECEEEF 0%, rgba(236, 238, 239, 0) 100%);
    z-index: 5;
  } */

  .wrapper-content-slide .tab-bar.active {
    /* margin-right: 32px; */
    overflow: visible;
    max-height: 32px;
  }

  .wrapper-content-slide .tab-bar.active a {
    /* line-height: 42px; */
  }

  .wrapper-content-slide .tab-bar.active::before {
    content: "";
    position: absolute;
    height: 1px;
    left: 0;
    bottom: -7px;
    right: 0;
    background-color: #DBDBDB;
    border-radius: 50px;
    z-index: 4;
  }

  .wrapper-content-slide .action-dropdown {
    display: flex;
    position: absolute;
    z-index: 4;
    top: 2px;
    right: 0;
    width: 25px;
    height: 65%;
    border-left: 1px solid #DBDBDB;
    align-items: center;
    justify-content: flex-end;
    top: 50%;
    right: -14px;
    transform: translate(-50%, -50%);
  }

  .wrapper-content-slide .action-dropdown a {
    display: block;
    position: relative;
    width: 16px;
    height: 12px;
    margin-left: auto;
  }

  .wrapper-content-slide .tab-dropdown {
    position: absolute;
    z-index: 2;
    top: 0px;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    /* transition: var(--tsition); */
    display: flex;
    justify-content: center;
    flex-direction: column;
    transition: var(--tsition);
  }

  .wrapper-content-slide .tab-dropdown.active {
    opacity: 1;
    visibility: visible;
    height: auto;
    display: flex !important;
    justify-content: center !important;
  }

  .wrapper-content-slide .tab-default-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    /* margin-right: 32px; */
    margin-right: 0;
    border-bottom: none;
    /* overflow: auto; */
    overflow: hidden;

  }

  .tab-default-wrapper a,
  .tab-default-wrapper * {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-x;
  }

  .wrapper-content-slide .tab-bar.active .tab-default-wrapper {
    /* display: block; */
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    z-index: 10;
    top: 40px;
    padding: 16px 4px;
    background-color: #ECEEEF;
    overflow: unset;
    width: 100%;
    height: 100%;
    /* box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1); */
  }



  /* .wrapper-content-slide .tab-bar.active .tab-default-wrapper a {
    margin-right: 16px;
  } */

  .tab-bar {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    /* iOS ลื่น */
  }

  /* ซ่อน scrollbar แต่ยังเลื่อนได้ (optional) */

  .tab-default-wrapper {
    display: inline-flex;
  }

  .tab-default-wrapper .tab {
    flex: 0 0 auto;
  }

  .wrapper-content-slide .tab-bar.is-dragging {
    cursor: grabbing;
  }

  .wrapper-content-slide .tab-bar {
    /* cursor: grab; */
    user-select: none;
    /* กันไฮไลท์ข้อความตอนลาก */
  }

  .wrapper-content-slide .tab-bar {
    /* overflow-x: auto; */
    overflow-x: hidden;
    overflow-y: hidden;
    white-space: nowrap;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    /* mobile ลื่น */
    border-bottom: 1px solid #dbdbdb;
  }

  .wrapper-content-slide .tab-bar.active {
    border-bottom: none;
  }

  .wrapper-content-slide .tab-bar:active {
    cursor: grabbing;
  }

  .tab-default-wrapper {
    display: inline-flex;
    gap: 16px;
  }

  .tab {
    flex: 0 0 auto;
  }

  /* main tab change design */
  .tab-bar.active .tab-default-wrapper .tab.active:after {
    display: none;
  }

  .tab-bar.active .tab-default-wrapper .tab {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    padding: 8px 24px 8px 24px;
    width: auto;
    white-space: nowrap;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #999999 !important;
    background: #fff;
    color: #333333;
  }

  .tab-bar.active .tab-default-wrapper .tab.active {
    background: rgb(236 248 242);
    color: #00A94F;
    border: 1px solid #00a94f !important;
  }

  /* end main tab change design */
}

@media screen and (max-width:767px) {

  /* .wrapper-content-slide .tab-default-wrapper {
    justify-content: center;

  } */
  .wrapper-content-slide .tab-bar {
    white-space: normal;
  }

  .tab-default-wrapper .tab {
    flex: auto;
  }

}

@media screen and (max-width:390px) {

  .wrapper-content-slide .tab-default-wrapper {
    gap: 8px;
  }

}

/* 
@media screen and (max-width:345px) {
  .tab-default-wrapper .tab {
    font-size: 13px;
  }
} */

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #b5b5b5;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: #4BC782;
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single .select2-selection__rendered {
  background: #fff;
}


.fieldset-2 .field:not(:first-child) {
  position: relative;
  z-index: 0;
}

.fieldset-2 .field:not(:first-child).is-open {
  z-index: 99999 !important;
}

.fieldset-2 .field:not(:first-child) .select2-selection__rendered {
  position: relative;
}

.fieldset-2 .field:not(:first-child) .select2-selection__rendered::after {
  content: "\e918" !important;
  font-family: 'iconkcc';
  font-size: 13px;
  font-weight: 500;
  color: #19A45A;
  line-height: 45px;
  display: inline-block;
  vertical-align: top;
  width: 14px;
  position: absolute;
  right: 15px;
  top: 0;
}

.fieldset-2 .select2-container--default .select2-selection--single .select2-selection__arrow b:before {
  display: none !important;
}