/* Enhanced Payment Preference Modal - Professional Design */
.payment-pref-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000004;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-pref-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.payment-pref-modal {
  width: 90%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-pref-overlay--visible .payment-pref-modal {
  transform: scale(1) translateY(0);
}

/* Header Styles */
.payment-pref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #10b981;
  color: white;
}

.payment-pref-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-pref-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.payment-pref-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-pref-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.payment-pref-subtitle {
  margin: 0;
  font-size: 12px;
  opacity: 0.8;
  font-weight: 400;
}

.payment-pref-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 14px;
}

.payment-pref-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Body Styles */
.payment-pref-body {
  padding: 20px;
}

/* Method Info */
.payment-pref-method-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 16px;
}

.payment-method-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-method-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

/* Options Container */
.payment-pref-options {
  display: grid;
  gap: 12px;
}

/* Loading State */
.pref-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px;
  color: #64748b;
  font-size: 14px;
}

.pref-loading i {
  font-size: 16px;
}

/* Option Card */
.pref-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.pref-option-card:hover {
  transform: translateY(-1px);
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.pref-option-card.pref-option-selected {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.pref-option-card.pref-option-selected .pref-option-title,
.pref-option-card.pref-option-selected .pref-option-desc {
  color: white;
}

/* Option Icon */
.pref-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #10b981;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pref-option-card.pref-option-selected .pref-option-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Option Content */
.pref-option-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pref-option-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
}

.pref-option-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.3;
}

/* Option Action */
.pref-option-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pref-extra-badge {
  font-size: 11px;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #fecaca;
}

.pref-option-card.pref-option-selected .pref-extra-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.pref-option-arrow {
  color: #94a3b8;
  font-size: 12px;
}

.pref-option-card.pref-option-selected .pref-option-arrow {
  color: rgba(255, 255, 255, 0.8);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .payment-pref-modal {
    background: #1e293b;
    color: white;
  }

  .payment-pref-method-info {
    background: #334155;
  }

  .payment-method-name {
    color: white;
  }

  .pref-option-card {
    background: #334155;
    border-color: #475569;
  }

  .pref-option-card:hover {
    border-color: #10b981;
  }

  .pref-option-title {
    color: white;
  }

  .pref-option-desc {
    color: #cbd5e1;
  }

  .pref-option-icon {
    background: #475569;
  }

  .pref-extra-badge {
    background: #065f46;
    color: #a7f3d0;
    border: 1px solid #047857;
  }
}

/* Responsive Design */
@media (max-width: 480px) {
  .payment-pref-modal {
    width: 95%;
    margin: 8px;
  }

  .payment-pref-header {
    padding: 14px 16px;
  }

  .payment-pref-body {
    padding: 16px;
  }

  .pref-option-card {
    padding: 14px;
  }

  .pref-option-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
