.cart-summary {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    width: 90%;
}

.cart-summary h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: #333;
}

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

.item-name {
    font-weight: 500;
}

.item-price {
    font-weight: 600;
    color: #1850b1;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid #eee;
    font-weight: 700;
    color: #333;
    font-size: 1.2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .cart-summary {
        width: 95%;
        padding: 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Payment form styling improvements */
.contenedor {
    max-width: 1000px;
    width: 90%;
    margin: 30px auto;
}

.tarjeta {
    background: linear-gradient(45deg, #1850b1, #4e1850);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.formulario-tarjeta {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.grupo {
    margin-bottom: 1.5rem;
}

.grupo label {
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.grupo input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-enviar {
    background: #1850b1;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-enviar:hover {
    background: #123c8c;
}

.cart-summary {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.cart-total {
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
}

.payment-animation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.payment-animation__content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.payment-animation__spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}