/* Estilos personalizados para el checkout */
.custom-checkout-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.checkout-columns-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.checkout-customer-details {
    flex: 1;
    min-width: 300px;
}

.checkout-order-review {
    width: 40%;
    min-width: 300px;
}

.checkout-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.checkout-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Estilos para los títulos de sección */
.checkout-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Estilos para los campos de formulario */
.checkout-card .form-row {
    margin-bottom: 15px;
}

.checkout-card label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.checkout-card input[type="text"],
.checkout-card input[type="tel"],
.checkout-card input[type="email"],
.checkout-card input[type="password"],
.checkout-card textarea,
.checkout-card select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.checkout-card input[type="text"]:focus,
.checkout-card input[type="tel"]:focus,
.checkout-card input[type="email"]:focus,
.checkout-card input[type="password"]:focus,
.checkout-card textarea:focus,
.checkout-card select:focus {
    border-color: #D72529;
    outline: none;
    box-shadow: 0 0 0 2px rgba(215, 37, 41, 0.2);
}

/* Estilos para la tabla de revisión de pedido */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
}

.woocommerce-checkout-review-order-table thead th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #333;
}

.woocommerce-checkout-review-order-table .cart-subtotal,
.woocommerce-checkout-review-order-table .order-total {
    font-weight: 600;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    border-top: 2px solid #ddd;
    border-bottom: none;
    padding-top: 15px;
}

.woocommerce-checkout-review-order-table .order-total .amount {
    color: #D72529;
    font-size: 18px;
}

/* Estilos para los métodos de pago */
#payment {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

#payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #eee;
}

#payment ul.payment_methods li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

#payment ul.payment_methods li:last-child {
    border-bottom: none;
}

#payment ul.payment_methods li input {
    margin-right: 10px;
}

#payment ul.payment_methods li label {
    display: inline;
    font-weight: 500;
}

#payment .payment_box {
    background-color: #fff;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #eee;
}

#payment .place-order {
    margin-top: 20px;
}

#place_order {
    background-color: #D72529;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
}

#place_order:hover {
    background-color: #c01e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(215, 37, 41, 0.3);
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .checkout-columns-container {
        flex-direction: column;
    }
    
    .checkout-customer-details,
    .checkout-order-review {
        width: 100%;
    }
}

/* Estilos para mensajes de error y éxito */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    list-style: none;
}

.woocommerce-error {
    background-color: #fff5f5;
    border-left: 4px solid #D72529;
    color: #D72529;
}

.woocommerce-info {
    background-color: #f0f7ff;
    border-left: 4px solid #3498db;
    color: #3498db;
}

.woocommerce-message {
    background-color: #f0fff5;
    border-left: 4px solid #2ecc71;
    color: #2ecc71;
}

/* Estilos para las secciones de customer details */
.customer-details-section {
    margin-bottom: 25px;
}

.customer-details-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

/* Estilos para campos opcionales */
.optional {
    color: #999;
    font-weight: normal;
    font-style: italic;
    font-size: 0.9em;
}
