/* ========================================
   PAYMENT CONTAINER & CHECKOUT BOX
   ======================================== */

.payment-container-main.checkout-payment-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  justify-content: space-around;
  max-width: 950px;
  margin: auto;
}

@media only screen and (max-width: 991px) {
  .payment-container-main.checkout-payment-wrapper {
    padding: 20px;
  }
}

.checkout-payment-box {
  text-align: center;
  background-color: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   IFRAME & PAYMENT FRAME
   ======================================== */

#iframe-wrapper {
  width: 100%;
  margin: 20px auto;
  min-height: 250px;
  margin-bottom: 0;
}

#payment-frame {
  width: 100%;
  height: 490px;
  border: 0;
  border-radius: 20px;
}

@media only screen and (max-width: 468px) {
  #payment-frame {
    height: 510px;
  }
}

@media only screen and (max-width: 400px) {
  #payment-frame {
    height: 523px;
  }

  .order-summary-header {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center !important;
  }
}

/* ========================================
   ORDER DETAILS CONTAINER & SUMMARY
   ======================================== */

.order-details-container {
  background: white;
  min-width: 360px;
  max-width: 600px;
  max-height: max-content;
  padding: 30px 25px;
  border-radius: 20px;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  margin: 0 auto 0;
}

@media only screen and (max-width: 768px) {
  .order-details-container {
    max-width: 100%;
    margin: unset;
    min-width: 100%;
    width: 100%;
  }

  .gve-card-custom-header {
    flex-wrap: wrap;
  }
}

.order-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin-bottom: 20px;
  cursor: pointer;
}

.order-summary-title {
  text-transform: uppercase;
  font-size: 20px;
  margin: 0;
}

.order-summary-preview {
  display: none;
  align-items: center;
  gap: 15px;
}

.total-amount {
  font-weight: 700;
  color: #125fcd;
  font-size: 18px;
}

.toggle-btn {
  background: none;
  border: 2px solid #125fcd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: #125fcd;
  color: white;
}

.toggle-icon {
  font-size: 14px;
  color: inherit;
  transition: transform 0.3s ease;
}

.order-details-content {
  transition: all 0.3s ease;
}

.order-details-content p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px !important;
  font-size: 15px;
}

.order-details-content,
p.order-total-amount,
.order-summary-div {
  padding-top: 10px;
  border-top: 1px solid #e1e1e1;
}

.order-total-amount {
  font-size: 18px !important;
  font-weight: 600 !important;
}

.product-price-display strong {
	width: 42% !important;
    align-content: end;
}

/* ========================================
   UPSELL PRODUCT STYLES
   ======================================== */

.upsell-product-wrapper {
  border: 2px solid #d4bf7f;
  border-radius: 8px;
  padding: 16px;
  margin: 15px 0;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: left;
}

.upsell-product-wrapper:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.upsell-product-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.upsell-product-label {
  font-weight: 700;
  font-size: 16px;
  color: #353030;
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
  margin-right: 8px;
}

.upsell-product-toggle {
  margin-right: 10px;
  transform: scale(1.2);
  cursor: pointer;
}

.upsell-product-details {
  margin-top: 10px;
}

.upsell-product-details p {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.upsell-product-details span {
  font-weight: bold;
  color: #353030;
  font-size: 16px;
}

/* ========================================
   LOADING OVERLAY STYLES
   ======================================== */

.iframe-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  font-family: Arial, sans-serif;
}

.iframe-loading-content {
  text-align: center;
  padding: 20px;
}

.iframe-loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: iframe-spin 1s linear infinite;
  margin: 0 auto 15px;
}

.iframe-loading-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.iframe-loading-subtext {
  font-size: 12px;
  color: #999;
}

@keyframes iframe-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ========================================
   FORM NAVIGATION & BUTTONS
   ======================================== */

.gform-theme--foundation .gform_page_footer {
  justify-content: space-between !important;
}

.gform-page-footer.gform_page_footer .gform_previous_button {
  background-color: #fff !important;
  color: #000 !important;
}

/* ========================================
   ERROR MESSAGES & MISC
   ======================================== */

h2.gform_payment_error_custom {
  color: red !important;
  font-size: 17px !important;
  text-transform: capitalize !important;
}

#privacy-policy-text-form {
  display: none;
}

@media (max-width: 1024px) {
  .elementor-134 section.elementor-element.elementor-element-464f57d3 {
    margin-top: 0px;
  }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Large Tablets and Small Desktops */
@media only screen and (max-width: 991px) {
  .checkout-payment-wrapper {
    flex-wrap: wrap;
  }
}

/* Tablets */
@media (max-width: 768px) {
  /* Payment Container */
  .payment-container-main.checkout-payment-wrapper {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .checkout-payment-box {
    order: 2;
  }

  .order-details-container {
    padding: 20px;
    order: 1;
  }

  /* Order Summary Toggle */
  .order-summary-header {
    cursor: pointer;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
  }

  .order-summary-header:hover {
    background: #e9ecef;
  }

  .order-summary-title {
    font-size: 18px;
  }

  .order-summary-preview {
    display: flex;
  }

  .order-details-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
  }

  .order-details-content.expanded {
    max-height: 1000px;
    padding: 20px;
  }

  .elementor-kit-11 button.toggle-btn {
    border-radius: 20px !important;
  }
  /* Upsell Styles */
  .upsell-product-wrapper {
    padding: 14px;
    margin: 12px 0;
  }

  .upsell-product-label {
    font-size: 15px;
  }

  .upsell-product-details p {
    font-size: 13px;
  }
}

/* Small Tablets and Large Phones */
@media only screen and (max-width: 575px) {
  /* Form Steps */
  .passport-form-inner form .gf_page_steps {
    gap: 0 3px !important;
  }

  /* Upsell Styles */
  .upsell-product-wrapper {
    padding: 12px;
    margin: 10px 0;
    border-width: 1px;
  }

.upsell-product-control {
    justify-content: space-around;
	gap: 50px;
  }

  /* .upsell-product-control {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  } */

  .order-summary-header {
    border-radius: 8px 8px 0 0;
  }

  .upsell-product-label {
    font-size: 14px;
    margin-bottom: 5px;
    margin-right: 0;
  }

  .upsell-product-toggle {
    align-self: flex-end;
    margin-right: 0;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  /* Order Summary Toggle */
  .order-summary-header {
    padding: 12px 15px;
  }

  .order-summary-title {
    font-size: 14px;
  }

  .total-amount {
    font-size: 16px;
  }

  .toggle-btn {
    width: 32px;
    height: 32px;
  }

  /* Upsell Styles */
  .upsell-product-wrapper {
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
  }

.upsell-product-control {
    justify-content: space-around;
	gap: 50px;
  }

  /* .upsell-product-control {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
   */
  .upsell-product-label {
    font-size: 13px;
    text-align: center;
    margin-bottom: 8px;
  }

  .upsell-product-toggle {
    align-self: center;
    transform: scale(1.4);
  }

  .upsell-product-details {
    margin-top: 8px;
    text-align: center;
  }

  .upsell-product-details p {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .upsell-product-details span {
    font-size: 15px;
  }
}

@media (max-width: 425px) {
  .checkout-payment-box {
    padding: 10px;
  }
  .order-details-container {
    padding: 15px;
  }
}

@media (max-width: 320px) {
  .order-summary-header {
    padding: 12px 10px;
  }
  .order-summary-title {
    font-size: 13px;
  }
  .total-amount {
    font-size: 15px;
  }
}

@media (max-width: 351px) {
  #checkout-payment-box h2 {
    font-size: 22px !important;
  }
}

/* ===== CURRENCY SWITCHER STYLING ===== */
.currency-selector-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.currency-selector-container h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.currency-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.currency-selector-label {
    font-weight: 500 !important;
    color: #555 !important;
    min-width: 80px;
        font-size: 18px !important;
}

#currency-selector {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

#currency-selector:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

#currency-selector:disabled {
    background: #f7f7f7;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Currency Messages */
#currency-messages {
    margin-top: 15px;
}

#currency-messages div {
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .currency-selector-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .currency-selector-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .currency-selector-label {
        min-width: auto;
    }
    
    #currency-selector {
        min-width: auto;
        width: 100%;
    }
}

/* Loading State */
.currency-selector-container.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.currency-selector-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

p.product-description {
    font-size: 14px;
    text-align: justify;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    background-color: #f9f9f9;
    margin: 0;
}
