main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  padding: 32px 0;
}

.payment-container {
  margin: auto;
  padding: 24px;
}

.payment-container-wrapper {
  display: flex;
  gap: 36px;
  min-width: 1024px;
}

.payment-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 24px;
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 3;
}

.payment-container-view-order {
  margin-top: 20px;
  flex: 1;
  padding: 20px;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  height: max-content;
}

.payment-container-view-order-title {
  font-size: 16px;
  color: #999;
}

.payment-container-view-order-plan {
  margin: 16px 0;
  font-size: 16px;
  color: #333;
  opacity: 0.8;
}

.payment-container-view-order-plan-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-container-view-order-plan-total-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #d7d7d7;
}

.payment-form-wrapper {
  display: flex;
  gap: 16px;
}

.payment-form-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.payment-form-item label {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}


.required-field-form,
.payment-form-item label span {
  color: red;
  opacity: 0.8;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-form-item input,
.payment-form-item select {
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  outline: none;
  /* min-width: 350px; */
  min-height: 40px;
  padding-left: 14px;
  transition: all 0.1s ease;
}

.payment-form-item select {
  height: 40px;
  padding-left: 14px;
}

.payment-form-item input:focus-within,
.payment-form-item select:focus-within {
  border-width: 1.5px;
  border-color: cornflowerblue;
}

.payment-form-item button {
  background-color: cornflowerblue;
  color: white;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.payment-form-item button:hover {
  background-color: royalblue;
}

.payment-form-item a {
  color: cornflowerblue;
  text-decoration: none;
}

.payment-form-item a:hover {
  text-decoration: underline;
}

.payment-form-item .argree-checkbox {
  min-width: unset;
  width: 16px !important;
  height: 16px !important;
}

/* stripe css */

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}


#card-element {
  /* margin-bottom: 12px; */
}

button {
  width: 100%;
  padding: 15px;
  background-color: #5469d4;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #4353b8;
}

button:disabled {
  background-color: #b0b7ff;
}

#card-errors {
  color: #e54242;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

label {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
  display: block;
}

input[type='text'],
input[type='email'],
select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  color: #333;
  background-color: #f9f9f9;
  box-sizing: border-box;
}

input[type='text']:focus,
input[type='email']:focus,
select:focus {
  border-color: #5469d4;
  outline: none;
}

/* Style cho Stripe Element */
.StripeElement {
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  color: #32325d;
  background-color: #f9f9f9;
  width: 100%;
}

.StripeElement--focus {
  border-color: #5469d4;
}

.StripeElement--invalid {
  border-color: #e54242;
}

.StripeElement--webkit-autofill {
  background-color: #f4f4f4 !important;
}

/* Nút thanh toán */
button {
  width: 100%;
  padding: 15px;
  height: 40px;
  background-color: #5469d4;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #4353b8;
}

button:disabled {
  background-color: #b0b7ff;
  cursor: not-allowed;
}

/* Hiển thị lỗi */
#card-errors {
  color: #e54242;
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
}

#card-icons {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 300px; /* Chiều rộng tối đa của các biểu tượng */
  margin-bottom: 10px;
}

#card-icons img {
  width: 30px; /* Điều chỉnh kích thước icon */
  margin-right: 10px; /* Khoảng cách giữa các biểu tượng */
}

.StripeElement--autofill-button {
  display: none !important;
}

.message-not-valid-membership-number,
.message-error-privacy-policy {
  font-size: 14px;
  color: red;
  opacity: 0.8;
  display: none;
}

.message-error-privacy-policy {
  margin-top: -12px;
}

/* ///// */
.card-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-option {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.card-option input[type='radio'] {
  margin-right: 10px;
  transform: scale(1.2);
}

.saved-card .brand-logo {
  height: 20px;
}

.card-number {
  font-weight: bold;
  font-size: 16px;
}

.new-card .brand-logos img {
  height: 20px;
  margin-left: 8px;
}

.activities-text {
  color: #333;
  opacity: 0.8;
  font-size: 14px;
  margin-bottom: 16px;
}

/* loading css */
/* HTML: <div class="loader"></div> */
/* HTML: <div class="loader"></div> */

.loading-button-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  display: none;
}
.loader {
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid #FFF;
  animation:
    l20-1 0.8s infinite linear alternate,
    l20-2 1.6s infinite linear;
}
@keyframes l20-1{
   0%    {clip-path: polygon(50% 50%,0       0,  50%   0%,  50%    0%, 50%    0%, 50%    0%, 50%    0% )}
   12.5% {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100%   0%, 100%   0%, 100%   0% )}
   25%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 100% 100%, 100% 100% )}
   50%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
   62.5% {clip-path: polygon(50% 50%,100%    0, 100%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
   75%   {clip-path: polygon(50% 50%,100% 100%, 100% 100%,  100% 100%, 100% 100%, 50%  100%, 0%   100% )}
   100%  {clip-path: polygon(50% 50%,50%  100%,  50% 100%,   50% 100%,  50% 100%, 50%  100%, 0%   100% )}
}
@keyframes l20-2{ 
  0%    {transform:scaleY(1)  rotate(0deg)}
  49.99%{transform:scaleY(1)  rotate(135deg)}
  50%   {transform:scaleY(-1) rotate(0deg)}
  100%  {transform:scaleY(-1) rotate(-135deg)}
}
/* responsive */
/* tablet and mobile */
@media (max-width: 1023px) {
  .payment-container {
    
    width: 100%;
  }

  .payment-container-wrapper {
    flex-direction: column-reverse;
    min-width: unset;
    width: 100%;
  }

  .payment-form-wrapper {
    flex-direction: column;
  }
}

/* tablet */
@media (min-width: 740px) and (max-width: 1023px) {
  .payment-container {
    margin: 36px;
  }
}

/* mobile */
@media (max-width: 739px) {
}
