.modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow: auto;
  display: none;
}

.modal-content {
  background-color: #111;
  width: 100%;
  max-width: 500px;
  max-height: calc(
    100vh - 40px
  ); /* Prevents the modal from exceeding the viewport height */
  overflow-y: auto; /* Enables vertical scrolling when content overflows */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for mobile devices */
  position: relative;
  animation: slideIn 0.3s ease-out;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 16px;
}

.modal-content::-webkit-scrollbar {
  width: 4px;
  display: block;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 101, 221, 0.35);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 101, 221, 0.15);
}

.page {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.close-btn {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 0px;
  right: 15px;
}

.close-btn:hover,
.close-btn:focus {
  color: #6c6c6c;
  text-decoration: none;
  cursor: pointer;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

button#openModalBtn {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin: 20px;
}

.thumbnail {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.checkout-title {
  font-size: 16px;
  text-align: center;
  color: #fff;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}
.chk-title {
  float: left;
}
.chk-price {
  float: right;
  color: #6c6c6c;
}

.chk-variants {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chk-name {
  max-width: 80%;
}

.chk-variant {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  font-size: 0.925rem;
  flex-direction: column;
  cursor: pointer;
}

.chk-header {
  text-align: left;
  width: 100%;
  text-transform: none;
}

.chk-details {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  font-family: "Va-Font";
}

.chk-price {
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: rgb(218, 218, 218);
}

.chk-stock {
  color: #6c6c6c;
  text-transform: none !important;
}

.chk-variant.selected {
  border-color: rgba(255, 101, 221, 0.3);
  background: rgba(255, 101, 221, 0.15);
}

.chk-variant:hover {
  border-color: rgba(255, 101, 221, 0.3);
}

.quantity-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}
.qty-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
}
.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.quantity-selector input {
  width: 50px;
  text-align: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 8px 0;
  font-family: "Va-Font", sans-serif;
}
.quantity-selector input:focus {
  outline: none;
}
.quantity-container label {
  text-transform: none;
}
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.quantity-selector input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.hidden-pg {
  display: none;
}

.order-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.summary-title {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.summary-item {
  display: flex;
  justify-content: space-between;
}
.summary-item span {
  text-transform: none;
}
.summary-details {
  /* border: 2px solid rgba(255, 255, 255, 0.1); */
  border-radius: 0.5rem;
  display: flex;
  gap: 8px;
  flex-direction: column;
  text-transform: none;
}
.smy-price {
  font-weight: bold;
  font-size: 18px;
  color: rgb(218, 218, 218);
}

.el-price {
  letter-spacing: 0.5px;
}
.smy-ok {
  margin-top: 10px;
}
.info-text,
.info-text span {
  font-size: 14px;
  color: #6c6c6c;
  text-align: center;
  text-transform: none;
  margin-top: 10px;
  letter-spacing: -0.4px;
}

.email {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.email label {
  text-transform: none;
}

.email input {
  padding: 8px;
  border-radius: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: none;
  color: #fff;
  text-transform: none;
  font-size: 16px;
  font-family: "Va-Font", sans-serif;
}
.email input:focus {
  outline: none;
  border-color: rgba(255, 101, 221, 0.3);
}

.spinner-buy {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 101, 221, 0.3);
  border-top-color: #ff65dd;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .modal-content {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: 20px;
  }
  .summary-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

.status-contaier {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  height: 90px;
}
.status-spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 101, 221, 0.3);
  border-top-color: #ff65dd;
  animation: spin 1s linear infinite;
}

.status-text {
  color: #cfcfcf;
  font-size: 16px;
  text-transform: none;
}

div.marquee {
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
}

div.marquee div.marquee-content {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 100%;
  animation: marquee-scroll 7s linear infinite;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.marquee-content span {
  color: #ff65dd;
  font-weight: bold;
  text-transform: none;
}

.marquee-content img {
  height: 24px;
  width: auto;
}

@media (max-width: 600px) {
  .features-wrapper {
    gap: 0;
  }
  div.marquee {
    margin-top: 0;
  }
}

.invoice-item {
  max-width: 80%;
}

.support-link {
  margin-top: -10px;
  text-align: center;
  animation: slideDown 0.5s ease-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.support-link a {
  text-decoration: underline;
  text-transform: none;
  font-size: 12px;
  color: #6c6c6c;
  cursor: pointer;
  letter-spacing: normal;
}

.confirmation span {
  text-transform: none;
}

.confirmation {
  text-align: center;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal img {
  width: 100%;
  height: auto;
  margin-top: 20px;
}
