/* Estilos para el modal de confirmación */
.confirmation-modal {
    max-width: 550px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10000;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border: 1px solid #e2e8f0;
}

.confirmation-section {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    border-left: 4px solid #2563eb;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
}

.confirmation-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.confirmation-section h4 {
    margin: 0 0 0.75rem 0;
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.confirmation-section h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
    flex-shrink: 0;
}

.confirmation-section p {
    margin: 0.375rem 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.selected-item:hover {
    background: rgba(37, 99, 235, 0.05);
    margin: 0 -1.25rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
}

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

.item-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.95rem;
}

.item-price {
    font-weight: 600;
    color: #2563eb;
    font-size: 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Estilos para mensajes de advertencia */
.confirmation-section p[style*="color: #ff6b6b"] {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
    font-weight: 500;
    color: #dc2626 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.confirmation-section p[style*="color: #ff6b6b"]::before {
    content: '⚠️';
    font-size: 1.1rem;
}

/* Estilos para mensajes informativos */
.confirmation-section p[style*="color: #888"] {
    font-style: italic;
    text-align: center;
    color: #64748b !important;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px dashed #cbd5e1;
}

.total-section {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: #2563eb;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.total-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.total-section h4 {
    font-size: 1.5rem;
    color: #1e40af;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgb(0 0 0 / 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #25d366 0%, #20b954 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(37 211 102 / 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #20b954 0%, #16a34a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgb(37 211 102 / 0.4);
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .confirmation-modal {
        width: 98%;
        margin: 0.5rem;
        max-height: 90vh;
        border-radius: 0.75rem;
    }
    
    .confirmation-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .confirmation-section h4 {
        font-size: 1rem;
    }
    
    .confirmation-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .selected-item:hover {
        margin: 0 -1rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .confirmation-modal {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .confirmation-section {
        padding: 0.875rem;
        border-radius: 0.5rem;
    }
    
    .total-section h4 {
        font-size: 1.25rem;
    }
}