/* Payment Method Selector Modal Styles */

.payment-method-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
}

.payment-method-modal.is-open {
  display: flex;
}

.payment-method-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1998;
}

.payment-method-container {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
  z-index: 1999;
}

/* Header */
.payment-method-header {
  padding: 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-method-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.payment-method-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.payment-method-close:hover {
  background: #f5f5f5;
  color: #000;
}

/* Body */
.payment-method-body {
  padding: 24px;
}

.payment-method-body > p {
  margin: 0 0 24px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

/* Payment Methods Grid */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.payment-method-card {
  padding: 20px 16px;
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  position: relative;
}

.payment-method-card:hover:not(:disabled) {
  border-color: #ff6b35;
  background: #fff8f5;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.15);
}

.payment-method-card:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.payment-method-card:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f0f0f0;
}

.payment-method-card.selected {
  border-color: #ff6b35;
  background: #fff8f5;
}

.payment-method-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: #ff6b35;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

/* Payment Method Icon */
.payment-method-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-method-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-method-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
}

.payment-method-info {
  margin: 0;
  font-size: 12px;
  color: #999;
  text-align: center;
}

/* Footer */
.payment-method-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  background: #f9f9f9;
  border-radius: 0 0 16px 16px;
}

.payment-method-security {
  margin: 0;
  font-size: 12px;
  color: #666;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Animations */
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .payment-method-container {
    width: 95%;
    max-height: 85vh;
  }

  .payment-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-method-header {
    padding: 16px;
  }

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

  .payment-method-footer {
    padding: 12px 16px;
  }
}

@media (max-width: 400px) {
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }

  .payment-method-header h3 {
    font-size: 18px;
  }
}
