/* Payment Page Styles - Consistent with cart.css */

/* Progress Indicator */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
  }
  
  .progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }
  
  .step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
  }
  
  .progress-step.completed .step-number {
    background: #28a745;
    color: white;
  }
  
  .progress-step.active .step-number {
    background: #007bff;
    color: white;
  }
  
  .step-label {
    font-size: 0.675rem;
    color: #6c757d;
    font-weight: 500;
  }
  
  .progress-step.completed .step-label,
  .progress-step.active .step-label {
    color: #495057;
    font-weight: 600;
  }
  
  .progress-line {
    width: 80px;
    height: 2px;
    background: #e9ecef;
    margin: 0 1rem;
    margin-top: -10px;
  }
  
  .progress-line.completed {
    background: #28a745;
  }
  
  /* Payment Sections */
  .payment-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
  }
  
  .payment-section:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  .section-title {
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 0.5rem;
  }
  
  /* Form Styling */
  input[type="radio"] {
      accent-color: var(--primary-color);
  }
  .form-label {
    color: #495057;
    margin-bottom: 0.5rem;
  }
  
  .form-control,
  .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
  }
  .form-select{
    padding: 0.4rem 0.75rem;
  }
  
  .form-control:focus,
  .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-color);
  }
  
  .form-control.is-invalid {
    border-color: #dc3545;
  }
  
  .form-control.is-valid {
    border-color: #28a745;
  }
  
  /* Payment Methods */
  .payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .payment-option {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .payment-option:hover {
    border-color: var(--primary-color);
    background-color: #f8f9ff;
  }
  
  .form-check-input:checked {
      background-color: var(--primary-color);
      border-color: var(--primary-color);
  }
  .payment-option .form-check-input:checked ~ .form-check-label .payment-option {
    border-color: var(--primary-color);
    background-color: #f8f9ff;
  }
  
  .payment-method-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .payment-method-title {
    font-weight: 600;
    color: #495057;
  }
  
  .payment-icons {
    display: flex;
    gap: 0.5rem;
  }
  
  .payment-icons i {
    font-size: 1.5rem;
    color: #6c757d;
  }
  
  .payment-icon-single {
    font-size: 1.5rem;
    color: #0070ba;
  }
  
  /* Credit Card Details */
  #credit-card-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
  }
  
  /* Security Notice */
  .security-notice {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    color: #6c757d;
  }
  
  .security-notice i {
    color: #28a745;
  }
  
  /* Order Summary Enhancements */
  .summary-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
  }
  
  .order-items {
    max-height: 300px;
    overflow-y: auto;
  }
  
  .order-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
  }
  
  .order-item:last-child {
    border-bottom: none;
  }
  
  .item-image {
    position: relative;
    width: 75px;
    height: 75px;
  }
  
  .order-item-img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    border-radius: 6px;
  }
  
  .item-quantity {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
  }
  
  .item-title {
    font-size: 0.875rem;
    color: #495057;
  }
  
  .item-price {
    font-weight: 600;
    color: #495057;
  }
  
  /* Summary Items */
  .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: #495057;
  }
  
  .summary-total {
    border-top: 2px solid #e9ecef;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
  }
  
  /* Checkout Button */
  .checkout-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    border: none;
    transition: all 0.3s ease;
  }
  
  .checkout-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 246, 247, 0.3);
  }
  
  .checkout-btn:active {
    transform: translateY(0);
  }
  
  /* Security Badges */
  .security-badges {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .security-badges .badge {
    font-size: 0.75rem;
  }
  
  /* Continue Shopping Link */
  .continue-shopping {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .continue-shopping:hover {
    color: #0056b3;
    text-decoration: underline;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .checkout-progress {
      padding: 0.15rem 0.5rem;
      margin-top: 0rem;
    }
  
    .progress-line {
      width: 40px;
      margin: 0 0.5rem;
      margin-top: -10px;
    }
  
    .step-number {
      width: 35px;
      height: 35px;
      font-size: 0.875rem;
    }
  
    .step-label {
      font-size: 0.55rem;
    }
  
    .payment-section {
      margin-bottom: 1rem !important;
    }
  
    .payment-method-content {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
  
    .summary-card {
      position: static;
      margin-top: 0rem;
    }
    .productos-vista-movil{
      margin-top: 0rem;
    }
  }
  
  @media (max-width: 576px) {
    .payment-methods {
      gap: 0.5rem;
    }
  
    .payment-option {
      padding: 0.75rem;
    }
  
    .order-items {
      max-height: 200px;
      margin-right: 2rem;
    }
  
    .item-image {
      width: 55px;
      height: 55px;
    }
    .order-item-img {
      width: 55px;
      height: 55px;
    }
  
    .item-quantity {
      width: 18px;
      height: 18px;
      font-size: 0.7rem;
    }
  }
  
  /* Form Validation Styles */
  .was-validated .form-control:valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 1.38 1.38'/%3e%3c/svg%3e");
  }
  
  .was-validated .form-control:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4M6 7h.01'/%3e%3c/svg%3e");
  }
  
  /* Loading State */
  .checkout-btn.loading {
    position: relative;
    color: transparent;
  }
  
  .checkout-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  