/* ================================================
   LOCAL PICKUP & SHIPPING OPTIONS STYLING
   Add this to checkout.css or checkout-page.css
   ================================================ */

/* Local Pickup Highlight */
.shipping-option.local-pickup-highlight {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 2px solid #4caf50;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.shipping-option.local-pickup-highlight::before {
  content: '★';
  position: absolute;
  top: 5px;
  right: 10px;
  color: #4caf50;
  font-size: 24px;
  opacity: 0.3;
}

.shipping-option.local-pickup-highlight .shipping-option-name {
  color: #2e7d32;
  font-weight: 600;
}

.shipping-option.local-pickup-highlight .shipping-option-price strong {
  color: #4caf50;
  font-size: 1.1em;
}

/* Standard shipping options */
.shipping-option {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.shipping-option:hover {
  border-color: #2196f3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.shipping-option.selected {
  border-color: #2196f3;
  background: #e3f2fd;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.shipping-option.local-pickup-highlight.selected {
  border-color: #4caf50;
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.shipping-option input[type="radio"] {
  margin-right: 15px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

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

.shipping-option-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

.shipping-option-description {
  font-size: 14px;
  color: #666;
}

/*.shipping-option-price {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-left: 15px;
}*/

/* Divider between options */
.shipping-options-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #999;
  font-size: 14px;
}

.shipping-options-divider::before,
.shipping-options-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.shipping-options-divider span {
  padding: 0 15px;
  background: white;
}

/* Loading state */
#shippingOptions p {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 14px;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .shipping-option {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .shipping-option input[type="radio"] {
    margin-bottom: 10px;
  }
  
  /*.shipping-option-price {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    text-align: right;
  }*/
  
  .shipping-option.local-pickup-highlight::before {
    font-size: 18px;
    top: 10px;
    right: 10px;
  }
}

/* Order summary shipping display */
#shippingCostDisplay strong {
  font-size: 1.1em;
}

#shippingCostDisplay strong[style*="color:#28a745"] {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

