#main-list {
  display: flex;
  flex-direction: column;
}

/* Auto charge setting modal */
.ac-setting-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.ac-setting-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.ac-setting-modal .ac-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 360px);
  background: #322167;
  border-radius: 18px;
  padding: 20px 16px;
  color: #fff;
  box-sizing: border-box;
}

.ac-setting-modal .ac-title {
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.5px;
  margin: 0;
  text-decoration: none;
}

.ac-setting-modal .ac-options {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  margin: 32px 0;
}

.ac-setting-modal .ac-option {
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  user-select: none;
  justify-content: flex-start;
  text-align: left;
}

.ac-setting-modal .ac-option.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.ac-setting-modal .ac-option input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #808191;
  border-radius: 50%;
  background-color: transparent;
  position: relative;
  cursor: pointer;
}

.ac-setting-modal .ac-option input[type="radio"]:checked {
  background-color: transparent;
  border-color: #bb79fd;
}

.ac-setting-modal .ac-option input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #bb79fd;
  border-radius: 50%;
}

.ac-setting-modal .ac-option input[type="radio"]:focus {
  outline: none;
  box-shadow: none;
}

.ac-setting-modal .ac-save,
.ac-setting-modal .ac-close {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: #6b35b5;
  color: #fff;
  font-size: 14px;
}

.ac-setting-modal .ac-save:active,
.ac-setting-modal .ac-close:active {
  transform: translateY(1px);
}

/* Auto charge tooltip (fixed bottom) */
.ac-tooltip {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 20px;
  z-index: 10001;
  background: #FACC1566;
  border-radius: 10px;
  border: 1px solid #F3BB1B;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.ac-tooltip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ac-tooltip__text {
  font-size: 12px;
  font-weight: 400;
  color: #ffffff;
  line-height: 16px;
}

#main-list .list-payment {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1rem;
  padding-bottom: 45px;
  padding-top: 0;
}

#point-method,
#payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

#payment-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#payment-methods li {
  width: calc(50% - 4px);
  box-sizing: border-box;
  list-style: none;
  text-align: center;
  /* padding: 0.5rem 0.5rem; */
  /* border: 2px solid #504194; */
  border-radius: 0.625rem;
  cursor: pointer;
  /* background: #332167; */
  /* color: white; */
  /* display: flex; */
  /* align-items: center; */
  max-height: 44px;
}

#payment-methods .payment-method_item-container {
  width: 100%;
  box-sizing: border-box;
  list-style: none;
  text-align: center;
  padding: 0.5rem 0.5rem;
  border: 1px solid #504194;
  border-radius: 0.625rem;
  cursor: pointer;
  background: #332167;
  color: white;
  display: flex;
  align-items: center;
  max-height: 44px;
}

#payment-methods li.selected,
#payment-methods li:hover {
  font-weight: 600;
}

#payment-methods li.selected .payment-method_item-container,
#payment-methods li:hover .payment-method_item-container {
  isolation: isolate;
  background: linear-gradient(
    to bottom,
    #550795 0.33%,
    #ff6cfd 0.34%,
    #7924c0 10.26%,
    #360260 45.03%,
    #360260 94.21%,
    #ff6cfd 99.67%
  );
  border: none;
  position: relative;
  max-height: 44px;
}

#payment-methods li.selected .payment-method_item-container::before,
#payment-methods li:hover .payment-method_item-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    90deg,
    #f8e67d 0%,
    #eed56a 3.32%,
    #dbb748 10.27%,
    #cea12f 16.87%,
    #c69420 22.9%,
    #c38f1b 27.85%,
    #e7ca5d 41.72%,
    #f8e67d 48.15%,
    #e7ce63 52.99%,
    #d1ae41 60.51%,
    #c19828 67.65%,
    #b78a19 74.19%,
    #b48514 79.55%,
    #bd9222 83.5%,
    #d6b548 91%,
    #f8e67d 100.03%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  max-height: 44px;
}

#payment-methods .payment-method_item-container.loading {
  opacity: 0.6;
  pointer-events: none;
}

#payment-methods .img-other-payment {
  height: 32px;
  width: 38px;
  object-fit: cover;
}

#payment-methods .img-credix {
  object-fit: contain;
}

/* #payment-methods .payment-icon { */
  /* width: calc(50% - 8px); */
  /* p */

.payment-name {
  color: #F4F4F4;
  font-size: 12px;
  line-height: 16px;
  display: flex;
  align-items: center;
  width: 100%;
  text-align: center;
  justify-content: center;
}

@media (max-width: 320px) {
  .payment-name {
    font-size: 10px;
  }
}

/* Point list styles */
#point-list-free,
#point-list-special,
#point-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  width: 100%;
  background-color: #332167;
  z-index: 1;
  border-radius: 0.625rem;
}

#point-list-special {
  background-color: #5E1E9E;
  border-radius: 0.625rem 0.625rem 0 0;
}

#point-list-special .btn-primary::before {
  background: white;
}

.point-item {
  position: relative;
  padding: 16px 8px 16px 16px;
  cursor: pointer;
  width: 100%;
  border-bottom: 1px solid #504194;
  z-index: 2;
}

.point-item:last-child {
  border-bottom: none;
}

.point-bonus_description {
  font-size: 10px;
  line-height: 12px;
}

.point-item:hover > .point-info_left .point-bonus_description {
  display: block;
}

/* point info */
.point-info {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.point-info_left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: calc(100% * 1 / 3);
}

.point-info_right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: calc(100% * 2 / 3);
  align-items: center;
  gap: 0.5rem;
}

.point-info_right .benefit {
  font-size: 12px;
  line-height: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.point-item:hover > .point-bonus_description {
  display: block;
}

.point-bonus {
  display: flex;
  align-items: center;
  color: white;
  font-size: 16px;
  line-height: 19.2px;
}

.price {
  font-size: 14px;
}

.point-benefits {
  color: #28a745;
  font-size: 14px;
}

.no-points {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Banner Slider Styles */
.banner-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 375/90;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

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

/* Swiper slide styling to match original */
.banner-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.banner-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  pointer-events: auto;
  z-index: 5;
}

.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  justify-content: center;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s linear;
  background: rgba(0, 0, 0, 0.51);
}

.banner-dot.swiper-pagination-bullet-active {
  background: black;
  border: 1px solid white;
}

/* Override Swiper default styles to match original design */
.banner-container.swiper {
  overflow: visible;
}

.banner-container .swiper-wrapper {
  align-items: stretch;
}

.banner-container .swiper-slide {
  height: auto;
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s ease;
}

.banner-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.banner-prev {
  left: 10px;
}

.banner-next {
  right: 10px;
}

/* Prevent zoom on input focus for webview */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
textarea,
select {
  zoom: 1 !important;
}

[id="AmazonPayButton"] {
  width: 100% !important;
  margin-left: auto;
  margin-right: auto;
  position: fixed !important;
  height: 56px !important;
}

@keyframes test-text {
  0% {
    transform: translateX(-1px);
  }
  50% {
    transform: translateX(1px);
  }
  100% {
    transform: translateX(-1px);
  }
}

.test-text {
  display: inline-block;
  animation: test-text 0.2s linear infinite;
}

/* Point reward badge */
.point-reward {
  position: relative;
  display: inline-flex;          /* allow content inside */
  align-items: center;
  justify-content: center;
  background-image: url("../images/point-reward.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 55px;
  height: 16px;
  line-height: 1;
  text-align: center;
  /* Use drop-shadow so shadow follows the slanted shape of the PNG */
  filter: drop-shadow(0px 2px 2px #00000040);
  color: #fff;                   /* màu chữ */
  font-weight: 600;
  font-size: 10px;
}

.text-reward-gradient {
  background: linear-gradient(90deg, #F1C830 0%, #FAF6CF 50.5%, #C29221 77%, #F9F4CC 100%);
  -webkit-background-clip: text;
  color: transparent;
  border: none;
  width: 100%;
}

.text-strike-through {
  text-decoration: line-through;        /* strike-through center text */
  text-decoration-thickness: 1px;       /* control line thickness */
  text-decoration-color: #e53935;       /* red strike-through line */
}