/**
 * PROFESSIONAL CHECKOUT STYLES
 * Upload to: /var/www/romeezgear/css/checkout-professional.css
 * 
 * Compact, modern design for shipping and payment sections
 */

/* ============================================
   SHIPPING OPTIONS - COMPACT & PROFESSIONAL
   ============================================ */

#shippingOptions {
  margin-top: 20px;
}

#shippingOptions label {
  /*display: flex !important;*/
  align-items: center;
  padding: 12px 16px !important;
  margin-bottom: 8px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  background: white !important;
  transition: all 0.2s ease !important;
  position: relative;
}

#shippingOptions label:hover {
  border-color: #007bff !important;
  background: #f8f9fa !important;
  transform: translateX(2px);
}

#shippingOptions input[type="radio"]:checked + label,
#shippingOptions label:has(input[type="radio"]:checked) {
  border-color: #007bff !important;
  background: #e7f3ff !important;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

#shippingOptions input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0 12px 0 0;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #007bff;
}

.shipping-option-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.shipping-option-details {
  flex: 1;
}

.shipping-option-name {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 4px 0;
}

.shipping-option-delivery {
  font-size: 13px;
  color: #6c757d;
  margin: 0;
}

.shipping-option-price {
  font-size: 18px;
  font-weight: 700;
  color: #e74c3c;
  white-space: nowrap;
}

.shipping-option-price.free {
  color: #27ae60;
}

/* Loading state */
#shippingOptions p {
  padding: 16px !important;
  text-align: center;
  color: #6c757d;
  margin: 0;
}

#shippingOptions .fa-spinner {
  margin-right: 8px;
}

/* ============================================
   PAYMENT METHOD - COMPACT & PROFESSIONAL
   ============================================ */

/*.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}*/

.payment-method {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  position: relative;
}

.payment-method:hover {
  border-color: #007bff;
  background: #f8f9fa;
  transform: translateX(2px);
}

.payment-method.selected {
  border-color: #007bff;
  background: #e7f3ff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.payment-method input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0 12px 0 0;
  cursor: pointer;
  accent-color: #007bff;
}

.payment-method-icon {
  width: 48px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

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

.payment-method-icon i {
  font-size: 28px;
}

.payment-method-icon .fa-credit-card {
  color: #6772e5;
}

.payment-method-icon .fa-paypal {
  color: #0070ba;
}

.payment-method-details {
  flex: 1;
}

.payment-method-name {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 4px 0;
}

.payment-method-description {
  font-size: 13px;
  color: #6c757d;
  margin: 0;
}

.payment-method-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #28a745;
  color: white;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-method-badge.recommended {
  background: #007bff;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.checkout-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
}

.checkout-section-header i {
  font-size: 20px;
  color: #007bff;
}

.checkout-section-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

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

@media (max-width: 768px) {
  /*#shippingOptions label,
  .payment-method {
    padding: 12px !important;
  }*/
  
  .shipping-option-content,
  .payment-method-details {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .shipping-option-price {
    align-self: flex-end;
    margin-top: 8px;
  }

  .payment-method-icon {
    margin-right: 12px;
    width: 40px;
    height: 28px;
  }

  .shipping-second {
    gap: 5px;
  }

}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#shippingOptions label,
.payment-method {
  animation: slideIn 0.3s ease forwards;
}

#shippingOptions label:nth-child(1) { animation-delay: 0.05s; }
#shippingOptions label:nth-child(2) { animation-delay: 0.1s; }
#shippingOptions label:nth-child(3) { animation-delay: 0.15s; }
#shippingOptions label:nth-child(4) { animation-delay: 0.2s; }
#shippingOptions label:nth-child(5) { animation-delay: 0.25s; }

.payment-method:nth-child(1) { animation-delay: 0.05s; }
.payment-method:nth-child(2) { animation-delay: 0.1s; }
.payment-method:nth-child(3) { animation-delay: 0.15s; }

/* ============================================
   ICONS
   ============================================ */

.shipping-icon-truck {
  color: #007bff;
}

.shipping-icon-store {
  color: #28a745;
}

.shipping-icon-fast {
  color: #ffc107;
}



/* Mobile-Responsive Shipping Options - SAFE ADDITION */
@media (max-width: 768px) {
  /* Shipping section spacing on mobile */
  .shipping-section,
  #shippingOptions {
    padding: 10px 0;
  }
  
  /* Individual shipping option cards on mobile */
  .shipping-option,
  label[for^="shipping"] {
    display: block !important;
    padding: 12px !important;
    margin-bottom: 10px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
  }
  
  /* Radio button on mobile */
  input[type="radio"][name="shipping"] {
    width: 18px !important;
    height: 18px !important;
    margin-right: 10px !important;
    flex-shrink: 0;
  }
  
  /* Shipping option text layout on mobile */
  .shipping-option-name,
  .shipping-option strong {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  
  .shipping-option-price {
    font-size: 15px !important;
    font-weight: bold !important;
    margin-left: auto !important;
  }

  .shipping-options {
    /* display: flex; */
    margin-left: -40px;
    width: 310px;
  }  

  .checkout-form-section h2 {
    font-size: 20px;
  }
  
  /* Shipping description/ETA on mobile */
  .shipping-option-description,
  .shipping-eta {
    font-size: 12px !important;
    color: #666 !important;
    margin-top: 5px !important;
    padding-left: 28px !important; /* Align with text, not radio */
    display: block !important;
  }
  
  /* Stack vertically on small phones */
  @media (max-width: 480px) {
    .shipping-option label {
      flex-direction: column !important;
      align-items: flex-start !important;
    }
    
    .shipping-option-price {
      margin-left: 28px !important; /* Align with text */
      margin-top: 5px !important;
    }
  }
}







