/* Styles pour la page de livraison */
.delivery-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.cart-steps {
    display: flex;
    margin-bottom: 2rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 10px;
    position: relative;
    color: #aaa;
}

.step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: -1;
}

.step:last-child::after {
    display: none;
}

.step.active {
    color: var(--primary-color, #E37222);
    font-weight: 600;
}

.step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: #f0f0f0;
    border-radius: 50%;
    margin-right: 5px;
}

.step.active .step-number {
    background-color: var(--primary-color, #E37222);
    color: white;
}

.delivery-section, .order-summary-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

.form-label {
    font-weight: 500;
    color: #555;
}

.shipping-method-card {
    position: relative;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.shipping-method-card:hover {
    border-color: #E37222;
    box-shadow: 0 4px 12px rgba(227, 114, 34, 0.1);
}

.shipping-method-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.shipping-method-label {
    display: block;
    padding: 15px;
    cursor: pointer;
    width: 100%;
}

.shipping-method-card input[type="radio"]:checked + .shipping-method-label {
    background-color: rgba(227, 114, 34, 0.05);
    border-left: 3px solid #E37222;
}

.method-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.method-name h4 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: #333;
}

.delivery-time {
    font-size: 0.85rem;
    color: #777;
    display: inline-block;
    background-color: rgba(227, 114, 34, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
}

.method-zone {
    font-size: 0.9rem;
    color: #0056b3;
    margin-top: 10px;
    font-weight: 600;
    background-color: #e6f2ff;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.method-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.btn-back {
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #e0e0e0;
}

.btn-continue {
    padding: 12px 25px;
    background-color: var(--primary-color, #E37222);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue:hover {
    background-color: #d15f0d;
}

.btn-continue:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Styles pour le résumé de la commande */
.summary-card {
    margin-bottom: 20px;
}

.summary-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-summary {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.item-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 5px 0;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #777;
}

.summary-totals {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}

.summary-row.discount .amount {
    color: #dc3545;
}

.summary-row.shipping .amount {
    font-style: italic;
    color: #777;
}

.summary-row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.promo-applied {
    margin-bottom: 20px;
}

.promo-badge {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #28a745;
}

.secure-checkout-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.secure-icon {
    font-size: 1.5rem;
    color: #28a745;
    margin-right: 15px;
}

.secure-text {
    flex: 1;
}

.secure-text p {
    margin: 0 0 5px 0;
    font-weight: 500;
    color: #333;
}

.payment-icons {
    font-size: 1.2rem;
    color: #555;
}

.payment-icons i {
    margin-right: 8px;
}

/* Responsive design */
@media (max-width: 992px) {
    .cart-steps {
        flex-wrap: wrap;
    }
    
    .step {
        flex-basis: 50%;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-back, .btn-continue {
        width: 100%;
        text-align: center;
    }
}

.shipping-options {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shipping-method-card {
    margin-bottom: 0;
}

.options-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}
