/* Checkout Specific Styles */
.checkout-container {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.8;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.step.completed .step-number {
    background: #4caf50;
    color: white;
}

.step-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.step-info p {
    font-size: 14px;
    color: #666;
}

/* Checkout Content */
.checkout-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.checkout-step {
    display: none;
    padding: 40px;
}

.checkout-step.active {
    display: block;
}

.checkout-step h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

/* Form Styles */
.checkout-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Shipping Options */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.shipping-option {
    position: relative;
}

.shipping-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.shipping-label {
    display: block;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shipping-option input[type="radio"]:checked + .shipping-label {
    border-color: #667eea;
    background: #f8f9ff;
}

.shipping-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shipping-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.shipping-info p {
    font-size: 14px;
    color: #666;
}

.shipping-price {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
}

/* Payment Methods */
.payment-methods {
    margin: 30px 0;
}

.payment-methods h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.payment-option {
    position: relative;
    margin-bottom: 15px;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + .payment-label {
    border-color: #667eea;
    background: #f8f9ff;
}

.payment-label i {
    font-size: 20px;
    color: #667eea;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.order-summary h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-info {
    flex: 1;
}

.order-item-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.order-item-details {
    font-size: 14px;
    color: #666;
}

.order-item-price {
    font-weight: 600;
    color: #667eea;
}

.order-totals {
    margin-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 16px;
}

.total-row.total {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    border-top: 2px solid #e0e0e0;
    margin-top: 10px;
    padding-top: 20px;
}

/* Order Summary Sidebar */
.order-summary-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    position: sticky;
    top: 100px;
}

.order-summary-sidebar h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* MercadoPago Button */
#mercadopago-button-container {
    margin: 30px 0;
    text-align: center;
}

#mercadopago-button-container button {
    background: linear-gradient(135deg, #009ee3 0%, #0066cc 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#mercadopago-button-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 158, 227, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .checkout-steps {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .step {
        text-align: center;
    }
    
    .step-info {
        text-align: left;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .checkout-step {
        padding: 20px;
    }
    
    .shipping-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .checkout-container {
        padding: 20px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .checkout-steps {
        padding: 15px;
    }
    
    .checkout-step {
        padding: 15px;
    }
    
    .order-summary-sidebar {
        padding: 20px;
    }
}
