.bs-stepper-content {
  padding: 25px 35px 25px 35px !important;
}
form.was-validated .input-group:has(:invalid),
form .input-group.input-group-merge:has(.is-invalid),
form .input-group:has(.is-valid),
form .input-group.input-group-merge:has(.is-valid) {
  box-shadow: none !important;
}
.gradient-bg {
  background: linear-gradient(to bottom, #ffffff 70%, #d9e9ff 100%) !important;
}
.otp-validation-wrapper {
  max-width: 60%;
  width: 100%;
}
.otp-validation-wrapper .auth-input {
  max-width: 50px;
  padding-left: .4rem;
  padding-right: .4rem;
  font-size: 150%
}
.kyb-form-wrapper{
  margin-top: 3vh;
  margin-bottom: 3vh;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.x-small {
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
}
.font-ibm{
  font-family: 'IBM Plex Sans', sans-serif !important;
}
.text-4xl{
  font-size: 2.25rem !important;
  line-height: calc(1.75 / 1.125) !important;
}
.text-xl {
  font-size: 1.25rem !important;
  line-height: calc(1.75 / 1.25) !important;
}
.text-lg {
  font-size: 1.125rem !important;
  line-height: calc(2.5 / 2.25) !important;
}

.payment-method-selector {
  max-width: 700px;
  margin: 0 auto;
}

.payment-method-card {
  border: 1px solid #DDE5ED;
  border-radius: 12px;
  background: #DDE5ED2E;
  overflow: hidden;
  transition: all 0.3s ease;
}

.payment-method-card:hover {
  border-color: #b0b0b0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.payment-method-card.active {
  border-color: #007bff;
}

.payment-card-header {
  background: #fff;
  transition: background 0.2s ease;
}

.payment-method-card.active .payment-card-header {
  background: #f8f9ff;
}

.payment-method-card.active .arrow-icon {
  transform: rotate(180deg);
}

.payment-method-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.payment-method-icon-placeholder {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-method-title {
  font-size: 17px;
  font-weight: 700;
  color: #4A555F;
}

.payment-method-subtitle {
  font-size: 11px;
  font-weight: 400;
  color: #4A555F;
}

.arrow-button {
  color: #999;
  transition: color 0.2s ease, transform 0.3s ease;
}

.payment-method-card:hover .arrow-button {
  color: #666;
}

.payment-card-content {
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-option {
  cursor: pointer;
  transition: background 0.2s ease;
}

.payment-option:hover {
  background: #e9ecef;
}

.payment-option.selected {
  background: #e7f1ff;
  border: 1px solid #007bff;
}

.payment-brand-icon {
  width: 32px;
  height: 20px;
  object-fit: contain;
}

.payment-option span {
  font-size: 14px;
  color: #333;
}

.cursor-pointer {
  cursor: pointer;
}

.hover-bg:hover {
  background: #e9ecef;
}

.collapse {
  display: none;
}

.payment-method-card.active .collapse {
  display: block;
}

.payment-channels-container:not(:last-child) {
  margin-bottom: 24px;
}

.payment-channel-title {
 font-size: 13px; 
 line-height: 150%;
 color: #343434;
 font-weight: 500;
}

.payment-channel-name {
  font-size: 13px;
  font-weight: 700;
  color: #343434;
}

.payment-channel-details {
  font-size: 10px;
  font-weight: 400;
  color: #343434;
}

.payment-channel-card .card {
  transition: all 0.2s ease;
}

.payment-channel-card:hover {
  transform: translateY(-2px);
}

.payment-channel-card.active {
  border-color: #007bff;
}

.payment-channel-icon {
  object-fit: contain;
}

.payment-channel-icon-placeholder svg {
  opacity: 0.5;
}

.row.g-3:has(.payment-channel-card) {
  justify-content: flex-start;
}

/* Make columns auto-width instead of 50% */
.row.g-3:has(.payment-channel-card) > .col-6 {
  flex: 0 0 auto;
  /* width: auto; */
}

/* Ensure cards maintain their max-width */
.payment-channel-card {
  transition: all 0.2s ease;
  border: 1px solid #666;
  border-radius: 12px;
  padding-block: 10px;
}



.rotate-90 {
  transform: rotate(90deg);
}

.-rotate-90 {
  transform: rotate(-90deg);
}

.payment-summary-text {
  font-size: 12px;
  font-weight: 500;
  color: #343434;
}

.payment-summary-text > *, .payment-info-title > * {
  color: #343434 !important;
}

/* Payment Detail Styles */
.payment-detail-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.payment-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.bank-details-table {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-label {
    font-weight: 500;
    color: #495057;
}

.detail-value {
    font-weight: 600;
    color: #212529;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Amount Input Styles */
.amount-input-container {
    position: relative;
    margin-bottom: 20px;
}

#deposit-amount {
    padding-right: 120px;
    font-size: 1.1rem;
}

.amount-hint {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
}

.currency-badge {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 600;
    color: #212529;
}

/* Payment Action Buttons */
.payment-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.payment-action-buttons .btn {
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 8px;
}

/* Summary Page Styles */
.payment-summary-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* QR Code Section Styles */
.deposit-title {
    color: #343434;
}

.download-qr-btn {
    background-color: #DDE5ED;
}

.faq-section {
  padding: 20px;
  background: #DDE5ED3D;
  border-radius: 8px;
  color: #000;
  width: 100%;
}

@media (min-width: 768px) {
  .payment-channels-wrapper {
    max-height: calc(100vh - 2vh - 80px - 1rem);
    overflow: hidden;
    overflow-y: auto;
  }
  .faq-section {
    max-width: 345px;
  }
}

.faq-title {
  font-size: 14px;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  color: #000;
  line-height: 24px;
  margin-bottom: 0;
}

.faq-list {
  padding-left: 16px;
  margin-bottom: 0;
}

.faq-list .faq-link{
  font-size: 14px;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  color: #000;
  line-height: 24px;
  margin-bottom: 0;
}

.payment-info-title {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #343434;
  line-height: 150%;
  margin-bottom: 0;
}

.badge.bg-success-dark {
  background: #24B021;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  border-radius: 4px;
}

.payment-account-name {
  max-width: 174px;
}

.form-control#amount-input, .form-control#amount-input:focus {
  border-right: none;
  box-shadow: none
}

.deposit-currency {
  font-size: 17px;
  line-height: 24px;
  border-left: none;
}

.input-group:not(.input-group-floating):focus-within .form-control:hover:invalid, .input-group:not(.input-group-floating):focus-within .form-control.is-invalid:hover {
  border-color: #dc3545 !important;
} 

.input-group:not(.input-group-floating):focus-within:not(.input-group-merge,.input-group-floating) .input-group-text {
  box-shadow: none;
}

.input-group:not(.input-group-floating):focus-within, .input-group:focus:has(:not(.is-invalid)) {
  box-shadow: none;
}

.payment-instructions {
  font-size: 12px;
  line-height: 150%;
  color: #000;
  padding-inline: 8px;
}

.payment-instructions ol {
  padding-left: 24px;
  margin-bottom: 0;
}

.qr-blur {
    filter: blur(8px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

.spin {
    animation: spin 1s linear infinite;
}

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

.qris-timer > * {
  color: #343434
}

.qris-timer #timer-display {
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
}

.payment-label {
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  color: #182A7D;
  margin-bottom: 10px;
}

.btn-action-payment {
  border-radius: 12px;
}

#index-prev-btn.btn-action-payment {
  color: #6E7E8F;
  border: 1px solid #6E7E8F; 
}

#index-prev-btn.btn-action-payment a {
  color: #6E7E8F;
}

#index-next-btn.btn-action-payment {
  background: #0080FF;
  border: 1px solid #0080FF;
}

/* Loading Overlay */
.payment-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  touch-action: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: #696cff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  font-size: 0.9rem;
  color: #5d596c;
  font-weight: 500;
}

/* Disabled Payment Channel Card */
.payment-channel-card.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

#payment-modal.modal .modal-dialog {
  max-width: 432px;
}

#payment-modal.modal .modal-body {
  padding: 40px 24px 16px;
}

#qrcode {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

#qrcode img,
#qrcode canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
}

#payment-failed-modal .modal-content .modal-message, #payment-failed-modal .modal-content .btn {
  font-size: 0.875rem;
}