/**
 * MGN Payments - Frontend Styles
 * Font: PolySans (weights: 300, 400, 500)
 * Modal Width: 800px
 */

@font-face {
  font-family: "PolySans";
  src: url("/wp-content/uploads/PolySans-Median.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PolySans";
  src: url("/wp-content/uploads/PolySans-Neutral.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PolySans";
  src: url("/wp-content/uploads/PolySans-Slim.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --mgn-primary: #ffcb31;
  --mgn-primary-hover: #e5b62c;
  --mgn-dark: #111111;
  --mgn-text: #1a1a1a;
  --mgn-text-secondary: #4a4a4a;
  --mgn-text-muted: #6a6a6a;
  --mgn-border: #e0e0e0;
  --mgn-border-focus: #ffcb31;
  --mgn-bg: #ffffff;
  --mgn-bg-light: #f8f8f8;
  --mgn-error: #dc2626;
  --mgn-success: #16a34a;
  --mgn-warning: #f59e0b;
  --mgn-radius: 12px;
  --mgn-radius-sm: 8px;
  --mgn-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --mgn-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.25);
  --mgn-transition: 0.2s ease;
}

.mgn-price .mgn-usd-equiv {
  font-size: 22px !important;
  opacity: 0.6;
}

.mgn-checkout-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: "PolySans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--mgn-btn-color, var(--mgn-dark));
  background: var(--mgn-btn-bg, var(--mgn-primary));
  border: none;
  border-radius: var(--mgn-radius);
  cursor: pointer;
  transition: all var(--mgn-transition);
}

.mgn-checkout-btn:hover {
  transform: none;
  box-shadow: none;
  background-color: #ffd95c;
}

.mgn-checkout-btn:active {
  transform: translateY(0);
}

.mgn-btn-icon {
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mgn-checkout-btn:hover .mgn-btn-icon {
  transform: translateX(4px);
}

.mgn-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mgn-modal.active {
  opacity: 1;
  visibility: visible;
}

.mgn-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.mgn-modal-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--mgn-bg);
  border-radius: 24px;
  box-shadow: var(--mgn-shadow-lg);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
}

.mgn-modal.active .mgn-modal-container {
  transform: scale(1) translateY(0);
}

.mgn-modal-content {
  padding: 0;
  font-family: "PolySans", system-ui, sans-serif;
}

.mgn-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #333333;
  transition: all var(--mgn-transition);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mgn-modal-close:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.05);
}

.mgn-modal-close svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

#mgn-modal-close,
.mgn-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95) !important;
  border: none !important;
  border-radius: 50%;
  cursor: pointer;
  color: #333333 !important;
  transition: all var(--mgn-transition);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0 !important;
  min-width: auto !important;
  min-height: auto !important;
}

#mgn-modal-close:hover,
.mgn-modal-close:hover {
  background: #ffffff !important;
  color: #000000 !important;
  transform: scale(1.05);
}

#mgn-modal-close svg,
.mgn-modal-close svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  stroke: currentColor !important;
  display: block !important;
}

.mgn-demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 60px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-size: 14px;
  font-weight: 400;
  border-radius: 24px 24px 0 0;
  text-align: center;
}

.mgn-demo-banner svg {
  flex-shrink: 0;
}

.mgn-modal-body {
  padding: 32px 40px 0;
}

.mgn-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.mgn-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  font-size: 14px;
  font-weight: 500;
  border-radius: 24px;
}

.mgn-course-info {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #f1f1f1;
  border-radius: var(--mgn-radius);
  margin-bottom: 32px;
}

.mgn-course-thumb {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--mgn-primary) 0%, #e5b62c 100%);
  border-radius: var(--mgn-radius-sm);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.mgn-course-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mgn-course-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--mgn-text);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.mgn-course-pricing {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mgn-price {
  font-size: 28px;
  font-weight: 500;
  color: var(--mgn-text);
}

.mgn-original-price {
  font-size: 18px;
  color: #6a6a6a;
  text-decoration: none;
}

.mgn-original-price .mgn-local-price {
  text-decoration: line-through;
  font-weight: 400;
  font-size: 24px;
}

.mgn-original-price .mgn-usd-equiv {
  display: inline;
  font-size: 16px;
  text-decoration: line-through !important;
  color: #6a6a6a !important;
  margin-left: 6px;
  font-weight: 400 !important;
}

.mgn-discount-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  background: #d92d20;
  color: #fff;
  padding-left: 8px;
  padding-right: 8px;
  line-height: 2;
  border-radius: 16px;
}

.mgn-submit-btn .mgn-usd-equiv {
  display: inline;
  font-size: 15px;
  color: #111;
  font-weight: 500;
  margin-left: 6px;
  opacity: 0.6;
}

/* Installment USD Equivalent */
.mgn-installment-amount .mgn-usd-equiv {
  display: block;
  font-size: 10px;
  margin-top: 2px;
  opacity: 0.7;
}

.mgn-installment-info .mgn-usd-equiv {
  display: inline;
  font-size: 11px;
  margin-left: 4px;
  opacity: 0.7;
}

/* BNPL USD Equivalent */
.mgn-usd-equiv-inline {
  font-size: 0.85em;
  color: #888;
  font-weight: 400;
}

.mgn-bnpl-usd-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--mgn-primary);
  color: var(--mgn-dark);
  font-size: 14px;
  font-weight: 500;
  border-radius: 50%;
  margin: 10px auto 6px;
}

.mgn-bnpl-usd-value {
  display: block;
  font-size: 14px;
  color: var(--mgn-text);
  font-weight: 500;
  text-align: center;
}

.mgn-bnpl-step {
  text-align: center;
}

.mgn-bnpl-step span:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Mobile Responsiveness for USD Equivalents */
@media (max-width: 600px) {
  .mgn-usd-equiv {
    font-size: 11px !important;
  }

  .mgn-price .mgn-usd-equiv {
    font-size: 12px !important;
  }

  .mgn-original-price .mgn-usd-equiv {
    font-size: 11px !important;
  }

  .mgn-submit-btn {
    flex-wrap: wrap;
    padding: 14px 16px !important;
    gap: 6px !important;
  }

  .mgn-submit-btn .mgn-btn-lock {
    width: 18px;
    height: 18px;
  }

  .mgn-submit-btn .mgn-btn-text {
    font-size: 14px !important;
  }

  .mgn-submit-btn .mgn-btn-amount {
    font-size: 13px !important;
    width: 100%;
    text-align: center;
    margin-top: 2px;
  }

  .mgn-submit-btn .mgn-usd-equiv {
    font-size: 11px !important;
    display: block !important;
    width: 100%;
    text-align: center;
    margin-left: 0 !important;
    margin-top: 2px;
  }

  .mgn-installment-amount .mgn-usd-equiv {
    font-size: 9px !important;
  }

  .mgn-usd-equiv-inline {
    font-size: 0.8em !important;
  }

  .mgn-bnpl-usd-circle {
    width: 24px;
    height: 24px;
    font-size: 12px;
    margin: 8px auto 4px;
  }

  .mgn-bnpl-usd-value {
    font-size: 12px !important;
  }
}

/* Currency Selector */
.mgn-currency-selector-wrap {
  position: relative;
  margin-top: 8px;
}

.mgn-currency-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 0 !important;
  padding: 4px 8px !important;
  background: #f8f8f8;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 300;
  color: #111;
  cursor: pointer;
  transition: all 0.2s ease;
}
@media (max-width: 767px) {
  .mgn-currency-btn {
    padding: 4px 8px !important;
  }
}
.mgn-currency-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.mgn-currency-btn[aria-expanded="true"] {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.mgn-currency-btn[aria-expanded="true"] .mgn-chevron-icon {
  transform: rotate(180deg);
}

.mgn-globe-icon {
  opacity: 0.6;
}

.mgn-chevron-icon {
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.mgn-currency-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  width: 280px;
  max-height: 360px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  overflow: hidden;
  padding: 10px;
}

.mgn-currency-dropdown.active {
  display: block;
  animation: mgn-dropdown-in 0.2s ease;
}

@keyframes mgn-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mgn-currency-search {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  box-sizing: border-box;
  font-weight: 300;
}

.mgn-currency-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: #f9fafb;
  box-sizing: border-box;
}

.mgn-currency-search input:focus {
  border-color: #ffcb31;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 203, 49, 0.2);
}

.mgn-currency-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
}

.mgn-currency-group {
  margin-bottom: 6px;
}

.mgn-currency-group:last-child {
  margin-bottom: 0;
}

.mgn-currency-group-label {
  padding: 8px 12px 6px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
}

.mgn-currency-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px !important;
  margin-bottom: 5px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 300;
  color: #111;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.mgn-currency-option:hover {
  background: #f3f4f6;
}

.mgn-currency-option.selected {
  background: #fef3c7;
  color: #92400e;
}

.mgn-currency-option.hidden {
  display: none;
}

.mgn-currency-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: #f3f4f6;
  border-radius: 50%;
  font-weight: 300;
  font-size: 14px;
  color: #374151;
}

.mgn-currency-option.selected .mgn-currency-symbol {
  background: #fde68a;
  color: #92400e;
}

.mgn-currency-code {
  font-weight: 300;
  font-size: 12px;
  color: #1f2937;
  min-width: 32px;
}

.mgn-currency-option.selected .mgn-currency-code {
  color: #92400e;
}

.mgn-currency-name {
  flex: 1;
  font-weight: 400;
  font-size: 14px;
  color: #111;
  text-align: right;
}

.mgn-currency-option.selected .mgn-currency-name {
  color: #b45309;
}

.mgn-step {
  margin-bottom: 12px;
}

.mgn-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.mgn-step-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mgn-primary);
  color: var(--mgn-dark);
  font-size: 15px;
  font-weight: 500;
  border-radius: 50%;
}

.mgn-step-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--mgn-text);
  flex: 1;
}

.mgn-secure-text {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--mgn-success);
  font-weight: 400;
}

.mgn-form-group {
  margin-bottom: 12px;
}

.mgn-form-row {
  display: flex;
  gap: 16px;
}

.mgn-form-row-2 > * {
  flex: 1;
}

.mgn-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--mgn-text);
  margin-bottom: 0;
}

.mgn-form-group input {
  width: 100%;
  padding: 14px 16px;
  font-family: "PolySans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--mgn-text);
  background: var(--mgn-bg);
  border: 1.5px solid var(--mgn-border);
  border-radius: var(--mgn-radius-sm);
  transition: all var(--mgn-transition);
  box-sizing: border-box;
}

.mgn-form-group input:focus {
  outline: none;
  border-color: var(--mgn-border-focus);
  box-shadow: 0 0 0 3px rgba(255, 203, 49, 0.2);
}

.mgn-form-group input::placeholder {
  color: var(--mgn-text-muted);
}

.mgn-payment-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.mgn-payment-method {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 10px !important;
  padding: 8px 12px;
  min-height: auto;
  font-family: "PolySans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--mgn-text-secondary);
  background: var(--mgn-primary);
  border: 1px solid #ffcb31 !important;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--mgn-transition);
  position: relative;
}

.mgn-payment-method:hover {
  background: var(--mgn-primary-hover);
  border-color: var(--mgn-primary-hover);
}

.mgn-payment-method.active {
  background: rgba(255, 203, 49, 0.15);
  border-color: var(--mgn-dark);
  color: var(--mgn-text);
}

.mgn-payment-method svg {
  width: 24px;
  height: 24px;
}

.mgn-payment-method span {
  font-size: 12px;
  font-weight: 400;
}

.mgn-payment-method[data-method="paypal"] svg,
.mgn-payment-method[data-method="klarna"] svg,
.mgn-payment-method[data-method="afterpay"] svg {
  width: 30px;
  height: auto;
}

/* Payment Method Tooltips */
.mgn-payment-method::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: #333;
  color: #fff;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    visibility 0.2s;
  pointer-events: none;
  margin-bottom: 8px;
  z-index: 100;
}

.mgn-payment-method::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    visibility 0.2s;
  margin-bottom: -4px;
  z-index: 100;
}

.mgn-payment-method:hover::after,
.mgn-payment-method:hover::before {
  opacity: 1;
  visibility: visible;
}

.mgn-payment-method[data-method="card"]::after {
  content: "Pay with Card";
}

.mgn-payment-method[data-method="paypal"]::after {
  content: "Pay with PayPal";
}

.mgn-payment-method[data-method="klarna"]::after {
  content: "Pay with Klarna";
}

.mgn-payment-method[data-method="afterpay"]::after {
  content: "Pay with Afterpay";
}

.mgn-payment-method[data-method="installments"]::after {
  content: "Pay in Installments";
}

.mgn-klarna-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 24px;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #ffb3c7;
  background: #0a0b09;
  border-radius: 4px;
  padding: 2px 10px;
  letter-spacing: 1px;
}

.mgn-afterpay-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 24px;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #000000;
  background: #b2fce4;
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.5px;
}

.mgn-accepted-cards {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: #f1f1f1;
  border-radius: var(--mgn-radius-sm);
  margin-bottom: 20px;
}

.mgn-accepted-label {
  font-size: 13px;
  color: var(--mgn-text-muted);
  font-weight: 400;
}

.mgn-card-icons {
  display: flex;
  gap: 10px;
}

.mgn-card-icon {
  width: 42px;
  height: 28px;
  border-radius: 4px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

.mgn-card-icon:hover {
  transform: scale(1.08);
}

.mgn-card-visa {
  background-color: #1a1f71;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 35'%3E%3Crect fill='%231A1F71' width='50' height='35' rx='4'/%3E%3Cpath fill='%23FFFFFF' d='M21.5 23h-2.7l1.7-10.5h2.7L21.5 23zm11.2-10.2c-.5-.2-1.4-.4-2.4-.4-2.7 0-4.6 1.4-4.6 3.5 0 1.5 1.4 2.4 2.4 2.9 1 .5 1.4.9 1.4 1.4 0 .7-.8 1.1-1.6 1.1-1.1 0-1.6-.2-2.5-.5l-.3-.2-.4 2.2c.6.3 1.8.5 3 .6 2.8 0 4.7-1.4 4.7-3.6 0-1.2-.7-2.1-2.3-2.9-.9-.5-1.5-.8-1.5-1.3 0-.4.5-.9 1.5-.9.9 0 1.5.2 2 .4l.2.1.4-2.4zm6.8-.3h-2.1c-.6 0-1.1.2-1.4.8l-4 9.7h2.8l.6-1.6h3.5l.3 1.6h2.5l-2.2-10.5zm-3.4 6.8l1.1-3 .6 3h-1.7zm-18-6.8l-2.6 7.2-.3-1.4c-.5-1.6-2-3.4-3.6-4.2l2.4 9h2.9l4.3-10.5h-3.1z'/%3E%3Cpath fill='%23F9A533' d='M13.3 12.5h-4.2l-.1.3c3.4.9 5.6 3 6.6 5.5l-.9-4.8c-.2-.7-.7-1-1.4-1z'/%3E%3C/svg%3E");
}

.mgn-card-mastercard {
  background-color: #000000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 35'%3E%3Crect fill='%23000000' width='50' height='35' rx='4'/%3E%3Ccircle fill='%23EB001B' cx='19' cy='17.5' r='9'/%3E%3Ccircle fill='%23F79E1B' cx='31' cy='17.5' r='9'/%3E%3Cpath fill='%23FF5F00' d='M25 11a9 9 0 000 13 9 9 0 000-13z'/%3E%3C/svg%3E");
}

.mgn-card-amex {
  background-color: #006fcf;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 35'%3E%3Crect fill='%23006FCF' width='50' height='35' rx='4'/%3E%3Cpath fill='%23FFFFFF' d='M10 14h4l.8 2 .8-2h4v7h-3v-4.5l-1.5 3h-2l-1.5-3V21H10v-7zm12 0h6.5v1.5h-3.5v1.2h3.5v1.5h-3.5v1.3h3.5V21H22v-7zm8 0h3l2 2.5 2-2.5h3l-3.5 3.5 3.5 3.5h-3l-2-2.5-2 2.5h-3l3.5-3.5L30 14z'/%3E%3C/svg%3E");
}

.mgn-card-discover {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 35'%3E%3Crect fill='%23FFFFFF' width='50' height='35' rx='4'/%3E%3Cpath fill='%23F47216' d='M0 20h50v11a4 4 0 01-4 4H4a4 4 0 01-4-4V20z'/%3E%3Ccircle fill='%23F47216' cx='32' cy='15' r='7'/%3E%3Ctext x='5' y='16' font-family='Arial' font-size='7' font-weight='bold' fill='%23000000'%3EDISCOVER%3C/text%3E%3C/svg%3E");
}

.mgn-card-input-wrap {
  position: relative;
}

.mgn-card-input-wrap input {
  padding-right: 65px;
}

.mgn-detected-card {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 28px;
  border-radius: 4px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.2s ease;
  opacity: 0;
}

.mgn-detected-card.visa {
  opacity: 1;
  background-color: #1a1f71;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 35'%3E%3Crect fill='%231A1F71' width='50' height='35' rx='4'/%3E%3Cpath fill='%23FFFFFF' d='M21.5 23h-2.7l1.7-10.5h2.7L21.5 23zm11.2-10.2c-.5-.2-1.4-.4-2.4-.4-2.7 0-4.6 1.4-4.6 3.5 0 1.5 1.4 2.4 2.4 2.9 1 .5 1.4.9 1.4 1.4 0 .7-.8 1.1-1.6 1.1-1.1 0-1.6-.2-2.5-.5l-.3-.2-.4 2.2c.6.3 1.8.5 3 .6 2.8 0 4.7-1.4 4.7-3.6 0-1.2-.7-2.1-2.3-2.9-.9-.5-1.5-.8-1.5-1.3 0-.4.5-.9 1.5-.9.9 0 1.5.2 2 .4l.2.1.4-2.4zm6.8-.3h-2.1c-.6 0-1.1.2-1.4.8l-4 9.7h2.8l.6-1.6h3.5l.3 1.6h2.5l-2.2-10.5zm-3.4 6.8l1.1-3 .6 3h-1.7zm-18-6.8l-2.6 7.2-.3-1.4c-.5-1.6-2-3.4-3.6-4.2l2.4 9h2.9l4.3-10.5h-3.1z'/%3E%3Cpath fill='%23F9A533' d='M13.3 12.5h-4.2l-.1.3c3.4.9 5.6 3 6.6 5.5l-.9-4.8c-.2-.7-.7-1-1.4-1z'/%3E%3C/svg%3E");
}

.mgn-detected-card.mastercard {
  opacity: 1;
  background-color: #000000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 35'%3E%3Crect fill='%23000000' width='50' height='35' rx='4'/%3E%3Ccircle fill='%23EB001B' cx='19' cy='17.5' r='9'/%3E%3Ccircle fill='%23F79E1B' cx='31' cy='17.5' r='9'/%3E%3Cpath fill='%23FF5F00' d='M25 11a9 9 0 000 13 9 9 0 000-13z'/%3E%3C/svg%3E");
}

.mgn-detected-card.amex {
  opacity: 1;
  background-color: #006fcf;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 35'%3E%3Crect fill='%23006FCF' width='50' height='35' rx='4'/%3E%3Cpath fill='%23FFFFFF' d='M10 14h4l.8 2 .8-2h4v7h-3v-4.5l-1.5 3h-2l-1.5-3V21H10v-7zm12 0h6.5v1.5h-3.5v1.2h3.5v1.5h-3.5v1.3h3.5V21H22v-7zm8 0h3l2 2.5 2-2.5h3l-3.5 3.5 3.5 3.5h-3l-2-2.5-2 2.5h-3l3.5-3.5L30 14z'/%3E%3C/svg%3E");
}

.mgn-detected-card.discover {
  opacity: 1;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 35'%3E%3Crect fill='%23FFFFFF' width='50' height='35' rx='4'/%3E%3Cpath fill='%23F47216' d='M0 20h50v11a4 4 0 01-4 4H4a4 4 0 01-4-4V20z'/%3E%3Ccircle fill='%23F47216' cx='32' cy='15' r='7'/%3E%3Ctext x='5' y='16' font-family='Arial' font-size='7' font-weight='bold' fill='%23000000'%3EDISCOVER%3C/text%3E%3C/svg%3E");
}

.mgn-input-icon-wrap {
  position: relative;
}

.mgn-input-icon-wrap input {
  padding-right: 45px;
}

.mgn-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mgn-text-muted);
  opacity: 0.5;
}

.mgn-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f1f1f1;
  border-radius: var(--mgn-radius-sm);
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mgn-text);
}

/* v5.7.0: Stripe Card Element Styles (PCI Compliant Live Mode) */
.mgn-stripe-element {
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: var(--mgn-radius-sm);
  background: #fff;
  min-height: 24px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mgn-stripe-element--focus {
  border-color: var(--mgn-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.mgn-stripe-element.StripeElement--invalid {
  border-color: #dc3545;
}

.mgn-card-errors {
  color: #dc3545;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

.mgn-card-errors:not(:empty) {
  display: block;
}

.mgn-installment-options {
  padding: 20px;
  background: #f1f1f1;
  border-radius: var(--mgn-radius);
  margin-bottom: 20px;
}

.mgn-installment-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--mgn-text);
  margin: 0 0 16px 0;
}

.mgn-installment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.mgn-installment-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  font-family: "PolySans", system-ui, sans-serif;
  background: var(--mgn-primary);
  border: 1px solid #ffcb31 !important;
  border-radius: var(--mgn-radius);
  cursor: pointer;
  transition: all var(--mgn-transition);
}

.mgn-installment-option:hover {
  background: var(--mgn-primary-hover);
  border-color: var(--mgn-primary-hover);
}

.mgn-installment-option.active {
  background: rgba(255, 203, 49, 0.15);
  border-color: var(--mgn-dark);
}

.mgn-installment-count {
  font-size: 24px;
  font-weight: 500;
  color: var(--mgn-text);
}

.mgn-installment-amount {
  font-size: 14px;
  color: var(--mgn-text-secondary);
  margin-top: 4px;
}

.mgn-installment-info {
  border-top: 1px solid var(--mgn-border);
  padding-top: 16px;
}

.mgn-installment-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--mgn-text-secondary);
  margin-bottom: 8px;
}

.mgn-installment-row:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--mgn-text);
}

.mgn-security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(22, 163, 74, 0.08);
  border-radius: var(--mgn-radius-sm);
  margin-top: 12px;
  margin-bottom: 12px;
}

.mgn-security-note svg {
  flex-shrink: 0;
  color: var(--mgn-success);
}

.mgn-security-note span {
  font-size: 13px;
  color: var(--mgn-success);
  line-height: 1.4;
}

.mgn-bnpl-info {
  padding: 20px;
  background: #f1f1f1;
  border-radius: var(--mgn-radius);
  margin-bottom: 16px;
}

.mgn-bnpl-info p {
  font-size: 14px;
  color: var(--mgn-text-secondary);
  margin: 0 0 16px 0;
}

.mgn-bnpl-steps {
  display: flex;
  justify-content: space-between;
}

.mgn-bnpl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mgn-bnpl-step span:first-child {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mgn-primary);
  color: var(--mgn-dark);
  font-size: 13px;
  font-weight: 500;
  border-radius: 50%;
}

.mgn-bnpl-step span:last-child {
  font-size: 14px;
  color: var(--mgn-text);
  font-weight: 500;
}

.mgn-error-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--mgn-radius-sm);
  color: var(--mgn-error);
  font-size: 14px;
  margin-bottom: 20px;
}

.mgn-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 28px;
  font-family: "PolySans", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--mgn-dark);
  background: linear-gradient(135deg, var(--mgn-primary) 0%, #e5b62c 100%);
  border: none;
  border-radius: var(--mgn-radius);
  cursor: pointer;
  transition: all var(--mgn-transition);
}

.mgn-submit-btn:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
  background: #ffd95c;
}

.mgn-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mgn-submit-btn .mgn-btn-lock {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mgn-submit-btn:hover .mgn-btn-lock {
  transform: translateX(4px);
}

.mgn-submit-btn.loading .mgn-btn-text,
.mgn-submit-btn.loading .mgn-btn-amount,
.mgn-submit-btn.loading .mgn-btn-lock {
  display: none;
}

.mgn-btn-spinner {
  display: none;
  animation: mgn-spin 1s linear infinite;
}

.mgn-submit-btn.loading .mgn-btn-spinner {
  display: block;
}

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

.mgn-demo-paypal-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  font-family: "PolySans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #003087;
  background: #ffc439;
  border: none;
  border-radius: var(--mgn-radius-sm);
  cursor: pointer;
  transition: all var(--mgn-transition);
}

.mgn-demo-paypal-btn:hover {
  background: #f0b72a;
}

.mgn-terms {
  margin-top: 18px;
  font-size: 13px;
  color: var(--mgn-text-muted);
}

.mgn-terms label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.mgn-terms input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--mgn-primary);
  flex-shrink: 0;
}

.mgn-terms a {
  color: var(--mgn-text);
  text-decoration: underline;
}

.mgn-trust-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--mgn-border);
}

.mgn-trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mgn-text-muted);
  text-align: center;
}

.mgn-trust-badge svg {
  color: var(--mgn-success);
}

.mgn-success-state {
  text-align: center;
  padding: 50px 40px;
}

.mgn-success-icon {
  width: 40px;
  height: 40px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, 0.1);
  color: var(--mgn-success);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: mgn-success-pop 0.5s ease;
}

@keyframes mgn-success-pop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.mgn-success-state h2 {
  font-size: 26px;
  font-weight: 500;
  color: var(--mgn-text);
  margin: 0 0 12px 0;
}

.mgn-success-state p {
  font-size: 15px;
  color: var(--mgn-text-secondary);
  margin: 0 0 28px 0;
}

.mgn-success-details {
  background: var(--mgn-bg-light);
  border-radius: var(--mgn-radius);
  padding: 24px 28px;
  margin-bottom: 28px;
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.mgn-success-details p {
  font-family: "PolySans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 12px 0;
  color: var(--mgn-text);
}

.mgn-success-details p:last-child {
  margin-bottom: 0;
}

.mgn-success-details strong {
  font-weight: 500;
  color: var(--mgn-text);
}

.mgn-success-details span {
  font-weight: 400;
  color: var(--mgn-text-secondary);
}

.mgn-success-btn {
  padding: 16px 48px;
  font-family: "PolySans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--mgn-dark);
  background: var(--mgn-primary);
  border: none;
  border-radius: var(--mgn-radius);
  cursor: pointer;
  transition: all var(--mgn-transition);
}

.mgn-success-btn:hover {
  background: var(--mgn-primary-hover);
}

#mgn-paypal-buttons {
  min-height: 55px;
}

@media (max-width: 960px) {
  .mgn-modal-container {
    max-width: 95%;
  }
  .mgn-modal-body {
    padding: 28px 32px 36px;
  }
}

@media (max-width: 680px) {
  .mgn-modal {
    padding: 0;
    align-items: flex-end;
  }
  .mgn-modal-container {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 24px 24px 0 0;
  }
  .mgn-modal-body {
    padding: 24px 20px 32px;
  }
  .mgn-demo-banner {
    padding: 12px 50px 12px 20px;
    font-size: 12px;
    border-radius: 24px 24px 0 0;
  }
  .mgn-modal-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
  .mgn-form-row-2 {
    flex-direction: column;
    gap: 0;
  }
  .mgn-payment-methods {
    flex-wrap: wrap;
  }
  .mgn-payment-method {
    min-width: calc(50% - 6px);
    flex: 0 0 calc(50% - 6px);
  }
  .mgn-payment-method:nth-child(5) {
    flex: 1 1 100%;
  }
  .mgn-installment-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mgn-installment-option {
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 18px;
  }
  .mgn-installment-amount {
    margin-top: 0;
  }
  .mgn-trust-badges {
    flex-wrap: wrap;
    gap: 16px;
  }
  .mgn-trust-badge {
    flex: 0 0 calc(33.33% - 12px);
  }
  .mgn-course-info {
    flex-direction: column;
    text-align: center;
  }
  .mgn-course-thumb {
    width: 100%;
    height: 140px;
  }
  .mgn-course-pricing {
    justify-content: center;
  }
  .mgn-accepted-cards {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .mgn-price {
    font-size: 24px;
  }
  .mgn-course-title {
    font-size: 18px;
  }
}

/* Coupon Section - matches form styling */
.mgn-coupon-group {
  margin-bottom: 12px;
}

.mgn-coupon-group label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--mgn-text);
  margin-bottom: 8px;
}

.mgn-coupon-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 50px;
}

.mgn-coupon-row input {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
  padding: 0 16px;
  font-family: "PolySans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--mgn-text);
  background: var(--mgn-bg);
  border: 1.5px solid var(--mgn-border);
  border-radius: var(--mgn-radius-sm) 0 0 var(--mgn-radius-sm);
  border-right: none;
  box-sizing: border-box;
  text-transform: uppercase;
}

.mgn-coupon-row input:focus {
  outline: none;
  border-color: var(--mgn-border-focus);
  box-shadow: 0 0 0 3px rgba(255, 203, 49, 0.2);
  position: relative;
  z-index: 1;
}

.mgn-coupon-row input::placeholder {
  text-transform: none;
  color: var(--mgn-text-muted);
}

button.mgn-coupon-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 20px;
  margin: 0;
  font-family: "PolySans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: var(--mgn-dark);
  background: var(--mgn-primary);
  border: 1.5px solid var(--mgn-primary);
  border-left: none;
  border-radius: 0 var(--mgn-radius-sm) var(--mgn-radius-sm) 0;
  cursor: pointer;
  transition: all var(--mgn-transition);
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

button.mgn-coupon-apply:hover {
  background: var(--mgn-primary-hover);
  border-color: var(--mgn-primary-hover);
}

button.mgn-coupon-apply:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 203, 49, 0.3);
}

button.mgn-coupon-apply.disabled,
button.mgn-coupon-apply:disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.mgn-coupon-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: var(--mgn-radius-sm);
  font-family: "PolySans", system-ui, sans-serif;
  font-size: 13px;
}

.mgn-coupon-result.success {
  background: rgba(22, 163, 74, 0.1);
  color: var(--mgn-success);
}

.mgn-coupon-result.error {
  background: rgba(220, 38, 38, 0.08);
  color: var(--mgn-error);
}

.mgn-coupon-remove {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.7;
}

.mgn-coupon-remove:hover {
  opacity: 1;
}

/* Discount display in pricing */
.mgn-discount-applied {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mgn-discount-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--mgn-success);
}

.mgn-discount-line svg {
  flex-shrink: 0;
}

.mgn-new-total {
  font-size: 24px;
  font-weight: 500;
  color: var(--mgn-text);
}

@media (max-width: 400px) {
  .mgn-payment-method {
    min-width: 100%;
    flex: 1 1 100%;
  }
  .mgn-trust-badge {
    flex: 0 0 100%;
  }
  .mgn-coupon-input-wrapper {
    flex-direction: column;
  }
  .mgn-apply-coupon {
    width: 100%;
  }
}

/* =====================================================
   Phone Input with Country Prefix
   ===================================================== */

.mgn-phone-input-wrapper {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--mgn-border);
  border-radius: var(--mgn-radius-sm);
  overflow: hidden;
  transition: all var(--mgn-transition);
  background: var(--mgn-bg);
}

.mgn-phone-input-wrapper:focus-within {
  border-color: var(--mgn-border-focus);
  box-shadow: 0 0 0 3px rgba(255, 203, 49, 0.2);
}

.mgn-phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #f1f1f1;
  border-right: 1px solid var(--mgn-border);
  font-size: 14px;
  font-weight: 400;
  color: var(--mgn-text);
  font-family: "PolySans", system-ui, sans-serif;
  white-space: nowrap;
  user-select: none;
}

.mgn-phone-number {
  flex: 1;
  border: none !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  background: transparent !important;
  min-width: 0;
}

.mgn-phone-number:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* =========================
   MOBILE STYLES (767px)
   ========================= */

@media (max-width: 767px) {
  .mgn-modal-body {
    padding: 24px 20px 0;
  }

  .mgn-bnpl-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
  }

  .mgn-bnpl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }

  .mgn-bnpl-step span:last-child {
    font-size: 12px;
  }

  #mgn-bnpl-description {
    font-size: 14px;
    text-align: center;
  }

  .mgn-payment-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .mgn-payment-method {
    padding: 10px 6px;
    min-height: auto;
    flex-direction: column;
    gap: 2px;
  }

  .mgn-payment-method svg {
    width: 22px;
    height: 22px;
  }

  .mgn-payment-method span {
    display: none;
  }

  .mgn-payment-method[data-method="installments"] {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
  }

  .mgn-payment-method[data-method="installments"] span {
    display: inline;
    font-size: 14px;
  }

  .mgn-payment-method::after,
  .mgn-payment-method::before {
    display: block;
  }

  .mgn-payment-method::after {
    font-size: 10px;
    padding: 4px 8px;
  }

  .mgn-trust-badges {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    overflow: hidden;
  }

  .mgn-trust-badge {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .mgn-trust-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .mgn-trust-badge span {
    font-size: 8px;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Mobile Submit Button Fix */
  .mgn-submit-btn {
    flex-direction: column;
    align-items: center;
    line-height: 1.4em !important;
    gap: 4px;
  }

  .mgn-submit-btn .mgn-btn-text {
    font-size: 15px !important ;
  }

  .mgn-submit-btn .mgn-btn-amount {
    font-size: 16px !important;
    font-weight: 500;
  }

  .mgn-submit-btn .mgn-usd-equiv {
    font-size: 13px !important;
    opacity: 0.8;
  }

  /* Mobile BNPL USD Circle */
  .mgn-bnpl-usd-circle {
    width: 22px;
    height: 22px;
    font-size: 11px;
    margin: 6px auto 4px;
  }

  .mgn-bnpl-usd-value {
    font-size: 11px;
  }
}

/* ============================================
   TWO-COLUMN LAYOUT (v4.5.0)
   ============================================ */

.mgn-modal-two-column .mgn-modal-container {
  max-width: 1200px;
}

.mgn-modal-two-column .mgn-two-column-wrapper {
  display: grid;
  grid-template-columns: 1fr 750px;
  gap: 0;
  min-height: 500px;
}

.mgn-modal-two-column .mgn-column-left {
  padding: 0 0 0 30px;
  order: 2;
}
.mgn-modal-two-column .mgn-column-left .mgn-payment-method {
  line-height: 10px !important;
}
.mgn-modal-two-column .mgn-column-right {
  border-radius: 12px;
}

.mgn-modal-two-column .mgn-order-summary {
  position: sticky;
  top: 30px;
}

.mgn-modal-two-column .mgn-summary-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: var(--mgn-text);
}

.mgn-modal-two-column .mgn-course-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 25px;
}

.mgn-modal-two-column .mgn-column-right .mgn-course-thumb {
  width: 100%;
  height: 160px;
  border-radius: var(--mgn-radius);
}

.mgn-modal-two-column .mgn-column-right .mgn-course-details {
  text-align: left;
}

.mgn-modal-two-column .mgn-column-right .mgn-course-title {
  font-size: 16px;
  margin-bottom: 10px;
}
.mgn-modal-two-column .mgn-column-right .mgn-price .mgn-usd-equiv {
  font-size: 17px !important;
}
.mgn-modal-two-column .mgn-column-right .mgn-price {
  font-size: 24px !important;
}
.mgn-modal-two-column .mgn-column-right .mgn-course-pricing {
  flex-wrap: wrap;
  gap: 8px;
}

.mgn-modal-two-column .mgn-column-right .mgn-trust-badges {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
}

.mgn-modal-two-column .mgn-column-right .mgn-trust-badge {
  font-size: 13px;
}

/* Alternative approach using JS-added class */
.mgn-modal-two-column.mgn-checkout-success .mgn-two-column-wrapper {
  display: block;
}

.mgn-modal-two-column.mgn-checkout-success .mgn-column-left {
  display: none;
}

.mgn-modal-two-column.mgn-checkout-success .mgn-column-right {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border: none;
  padding: 0;
  background: transparent;
}

.mgn-modal-two-column.mgn-checkout-success .mgn-order-summary {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.mgn-modal-two-column.mgn-checkout-success .mgn-summary-title {
  display: none;
}

.mgn-modal-two-column.mgn-checkout-success .mgn-trust-badges {
  display: none;
}

/* Two-column responsive */
@media (max-width: 900px) {
  .mgn-modal-two-column .mgn-modal-container {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    height: 100%;
    max-height: 100%;
  }

  .mgn-modal-two-column .mgn-two-column-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .mgn-modal-two-column .mgn-column-right {
    order: -1;
    padding: 0;
  }

  .mgn-modal-two-column .mgn-column-left {
    border-right: none;
    margin-top: 24px;
    width: 100%;
    padding: 0;
  }

  .mgn-modal-two-column .mgn-order-summary {
    position: static;
  }

  .mgn-modal-two-column .mgn-summary-title {
    display: none;
  }

  .mgn-modal-two-column .mgn-column-right .mgn-course-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: none;
  }

  .mgn-modal-two-column .mgn-column-right .mgn-course-thumb {
    width: 100%;
    height: 160px;
    border-radius: 10px;
  }

  .mgn-modal-two-column .mgn-column-right .mgn-course-details {
    width: 100%;
    text-align: center;
  }

  .mgn-modal-two-column .mgn-column-right .mgn-course-title {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
  }

  .mgn-modal-two-column .mgn-column-right .mgn-course-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .mgn-modal-two-column .mgn-column-right .mgn-price {
    font-size: 15px;
  }

  .mgn-modal-two-column .mgn-column-right .mgn-original-price {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .mgn-modal-two-column .mgn-column-right .mgn-discount-badge {
    font-size: 12px;
    margin: 0;
    vertical-align: middle;
  }

  .mgn-modal-two-column .mgn-column-right .mgn-currency-selector-wrap {
    margin-top: 10px;
    display: flex;
    justify-content: center;
  }

  .mgn-modal-two-column .mgn-column-right .mgn-trust-badges {
    display: none;
  }
}

/* ==========================================================================
   v5.4.1: PayPal Currency Warning & Amount Display
   ========================================================================== */

.mgn-paypal-amount-display {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  text-align: center;
}

.mgn-paypal-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mgn-paypal-label {
  color: #6c757d;
  font-size: 14px;
}

.mgn-paypal-amount {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
}

.mgn-paypal-amount-display .mgn-usd-equiv {
  font-size: 13px;
  color: #6c757d;
  font-weight: 500;
}

.mgn-paypal-note {
  font-size: 12px;
  color: #6c757d;
  margin-top: 6px;
}

.mgn-currency-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #856404;
}

.mgn-currency-warning svg {
  flex-shrink: 0;
  color: #856404;
  margin-top: 1px;
}

.mgn-currency-warning span {
  line-height: 1.4;
}
