html,
body {
  font-family: sans-serif;
  font-size: 14px;
  color: #222;
  padding-bottom: 40px;
  background-color: #eaeaea;
}

a {
  color: black;
}

a:hover {
  color: #666;
  text-decoration: none;
}

.description-prd-detail {
  padding: 10px 0;
}

.description-prd-detail h2 {
  text-decoration: underline;
  font-size: 12px;
  margin-top: 0;
}

.description-prd-detail ul {
  padding: 0;
  margin: 0 0 35px;
}

.description-prd-detail ul li {
  list-style-type: none;
}

.description-prd-detail ul li h3 {
  font-size: 12px;
  font-weight: normal;
}

.description-prd-detail ul li p {
  font-size: 10px;
  color: #666;
}

.description-prd-detail .attribute-more-information {
  display: flex;
  flex-flow: column;
  gap: 15px;
  margin-top: 5px;
  margin-bottom: 20px;
}

.description-prd-detail .attribute-more-information div {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 10px;
}

.description-prd-detail .attribute-more-information div h5 {
  font-size: 11px; 
  font-weight: 400;
  color: #8c8c8c; 
  margin: 0 0 8px;
}

.description-prd-detail .attribute-more-information div h5 + div {
  display: flex;
  flex-flow: column;
  gap: 2px;
  font-size: 13px;
  font-weight: 400;
  color: #000;
}
.description-prd-detail .attribute-more-information div h5 + div p {
  font-size: 12px;
  color: #575757;
  font-weight: 400;
  line-height: normal;
  margin: 4px 0;
}

.container {
  width: min(480px, 90%);
  margin: 20px auto 0;
}

.content-wrapper {
  position: relative;
  padding: min(28px, 4vw);
  padding-top: 32px;
  background-color: white;
  border-radius: 6px;
}

.content-wrapper.has-top-banner {
  border-radius: 0 0 6px 6px;
}

.qr-wrapper {
  border-radius: 8px;
  display: inline-block;
  line-height: 1;
  overflow: hidden;
}

img {
  max-width: 160px;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: normal;
}

.txt-center {
  text-align: center;
}

.heading {
  font-size: 1.3em;
  color: #666;
  margin-bottom: 8px;
  margin-top: 8px;
}

.sub-heading {
  font-size: 0.9em;
  color: #aaa;
  margin-top: 0;
}

.section {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eaeaea;
}

.section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section.manual .section--content {
  display: flex;
}

.section.manual .section--content .col-lft {
  font-size: 0.85em;
  width: 72px;
}

.section.manual .section--content .col-rht {
  flex: 1;
}

.section--content+.section--content {
  margin-top: 8px;
}

.section--content .item:first-child {
  margin-top: 0;
}

.col-2 {
  display: flex;
  flex-flow: row wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.item {
  overflow-wrap: anywhere;
}

.section__top .item {
  margin: 0 0 4px;
}

.item--label,
.section--title {
  color: #888;
  font-size: 0.85em;
}

.item--data {
  font-size: 0.95em;
  margin-inline-start: 0;
}

.qr .section__top {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.qr .section__middle {
  background-color: #eee;
  padding: 10px 0 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
}

.qr .section__middle.has-usage {
  padding-bottom: 10px;
}

.qr .section__middle.is-esim {
  padding-top: 24px;
}

.qr .section__bottom p {
  margin-top: 2px;
}

.qr .section__bottom span {
  font-size: 0.9em;
  display: inline-block;
  margin-right: 6px;
}

.package-name {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 1.1em;
}

.desc .section--content {
  font-size: 0.85em;
}

.desc .section--content h4, .desc .section--content h6 {
  font-family: "Noto Sans Thai", sans-serif;
}

.desc .section--content h4 {
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 0;
}

.desc .section--content h6 {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.desc .section--content > div {
  display: block;
  text-align: center;
}

.desc .section--content > .description-prd-detail {
  text-align: left !important;
}

.desc .item {
  padding-left: 16px;
  position: relative;
}

.desc .item:before {
  content: '•';
  display: inline;
  position: absolute;
  left: 0;
}

.lang {
  text-align: right;
  font-size: .85em;
  position: absolute;
  right: 15px;
  top: 15px;
}

.lang a {
  margin-left: 6px;
}

.section.misc {
  font-size: 12px;
  margin: 0;
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section.misc a {
  margin: 0 8px;
}

.btn-copy {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  padding: 2px 8px 4px;
  background-color: #dedede;
  border-radius: 12px;
  margin-left: 6px;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color .2s ease;
}

.btn-copy:hover {
  background-color: #ccc;
}

.btn-usage {
  padding: 4px 18px 4px 10px;
  background-color: #fff;
  border-radius: 12px;
  border: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, .2);
  font-size: 13px;
  float: right;
  margin-top: -10px;
  margin-right: 8px;
  cursor: pointer;
  transition: box-shadow .2s ease;
  position: relative;
}

.btn-usage .text:after {
  border-color: #000000;
  color: #000000;
  fill: #000000;
  top: 7px;
  transform: rotate(45deg);
  border-style: solid;
  border-width: 0 1px 1px 0;
  content: '';
  display: block;
  height: 4px;
  position: absolute;
  right: 8px;
  left: auto;
  width: 4px;
  background: none;
  border-radius: 0;
}

.btn-usage.active .text:after {
  top: 10px;
  transform: rotate(225deg);
}

.btn-usage:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, .2);
}


.modal {
  position: fixed;
  background-color: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, .3);
  padding: 8px 16px;
  border-radius: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: fade 1.5s ease-in-out forwards;
}

.modal.top {
  top: 100px;
  animation: fade 5s ease-in-out forwards;
}

@keyframes fade {
  0% {
    opacity: 0;
    margin-top: 10px;
  }

  20% {
    opacity: 1;
    margin-top: 0;
  }

  80% {
    opacity: 1;
    margin-top: 0;
  }

  100% {
    opacity: 0;
    margin-top: -10px;
  }
}

@keyframes fade2 {
  0% {
    opacity: 0;
    margin-top: 10px;
  }

  10% {
    opacity: 1;
    margin-top: 0;
  }

  90% {
    opacity: 1;
    margin-top: 0;
  }

  100% {
    opacity: 0;
    margin-top: -10px;
  }
}

.table-usage-wrapper {
  border-radius: 6px;
  background: #fff;
  border: 1px solid #dcdcdc;
  padding: 8px;
  text-align: left;
  margin-left: 8px;
  margin-right: 8px;
}

.is-esim .table-usage-wrapper {
  margin-top: 30px;
}

.table-usage-wrapper .title {
  margin-top: 0;
  font-weight: bold;
  margin-bottom: 6px;
}

.table-usage-wrapper .title+.item {
  margin-top: 6px;
}

.table-usage-wrapper .table-usage {
  font-size: 14px;
}

.table-usage .item:last-child {
  margin-bottom: 6px;
}

.usage-content.loading {
  max-width: 100%;
  text-align: center;
}

.usage-content.loading:after {
  content: " ";
  display: inline-block;
  width: 24px;
  height: 24px;
  margin: 24px;
  border-radius: 50%;
  border: 3px solid #fff;
  border-color: #ccc transparent #ccc transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

.flex {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px;
}

.flex .item {
  margin-top: 0;
}

.usage-highlight {
  margin: 16px 0 8px;
}

.usage-highlight--name {
  font-size: 14px;
}

.usage-highlight--data svg {
  width: 100%;
}

@media screen and (max-width: 420px) {
  .flex {
    flex-direction: column;
    gap: 0;
  }
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.accordion .accordion--content {
  visibility: visible;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.2s ease-out, visibility .3s ease-out;
}

.accordion.hide .accordion--content {
  visibility: collapse;
  max-height: 0;
  transition: max-height 0.2s ease-out, visibility .1s ease-out;
}

.accordion--title * {
  display: inline-block;
}

.accordion--title:hover {
  cursor: pointer;
}

.accordion--title:after {
  content: '';
  display: inline-block;
  position: relative;
  left: 6px;
  top: -1px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #333;
  transform: rotate(-180deg);
  transition: transform .3s ease;
}

.accordion.hide .accordion--title:after {
  transform: rotate(0deg);
}

.section.manual {
  margin-top: -10px;
  padding-bottom: 10px;
}

.top-banner {
  margin: 0;
  line-height: 0;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.top-banner img {
  max-width: 100%;
}

.divider {
  margin-top: 12px;
  margin-bottom: 20px;
  background: #ebebeb;
  height: 1px;
  border: none;
}

.contact-options {
  padding: 2px;
  border-radius: 6px;
  border-color: white;
  color: black;
}

.ios-install-wrapper {
  margin-top: 24px;
  padding: 0 16px;
}

.ios-install-wrapper p {
  margin: 0;
  color: #c86400;
}

.btn-install {
  display: inline-block;
  padding: 11px 16px 10px;
  border-radius: 6px;
  color: white;
  background-color: #e27100;
  text-decoration: none;
  min-width: 160px;
  margin-top: 8px;
  transition: background .3s ease;
  font-size: 16px;
}

.btn-install:hover {
  color: white;
  background-color: #dc4f04;
}

.usage-note {
  margin: 8px 0 0;
}

.usage-note small {
  font-size: 12px;
  color: #999;
}

.sim-status {
  position: absolute;
  top: 6px;
  right: 6px;
  transition: opacity .3s ease;
  opacity: 0;
}

.sim-status.has-status {
  opacity: 1;
}

.sim-status .badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  text-transform: uppercase;
  line-height: 1;
  background: #fff;
}

.sim-status.downloaded .badge {
  background: #e0f8ff;
  color: #007fff;
  box-shadow: 0 1px 2px rgb(134 210 255 / 40%);
}

.sim-status.installed .badge {
  background: #e0f8ff;
  color: #007fff;
  box-shadow: 0 1px 2px rgb(115 248 156 / 40%);
}

.sim-status.enable .badge {
  background: #e9ffda;
  color: #2bb603;
  box-shadow: 0 1px 2px rgba(114, 222, 132, 0.4);
}

.sim-status.disable .badge {
  background: #fff7e0;
  color: #e27d00;
  box-shadow: 0 1px 2px rgb(255 218 134 / 40%);
}

.sim-status.delete .badge {
  background: #ffe0e0;
  color: #ff0000;
  box-shadow: 0 1px 2px rgb(255 134 134 / 40%);
}

.hidden {
  display: none;
}

.hidden {
  display: none;
}

.has-insurance {
  background-color: #fef1cf;
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  margin-bottom: 16px;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.has-insurance h4 {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 0;
  margin-top: 4px;
}
.has-insurance p {
  margin: 0;
  line-height: 1.4;
}

.has-insurance small {
  color: red;
  font-size: 13px;
}

.btn {
  color: #fff;
  background-color: #fe6023;
  border-radius: 6px;
  margin: 0;
  cursor: pointer;
  padding: 8px 10px;
  text-decoration: none;
}

.btn:hover {
  color: #fff;
  opacity: 0.8;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 999;
}

.popup-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  z-index: 1000;
  width: 80%;
  max-width: 400px;
}

.popup-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 16px;
}

.popup-title>* {
  line-height: 1;
  margin: 0;
  font-weight: bold;
}

.popup-description {
  margin-bottom: 24px;
  line-height: 1.4;
}

.popup-buttons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-flow: column wrap;
  gap: 16px;
}

.popup-button {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
}

.popup-button.accept {
  background-color: rgb(255, 115, 0);
  color: white;
  border: none;
}

.popup-button.accept:hover {
  background-color: rgb(255, 129, 25);
}

.link {
  color: #333;
}

.link:hover {
  color: #999;
}